ID3D11DeviceContextX::InsertFence Method

Inserts a fence into the GPU command buffer.

Syntax

public:
UINT64 InsertFence(
         UINT Flags
)  

Parameters

Flags
Type: UINT 

[in] Flags to control inserting a fence, as D3D11_INSERT_FENCE_FLAGS enumeration constants.

Return value

Type: UINT64 

The driver-generated ID of the fence. This ID is used when quering the state of the fence.

Remarks

This method is only supported for the immediate context, and will not work with a deferred context.

Refer to the fences and synchronization sections of Optimizing Monolithic Driver Performance for more details.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11DeviceContextX Interface

ID3D11DeviceContextX Members