Flags to control inserting a fence, such as whether pending commands are flushed before the fence is executed.
typedef enum D3D11_INSERT_FENCE_FLAGS
{
D3D11_INSERT_FENCE_NO_KICKOFF = 0x0001
} D3D11_INSERT_FENCE_FLAGS;
| Constant | Description |
|---|---|
| D3D11_INSERT_FENCE_NO_KICKOFF | If this flag is set, pending commands are not flushed and the fence is executed immediately. If this flag is not set, pending commands are flushed before the fence is executed. |
Setting D3D11_INSERT_FENCE_NO_KICKOFF should be done with caution, as improper ordering of fence insertions and fence waits can cause a fence deadlock. Careful use of this flag can reduce kickoffs and consequently increase speed.
These flags are used by the following methods:
For more details, see the synchronization sections in Optimizing Monolithic Driver Performance.
Header: Declared in d3d11_x.h.