Expand Minimize

D3DDDI_SURFACEINFO structure

The D3DDDI_SURFACEINFO structure describes a resource type, such as a surface.

Syntax


typedef struct _D3DDDI_SURFACEINFO {
  UINT       Width;
  UINT       Height;
  UINT       Depth;
  const VOID *pSysMem;
  UINT       SysMemPitch;
  UINT       SysMemSlicePitch;
} D3DDDI_SURFACEINFO;

Members

Width

[in] The width, in pixels, of the surface or volume or the length, in pixels, of the linear resource.

Height

[in] The height, in pixels, of the surface or volume.

Depth

[in] The depth, in pixels, of the volume.

pSysMem

[in] A pointer to a buffer that contains the contents of the resource if the resource exists in system memory and NULL if the resource exists in video memory.

Note that this member is valid only if the Pool member of the D3DDDIARG_CREATERESOURCE structure for creating the resource is set to the D3DDDIPOOL_SYSTEMMEM value.

SysMemPitch

[in] The pitch, in bytes, of the surface--that is, the distance, in bytes, to the start of the next line.

SysMemSlicePitch

[in] The slice, in bytes, of the volume.

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dukmdt.h (include D3dumddi.h or D3dkmddi.h)

See also

CreateResource
D3DDDIARG_CREATERESOURCE

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft