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 55

...though normals can be interpolated linearly, such interpolation can yield vectors that are not normalized. To correct this, it is a good idea to renormalize the vector by using the built-in HLSL normalize function for normals, which are interpolated in the transition from a vertex to a pixel shader...

Page 206

frc Returns the fractional component of the input. 1 Arithmetic

Page 4

...ich the number of transistors per square inch had doubled every year since the introduction of the integrated circuit. He also predicted that this trend would continue for at least a few decades, which turned out true so far. Also, since the transistor density relates with the performance of integra...

Page 34

...onstant and can be determined ahead of time. For example, static branching allows for blocks of code to be switched on or off based on a boolean shader constant. This is a convenient method for enabling or disabling code paths based on the type of object currently being rendered. Between rendering ...

Page 152

In this particular case, you will not only need to access the structure element but get to the appropriate array element. This can easily done with the ID3DXEffect::GetParameterElement function call. Below is the same example code which sets the color of the .rst light element within the array:

IDXDiagContainer

Applications use the methods of the IDXDiagContainer interface to query objects and properties exposed by the Microsoft DirectX Diagnostic tool.

MethodDescription
numChildContainerNamesEnumerates the name of the IDXDiagContainer object at the specified index.
EnumPropNamesEnumerates the name of the property at the specified index.
GetChildContainerRetrieves a pointer to the specified child container.
etNumberOfChildContainersReturns the number of IDXDiagContainer objects in this container.
GetNumberOfPropsRetrieves the number of properties in this container.
GetPropRetrieves an instance of the specified property.