Microsoft DirectX 8.1 (C++)

D3DSURFACE_DESC

Describes a surface.

typedef struct _D3DSURFACE_DESC {
    D3DFORMAT           Format;
    D3DRESOURCETYPE     Type;
    DWORD               Usage;
    D3DPOOL             Pool;
    UINT                Size;
    D3DMULTISAMPLE_TYPE MultiSampleType;
    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
Combination of one or more of the following flags, specifying the usage for this resource.
D3DUSAGE_DEPTHSTENCIL
Set to indicate that the surface is to be used as a depth stencil surface.
D3DUSAGE_RENDERTARGET
Set to indicate that the surface is to be used as a render target.
Pool
Member of the D3DPOOL enumerated type, specifying the class of memory allocated for this surface.
Size
Size of the surface, in bytes.
MultiSampleType
Member of the D3DMULTISAMPLE_TYPE enumerated type, specifying the levels of full-scene multisampling supported by the surface.
Width
Width of the surface, in pixels.
Height
Height of the surface, in pixels.

Requirements

  Header: Declared in D3d8types.h.

See Also

IDirect3DCubeTexture8::GetLevelDesc, IDirect3DSurface8::GetDesc, IDirect3DTexture8::GetLevelDesc.