![]() | By Sebastien St-Laurent |
![]() | ![]() | ![]() | ![]() | ![]() |
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: |
Applications use the methods of the IDXDiagContainer interface to query objects and properties exposed by the Microsoft DirectX Diagnostic tool.
| Method | Description |
|---|---|
| numChildContainerNames | Enumerates the name of the IDXDiagContainer object at the specified index. |
| EnumPropNames | Enumerates the name of the property at the specified index. |
| GetChildContainer | Retrieves a pointer to the specified child container. |
| etNumberOfChildContainers | Returns the number of IDXDiagContainer objects in this container. |
| GetNumberOfProps | Retrieves the number of properties in this container. |
| GetProp | Retrieves an instance of the specified property. |