Bewerken

Delen via


D3DKMTOpenNativeFenceFromNtHandle function (d3dkmthk.h)

The D3D runtime calls *D3DKMTOpenNativeFenceFromNTHandle to open an existing shared native fence on a different device or process.

Syntax

NTSTATUS D3DKMTOpenNativeFenceFromNtHandle(
  D3DKMT_OPENNATIVEFENCEFROMNTHANDLE *unnamedParam1
);

Parameters

unnamedParam1

[in/out] Pointer to a D3DKMT_OPENNATIVEFENCEFROMNTHANDLE structure that describes the fence object to open.

Return value

D3DKMTOpenNativeFenceFromNTHandle returns STATUS_SUCCESS on successful creation. Otherwise it returns an NTSTATUS error code such as STATUS_INVALID_PARAMETER.

Remarks

If the native fence is being opened on a different device of the same process, then NativeFenceMapping contains the same virtual addresses as the original native fence. If it is being opened on a different process, then NativeFenceMapping contains new VAs mapped in the new process address space.

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

Requirements

Requirement Value
Minimum supported client Windows 11, version 24H2 (WDDM 3.2)
Header d3dkmthk.h

See also

D3DKMT_OPENNATIVEFENCEFROMNTHANDLE

D3DKMTCreateNativeFence

D3DKMTDestroySynchronizationObject

DxgkDdiOpenNativeFence