The COMPLETE Effect and HLSL Cross-Reference

By Sebastien St-Laurent
ISBN 0-9766132-1-2
Jan 2006 (896 pages)

Buy directly from Paradoxal Press at $20.75 (Save 43%)

Page 92

TEXCOORD[n] Used to convey vertex texture coordinates.

Page 61

Once this operation has been completed, all your lighting components will be interpolated relative to the local tangent space for each pixel. The following piece of code shows how you can make a tangent space matrix and use it to convert a vector from object space to tangent space:

Page 201

...actional component of the input. 1 Arithmetic if_bool Begins an if/ else/ endifblock (using a boolean condition). 3 Flow Control if_comp Begins an if block, with a comparison. 3 Flow Control if_pred Begins an if block with a predicate condition. 3 Flow Control lit Returns the partial lighting calcu...

Page 30

Matrix-to-structure For this conversion to be valid, the size of the structure must be equal to the size of the matrix, and the components of the structure must all be of a numeric type.

Page 24

Now that Ive discussed vectors, you may wonder how you can access the individual components of the vector. Individual vector components may be accessed in many different ways. The following

DirectX SDK Constants

These constant values refer to the product and build versions of the DirectX SDK update. These values are unique to each SDK update and allow you to conditionally compile your code against specific versions of the SDK.

#defineDescription
_DXSDK_BUILD_MAJORDirectX SDK build major version
_DXSDK_BUILD_MINORDirectX SDK build minor version
_DXSDK_PRODUCT_MAJORDirectX SDK product major version
_DXSDK_PRODUCT_MINORDirectX SDK product minor version

An effective way to use these constants is to do an assert to make sure the correct build version of the DirectX SDK is installed on a developer's machine. This way, if a new developer joins your project and has the wrong version of the DirectX SDK installed he will get an error message when he runs the program.

Example:

assert(_DXSDK_BUILD_MAJOR == 299);  //this checks that
     the DirectX SDK (August 2005) build is installed.

Constant Information

Headerdxsdkver.h
Minimum operating systemWindows 98