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 3

...d in functionality and performance, even shattering Moores law with respect to technological advancement rate. With the introduction of the DirectX 9.0 SDK and the latest generations of graphics hardware such as the GeForce FX series from NVIDIA and Radeon 9800 series from ATI Technologies, came Ver...

Page 42

target This pre.x indicates for which pixel/vertex shader version the code is intended. This allows the compiler to make the best decisions when building the code.

Page 92

...emantics can easily be divided into four categories: vertex shader input, vertex shader output, pixel shader input and pixel shader output. Over the next few pages, I will present the four categories in a set of tables describing the semantics and their meaning. Keep in mind that in the tables below...

Page 182

...gs which may also apply to the compilation of this shader. The ppShader parameter is simply a buffer meant to contain the DWORD stream resulting from the shader compilation. The ppErrorMsgs parameter is a buffer, which will be .lled with at least the .rst compilation error, if any. And . nally, the ...

Page 98

...s ef.cient by helping out the compiler into generating more optimal code. This section also includes details as to which features of the shader language have more signi.cant performance implications. In the second section of this chapter, I will discuss the topic of preshaders, a new feature of the ...

DXGetErrorDescription

Returns a string that describes a DirectX HRESULT value.

TCHAR * DXGetErrorDescription( HRESULT
     hr );

Parameters

hr
[in] Any HRESULT return code from XACT, Direct3D 10, D3DX10, Direct3D 9, D3DX9, Direct3D 8, D3DX8, DirectDraw, DirectPlay, DirectMusic, DirectSound, DirectInput, or DirectShow.

Return Values

Returns a pointer to a character string that describes the HRESULT code.

Remarks

This function supports Win32 Winerror.h error codes.

Requirements

Header: Declared in Dxerr.h.