[−][src]Struct bedrock::Fence
Opaque handle to a fence object
Methods
impl Fence
[src]
Following methods are enabled with [feature = "Implements"]
pub fn new(device: &Device, signaled: bool) -> Result<Self>
[src]
Create a new fence object
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
impl Fence
[src]
Following methods are enabled with [feature = "Implements"]
pub fn wait_multiple(
objects: &[&Self],
wait_all: bool,
timeout: Option<u64>
) -> Result<bool>
[src]
objects: &[&Self],
wait_all: bool,
timeout: Option<u64>
) -> Result<bool>
Wait for one or more fences to become signaled, returns Ok(true)
if operation is timed out
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_DEVICE_LOST
pub fn wait_timeout(&self, timeout: u64) -> Result<bool>
[src]
Wait for a fence to become signaled, returns Ok(true)
if operation is timed out
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
VK_ERROR_DEVICE_LOST
pub fn reset_multiple(objects: &[&Self]) -> Result<()>
[src]
Resets one or more fence objects
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn reset(&self) -> Result<()>
[src]
Resets a fence object
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
Trait Implementations
impl DeviceChild for Fence
[src]
impl Drop for Fence
[src]
impl<'s> From<&'s Fence> for CompletionHandler<'s>
[src]
impl Send for Fence
[src]
impl Status for Fence
[src]
impl Sync for Fence
[src]
impl VkHandle for Fence
[src]
type Handle = VkFence
fn native_ptr(&self) -> VkFence
[src]
impl Waitable for Fence
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,