MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / Fence

Method Fence

Source/Falcor/Core/API/Fence.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace Falcor
35{
36Fence::Fence(ref<Device> pDevice, FenceDesc desc) : mpDevice(pDevice), mDesc(desc)
37{
38 FALCOR_ASSERT(mpDevice);
39 gfx::IFence::Desc gfxDesc = {};
40 mSignaledValue = mDesc.initialValue;
41 gfxDesc.isShared = mDesc.shared;
42 FALCOR_GFX_CALL(mpDevice->getGfxDevice()->createFence(gfxDesc, mGfxFence.writeRef()));
43}
44
45Fence::~Fence() = default;
46

Callers

nothing calls this directly

Calls 2

createFenceMethod · 0.80
writeRefMethod · 0.80

Tested by

no test coverage detected