pub struct PipelineObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);
Expand description
Opaque handle to a pipeline object
Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> PipelineObject<Device>
Sourcepub const unsafe fn manage(handle: VkPipeline, parent: Device) -> Self
pub const unsafe fn manage(handle: VkPipeline, 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) -> (VkPipeline, Device)
pub const fn unmanage(self) -> (VkPipeline, Device)
Purges the construct (Drop will not be called for this resource)
Source§impl<Device: VkHandle<Handle = VkDevice> + Clone> PipelineObject<&Device>
impl<Device: VkHandle<Handle = VkDevice> + Clone> PipelineObject<&Device>
Sourcepub fn clone_parent(self) -> PipelineObject<Device>
pub fn clone_parent(self) -> PipelineObject<Device>
Owning parent object by cloning it.
Trait Implementations§
Source§impl<Device: Device> DeviceChild for PipelineObject<Device>
impl<Device: Device> DeviceChild for PipelineObject<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 PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for PipelineObject<Device>
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl<Device: VkHandle<Handle = VkDevice>> Drop for PipelineObject<Device>
Available on crate feature Implements
only.
impl<Device: VkHandle<Handle = VkDevice>> Drop for PipelineObject<Device>
Available on crate feature
Implements
only.Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandle for PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandle for PipelineObject<Device>
type Handle = VkPipeline
Source§fn native_ptr(&self) -> Self::Handle
fn native_ptr(&self) -> Self::Handle
Retrieve an underlying handle
fn as_transparent_ref(&self) -> VkHandleRef<'_, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for PipelineObject<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(&mut self) -> VkHandleRefMut<'_, Self::Handle>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkObject for PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkObject for PipelineObject<Device>
const TYPE: VkObjectType = 19i32
Source§fn set_name(&self, name: Option<&CStr>) -> Result<()>where
Self: DeviceChild<ConcreteDevice: InstanceChild<ConcreteInstance: InstanceExtensions>>,
Self::Handle: VkRawHandle,
fn set_name(&self, name: Option<&CStr>) -> Result<()>where
Self: DeviceChild<ConcreteDevice: InstanceChild<ConcreteInstance: InstanceExtensions>>,
Self::Handle: VkRawHandle,
Available on crate features
Implements
and VK_EXT_debug_utils
only.Give a user-friendly name to this object. Read more
impl<Device: VkHandle<Handle = VkDevice>> Pipeline for PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Send> Send for PipelineObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for PipelineObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for PipelineObject<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for PipelineObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for PipelineObject<Device>where
Device: Unpin,
impl<Device> UnwindSafe for PipelineObject<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