pub fn new(device: Device, flags: FenceCreateFlags) -> VdResult<Fence> {
        let create_info = FenceCreateInfo::builder()
            .flags(flags)
            .build();

        let handle = unsafe { device.create_fence(&create_info, None)? };

        Ok(Fence {
            inner: Arc::new(Inner {
                handle,
                device,
            })
        })
    }
/// Creates and returns a new fence.
Creates and returns a new fence.
Creates and returns a new fence .
pub fn new(device: Device, flags: FenceCreateFlags) -> VdResult<Fence> {
        let create_info = FenceCreateInfo::builder()
            .flags(flags)
            .build();
        let handle = unsafe { device.create_fence(&create_info, None)? };
        Ok(Fence {
            inner: Arc::new(Inner {
                handle,
                device,
            })
        })
    }
pub fn new ( device : Device , flags : FenceCreateFlags ) -> VdResult < Fence > { let create_info = FenceCreateInfo :: builder ( ) . flags ( flags ) . build ( ) ; let handle = unsafe { device . create_fence ( & create_info , None ) ? } ; Ok ( Fence { inner : Arc :: new ( Inner { handle , device , } ) } ) }
Creates and returns a new fence.
Creates and returns a new fence .
device
Device
flags
FenceCreateFlags
device
Device
flags
FenceCreateFlags