DXGI_DDI_ARG_PRESENT1 structure

Describes a resource to display. Used with the pfnPresent1(DXGI) function by Windows Display Driver Model (WDDM) 1.3 and later user-mode display drivers.

Syntax

typedef struct DXGI_DDI_ARG_PRESENT1 {
  DXGI_DDI_HDEVICE                  hDevice;
  CONST DXGI_DDI_ARG_PRESENTSURFACE *phSurfacesToPresent;
  UINT                              SurfacesToPresent;
  DXGI_DDI_HRESOURCE                hDstResource;
  UINT                              DstSubResourceIndex;
  void                              *pDXGIContext;
  DXGI_DDI_PRESENT_FLAGS            Flags;
  DXGI_DDI_FLIP_INTERVAL_TYPE       FlipInterval;
  UINT                              Reserved;
  CONST RECT                        *pDirtyRects;
  UINT                              DirtyRects;
  UINT                              BackBufferMultiplicity;
};

Members

phSurfacesToPresent

[in] An array of non-NULL handles and zero-based indices to the source resource to display or to release. phSurfacesToPresent is always a valid handle for a resource to display.

SurfacesToPresent

[in] The array of surfaces to be presented. Must not be zero.

hDstResource

[in] A handle to the destination resource to display to. hDstResource can be NULL if the destination is unknown; kernel mode will determine the destination just before sending the hardware command stream through DMA to the graphics processor.

When many resource are being presented, hDstResource will be NULL, and the driver must only translate the last source resource handle for use with the pfnPresentCb function.

DstSubResourceIndex

[in] The zero-based index into the destination resource, which the handle in the hDstResource member specifies. The DstSubResourceIndex index indicates the subresource or surface to display to.

pDXGIContext

[in] A handle to the DXGI context. This handle is opaque to the driver. The driver must pass the handle in this member as the pDXGIContext member of the DXGIDDICB_PRESENT structure when the driver calls the pfnPresentCbDXGI function.

Flags

[in] A DXGI_DDI_PRESENT_FLAGS structure that identifies, in bit-field flags, how to perform the present operation.

FlipInterval

[in] A DXGI_DDI_FLIP_INTERVAL_TYPE-typed value that indicates the flip interval (that is, if the flip occurs after zero, one, two, three, or four vertical syncs).

Reserved

This member is reserved and should be set to zero.

pDirtyRects

[in] A pointer to an array of dirty rectangles (RECTs), relative to the source rectangle SrcRect, that indicate the portion of the overlay plane that has changed.

The driver can use this member to perform optimizations, though it's not required to use the dirty rectangle info. However, the driver should never fail a function call based on the provided dirty rectangles.

DirtyRects

[in] The number of dirty rectangles in the array pointed to by pDirtyRects.

Requirements

   
Windows version Windows 8.1,WDDM 1.3 and later Windows Server 2012 R2
Header dxgiddi.h (include D3d10umddi.h)

See Also

CreateDevice(D3D10)

DXGIDDICB_PRESENT

DXGI_DDI_FLIP_INTERVAL_TYPE

DXGI_DDI_PRESENT_FLAGS

RECT

pfnPresent1(DXGI)

pfnPresentCb

pfnPresentCbDXGI