Skip to main content

create_fence

Function create_fence 

Source
pub unsafe fn create_fence(
    device: &Device,
    create_info: &FenceCreateInfo<'_>,
    allocator: Option<&AllocationCallbacks>,
) -> Result<Fence, CallError>
Expand description

Create a fence.

ยงSafety

create_info must be valid. The fence must be destroyed exactly once.

Khronos reference: vkCreateFence