| 34 | namespace Falcor |
| 35 | { |
| 36 | Fence::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 | |
| 45 | Fence::~Fence() = default; |
| 46 |
nothing calls this directly
no test coverage detected