D3DDDI_SURFACEINFO structure (d3dukmdt.h)

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

Syntax

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

Members

[in] Width

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

[in] Height

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

[in] Depth

The depth, in pixels, of the volume.

[in] pSysMem

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.

[in] SysMemPitch

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

[in] SysMemSlicePitch

The slice, in bytes, of the volume.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dukmdt.h (include D3dumddi.h, D3dkmddi.h)

See also

CreateResource

D3DDDIARG_CREATERESOURCE