?/TD> |
Microsoft DirectX 9.0 |
Describes a surface.
Syntax
typedef struct _D3DSURFACE_DESC { D3DFORMAT Format; D3DRESOURCETYPE Type; DWORD Usage; D3DPOOL Pool; D3DMULTISAMPLE_TYPE MultiSampleType; DWORD MultiSampleQuality; UINT Width; UINT Height; } D3DSURFACE_DESC;
Members
- Format
- Member of the D3DFORMAT enumerated type, describing the surface format.
- Type
- Member of the D3DRESOURCETYPE enumerated type, identifying this resource as a surface.
- Usage
Either the D3DUSAGE_DEPTHSTENCIL or D3DUSAGE_RENDERTARGET values. For more information, see D3DUSAGE.
- Pool
- Member of the D3DPOOL enumerated type, specifying the class of memory allocated for this surface.
- MultiSampleType
- Member of the D3DMULTISAMPLE_TYPE enumerated type, specifying the levels of full-scene multisampling supported by the surface.
- MultiSampleQuality
- Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by IDirect3D9::CheckDeviceMultiSampleType. Passing a larger value returns the error, D3DERR_INVALIDCALL. The MultisampleQuality values of paired render targets, depth stencil surfaces and the MultiSample type must all match.
- Width
- Width of the surface, in pixels.
- Height
- Height of the surface, in pixels.
Structure Information
Header d3d9types.h Minimum operating systems Windows 98
See Also
IDirect3DCubeTexture9::GetLevelDesc, IDirect3DSurface9::GetDesc, IDirect3DTexture9::GetLevelDesc