D3DXSHGPUSIMOPT
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXSHGPUSIMOPT Enumerated Type


Describes the resolution of the shadow z-buffer that will be used in precomputed radiance transfer (PRT) direct lighting simulation on the GPU. A higher quality z-buffer can also be specified to reduce noise in the results of the direct lighting simulation, although the simulation will be slower.

Syntax

typedef enum D3DXSHGPUSIMOPT {
    D3DXSHGPUSIMOPT_SHADOWRES256 = 1,
    D3DXSHGPUSIMOPT_SHADOWRES512 = 0,
    D3DXSHGPUSIMOPT_SHADOWRES1024 = 2,
    D3DXSHGPUSIMOPT_SHADOWRES2048 = 3,
    D3DXSHGPUSIMOPT_HIGHQUALITY = 4,
    D3DXSHGPUSIMOPT_FORCE_DWORD = 0x7fffffff
} D3DXSHGPUSIMOPT;

Constants

D3DXSHGPUSIMOPT_SHADOWRES256

Low resolution simulation. A 256 x 256 pixel texture is used in the simulation to encode the shadow z-buffer.

D3DXSHGPUSIMOPT_SHADOWRES512

Medium resolution simulation. A 512 x 512 pixel texture is used in the simulation to encode the shadow z-buffer.

This is the default value.

D3DXSHGPUSIMOPT_SHADOWRES1024

High resolution simulation. A 1024 x 1024 pixel texture is used in the simulation to encode the shadow z-buffer.

D3DXSHGPUSIMOPT_SHADOWRES2048

Highest resolution simulation. A 2048 x 2048 pixel texture is used in the simulation to encode the shadow z-buffer.

D3DXSHGPUSIMOPT_HIGHQUALITY

The simulation is of high precision, regardless of the selected resolution. Setting this value will reduce noise in the results of the direct lighting simulation, although the simulation will be slower. May be combined with one of the D3DXSHGPUSIMOPT_SHADOWRESxxx values.

D3DXSHGPUSIMOPT_FORCE_DWORD

Forces this enumeration to compile to 32 bits in size. This value is not used.

Remarks

Only one of the D3DXSHGPUSIMOPT_SHADOWRESxxx values should be specified. D3DXSHGPUSIMOPT_HIGHQUALITY may be combined with one of the D3DXSHGPUSIMOPT_SHADOWRESxxx values.

Enumerated Type Information

Headerd3dx9mesh.h
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.