MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Init

Method Init

Source/Engine/GraphicsDevice/DirectX/DX12/CommandQueueDX12.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool FenceDX12::Init()
20{
21 LOG_DIRECTX_RESULT(_device->GetDevice()->CreateFence(0, D3D12_FENCE_FLAG_NONE, IID_PPV_ARGS(&_fence)));
22#if GPU_ENABLE_RESOURCE_NAMING
23 _fence->SetName(TEXT("Fence"));
24#endif
25
26 _event = CreateEvent(nullptr, false, false, nullptr);
27 ASSERT(_event != INVALID_HANDLE_VALUE);
28 return false;
29}
30
31void FenceDX12::Release()
32{

Callers

nothing calls this directly

Calls 4

IsReadyFunction · 0.50
GetDeviceMethod · 0.45
SetNameMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected