pub struct SemaphoreObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> SemaphoreObject<Device>
Sourcepub const unsafe fn manage(handle: VkSemaphore, parent: Device) -> Self
pub const unsafe fn manage(handle: VkSemaphore, parent: Device) -> Self
Constructs from raw values
§Safety
the resource must be created from the device and not freed anywhere
Sourcepub const fn unmanage(self) -> (VkSemaphore, Device)
pub const fn unmanage(self) -> (VkSemaphore, Device)
Purges the construct (Drop will not be called for this resource)
Source§impl<Device: VkHandle<Handle = VkDevice> + Clone> SemaphoreObject<&Device>
impl<Device: VkHandle<Handle = VkDevice> + Clone> SemaphoreObject<&Device>
Sourcepub fn clone_parent(self) -> SemaphoreObject<Device>
pub fn clone_parent(self) -> SemaphoreObject<Device>
Owning parent object by cloning it.
Source§impl<Device: Device> SemaphoreObject<Device>
impl<Device: Device> SemaphoreObject<Device>
Sourcepub fn new(device: Device, info: &SemaphoreCreateInfo<'_>) -> Result<Self>
pub fn new(device: Device, info: &SemaphoreCreateInfo<'_>) -> Result<Self>
Trait Implementations§
Source§impl<Device: Device> DeviceChild for SemaphoreObject<Device>
impl<Device: Device> DeviceChild for SemaphoreObject<Device>
Source§type ConcreteDevice = Device
type ConcreteDevice = Device
A concrete type of the parent device object.
Source§fn device(&self) -> &Self::ConcreteDevice
fn device(&self) -> &Self::ConcreteDevice
Retrieve a reference to a device object that creates this object
Source§impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for SemaphoreObject<Device>
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
fn device_transparent_ref<'a>(&'a self) -> VkHandleRef<'a, VkDevice>
Source§impl<Device: VkHandle<Handle = VkDevice>> Drop for SemaphoreObject<Device>
Available on crate feature Implements only.
impl<Device: VkHandle<Handle = VkDevice>> Drop for SemaphoreObject<Device>
Available on crate feature
Implements only.Source§impl<Device: Device> Semaphore for SemaphoreObject<Device>
impl<Device: Device> Semaphore for SemaphoreObject<Device>
Source§fn submit_info<'a>(&'a self) -> SemaphoreSubmitInfo<'a>
fn submit_info<'a>(&'a self) -> SemaphoreSubmitInfo<'a>
Creates a submit info structure for this semaphore.
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandle for SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandle for SemaphoreObject<Device>
type Handle = VkSemaphore
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref<'a>(&'a self) -> VkHandleRef<'a, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for SemaphoreObject<Device>
Source§fn native_ptr_mut(&mut self) -> Self::Handle
fn native_ptr_mut(&mut self) -> Self::Handle
Retrieve an underlying mutable handle
fn as_transparent_ref_mut<'a>(&'a mut self) -> VkHandleRefMut<'a, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkObject for SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkObject for SemaphoreObject<Device>
const TYPE: VkObjectType = brvk::VkSemaphore::OBJECT_TYPE
impl<Device: Device> SemaphoreMut for SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Send> Send for SemaphoreObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for SemaphoreObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for SemaphoreObject<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for SemaphoreObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for SemaphoreObject<Device>where
Device: Unpin,
impl<Device> UnsafeUnpin for SemaphoreObject<Device>where
Device: UnsafeUnpin,
impl<Device> UnwindSafe for SemaphoreObject<Device>where
Device: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more