DXGKDDI_CLOSENATIVEFENCE callback function (d3dkmddi.h)

DxgkDdiCloseNativeFence is called by the OS to close a native GPU fence object.

Syntax

DXGKDDI_CLOSENATIVEFENCE DxgkddiClosenativefence;

NTSTATUS DxgkddiClosenativefence(
  IN_CONST_HANDLE hAdapter,
  INOUT_PDXGKARG_CLOSENATIVEFENCE pCloseNativeFence
)
{...}

Parameters

hAdapter

[in] A handle to a context block associated with a display adapter. The display miniport driver previously provided this handle to Dxgkrnl in the MiniportDeviceContext output parameter of the DXGKDDI_ADD_DEVICE function.

pCloseNativeFence

[in/out] Pointer to a DXGKARG_CLOSENATIVEFENCE structure that describes the native GPU fence to open.

Return value

DxgkDdiCloseNativeFence returns STATUS_SUCCESS if KMD was able to successfully open a native GPU fence object. Otherwise, it returns an appropriate NTSTATUS error code.

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
IRQL PASSIVE_LEVEL

See also

DXGKARG_CLOSENATIVEFENCE

DxgkDdiOpenNativeFence