ID3D11Fence::SetEventOnCompletion method (d3d11_3.h)
Specifies an event that should be fired when the fence reaches a certain value.
This member function is equivalent to the Direct3D 12 ID3D12Fence::SetEventOnCompletion member function, and applies between Direct3D 11 and Direct3D 12 in interop scenarios.
Syntax
HRESULT SetEventOnCompletion(
UINT64 Value,
HANDLE hEvent
);
Parameters
Value
Type: UINT64
The fence value when the event is to be signaled.
hEvent
Type: HANDLE
A handle to the event object.
Return value
Type: HRESULT
This method returns E_OUTOFMEMORY if the kernel components don’t have sufficient memory to store the event in a list. See Direct3D 11 Return Codes for other possible return values.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11_3.h |
Library | D3D11.lib |
DLL | D3D11.dll |