class
FenceA fence is the most heavyweight of Vulkan synchronization primitives, and is for explicitly synchronizating the device and host.
Contents
Avoid using these unless absolutely necessary, as while it's better than waiting on a queue or device (requiring full event/pipeline flush), it's still not a cheap operation.
Constructors, destructors, conversion operators
- Fence(const VkDevice& dvc, VkFenceCreateFlags flags)
- Creates a new fence object, using the given flags to change initial state (as that is the only important param in the createInfo)
Function documentation
vpr:: Fence:: Fence(const VkDevice& dvc,
VkFenceCreateFlags flags)
Creates a new fence object, using the given flags to change initial state (as that is the only important param in the createInfo)
Parameters | |
---|---|
dvc | |
flags | Set to VK_FENCE_CREATE_SIGNALED_BIT to create the fence in a signaled state - otherwise pass a 0 and it will remain unsignaled |