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 99

...ce this is the core topic of this section, I will not leave you hanging and give a few examples of some known bad case scenarios. An easy way to determine the cost of a particular shader is to use the command line HLSL compiler (fxc.exe) to output all the needed information about the resulting shade...

Page 132

SetVectorArray Sets an array of vectors.

Page 25

...ting a distinct row of matrix data. You can address individual row-vectors of matrices by using an array style addressing. For example, you can address a single row of a matrix by using an index such as Matrix[3], which will return a vector of the correct size. You may also address individual compon...

Page 47

...r basic rendering, how about adding a little more color by applying a texture to the geometry? For the shader to be able to use a texture, it will need a global variable of type sampler. Well explain later how you can use semantics and the effect framework to set up textures. For now, this is how t...

Page 147

This function returns a simple D3DXHANDLE to a state block resource to be reused later on. Take note that this function is assumed to never fail.

DIRECTXREGISTERAPP

Contains the registry entries needed for applications designed to work with IDirectPlayLobby3.

typedef struct DIRECTXREGISTERAPP {
    DWORD dwSize;
 
       DWORD dwFlags;
    LPSTR lpszApplicationName;
    LPGUID lpGUID;
   
    LPSTR lpszFilename;
    LPSTR lpszCommandLine;
    LPSTR lpszPath;
   
    LPSTR lpszCurrentDirectory;
} DIRECTXREGISTERAPP, *LPDIRECTXREGISTERAPP;
    

Members

dwSize
Size of the structure. This member must be initialized to the size of the DIRECTXREGISTERAPP structure.
dwFlags
Reserved.
lpszApplicationName
Name of the application.
lpGUID
GUID of the application.
lpszFilename
Name of the executable file to be called.
lpszCommandLine
Command-line arguments for the executable file.
lpszPath
Path of the executable file.
lpszCurrentDirectory
Current directory. This is typically the same as lpszPath.