D3DSURFACE_DESC structure
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, *LPD3DSURFACE_DESC;
Members
- Format
-
Type: D3DFORMAT
-
Member of the D3DFORMAT enumerated type, describing the surface format.
- Type
-
Type: D3DRESOURCETYPE
-
Member of the D3DRESOURCETYPE enumerated type, identifying this resource as a surface.
- Usage
-
Type: DWORD
-
Either the D3DUSAGE_DEPTHSTENCIL or D3DUSAGE_RENDERTARGET values. For more information, see D3DUSAGE.
- Pool
-
Type: D3DPOOL
-
Member of the D3DPOOL enumerated type, specifying the class of memory allocated for this surface.
- MultiSampleType
-
Type: D3DMULTISAMPLE_TYPE
-
Member of the D3DMULTISAMPLE_TYPE enumerated type, specifying the levels of full-scene multisampling supported by the surface.
- MultiSampleQuality
-
Type: DWORD
-
Quality level. The valid range is between zero and one less than the level returned by pQualityLevels used by 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
-
Type: UINT
-
Width of the surface, in pixels.
- Height
-
Type: UINT
-
Height of the surface, in pixels.
Requirements
|
Header |
|
|---|
See also