Appendix B

High-Level Shading Language Reference

B.1 Variable Types

B.1.1 Scalar Types

Image    bool: True or false value. Note that the HLSL provides the true and false keywords like in C++.

Image    int: 32-bit signed integer.

Image    half: 16-bit floating-point number.

Image    float: 32-bit floating-point number.

    double: 64-bit floating-point number.

 

Note:    Some ...

Get Introduction to 3D Game Programming with DirectX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.