DXGKARG_CREATENATIVEFENCE structure (d3dkmddi.h)

DXGKARG_CREATENATIVEFENCE is the structure passed to DxgkDdiCreateNativeFence to describe a native GPU fence.

Syntax

typedef struct _DXGKARG_CREATENATIVEFENCE {
  HANDLE                          hGlobalNativeFence;
  D3DDDI_NATIVEFENCE_TYPE         Type;
  D3DGPU_VIRTUAL_ADDRESS          CurrentValueSystemProcessGpuVa;
  D3DGPU_VIRTUAL_ADDRESS          MonitoredValueSystemProcessGpuVa;
  BYTE                            pPrivateDriverData[D3DDDI_NATIVE_FENCE_PDD_SIZE];
  DXGKARG_CREATENATIVEFENCE_FLAGS Flags;
  BYTE                            Reserved[32];
} DXGKARG_CREATENATIVEFENCE;

Members

hGlobalNativeFence

[in/out] On input, the value of hGlobalNativeFence is the Dxgkrnl-generated handle of the object.

On output, the value returned by the KMD is the internal, KMD-maintained handle to be used by subsequent callbacks to refer to this native GPU fence object.

Type

[in] A D3DDDI_NATIVEFENCE_TYPE value that indicates the type of native GPU fence object to create.

CurrentValueSystemProcessGpuVa

[in] Read/write mapping of the current value for the GPU in system process address space. The OS has does this mapping only if KMD has set the DXGK_NATIVE_FENCE_CAPS::MapToGpuSystemProcess cap to TRUE.

MonitoredValueSystemProcessGpuVa

[in] Read/write mapping of the monitored value for the GPU in system process address space. The OS has does this mapping only if KMD has set the DXGK_NATIVE_FENCE_CAPS::MapToGpuSystemProcess cap to TRUE.

pPrivateDriverData[D3DDDI_NATIVE_FENCE_PDD_SIZE]

[in/out] Pointer to the private driver data from the user-mode CreateNativeFence call, copied back to UMD.

Flags

[in] A DXGKARG_CREATENATIVEFENCE_FLAGS structure containing flags to use when creating the native GPU fence object.

Reserved[32]

Reserved for system use.

Remarks

For more information about native GPU fences, see Native GPU fence objects.

Requirements

Requirement Value
Minimum supported client Windows 11, version 24H2
Header d3dkmddi.h

See also

DxgkDdiCreateNativeFence