D3DKMDT_SHAREDPRIMARYSURFACEDATA structure (d3dkmdt.h)

The D3DKMDT_SHAREDPRIMARYSURFACEDATA structure describes a shared primary surface.

Syntax

typedef struct _D3DKMDT_SHAREDPRIMARYSURFACEDATA {
  [in] UINT                           Width;
  [in] UINT                           Height;
  [in] D3DDDIFORMAT                   Format;
  [in] D3DDDI_RATIONAL                RefreshRate;
  [in] D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
} D3DKMDT_SHAREDPRIMARYSURFACEDATA;

Members

[in] Width

The width of the surface, in pixels. The driver returns the width value.

[in] Height

The height of the surface, in pixels. The driver returns the height value.

[in] Format

A D3DDDIFORMAT-typed value that indicates the pixel format of the surface. The driver returns the format value.

[in] RefreshRate

A D3DDDI_RATIONAL structure that indicates the refresh rate that the shared primary surface was created with.

[in] VidPnSourceId

The zero-based identification number of the video present source in a path of a video present network (VidPN) topology that the surface is located on.

Remarks

Multiple processes can lock a shared primary surface. The video memory manager pins the standard allocation for the shared primary surface in video memory so the digital-to-analog converter (DAC) is guaranteed to always scan-out the appropriate data.

Requirements

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

See also

D3DDDIFORMAT

D3DDDI_RATIONAL

D3DKMDT_STANDARDALLOCATION_TYPE

DXGKARG_GETSTANDARDALLOCATIONDRIVERDATA