pub struct PipelineLayoutObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);Expand description
Opaque handle to a pipeline layout object
Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> PipelineLayoutObject<Device>
Sourcepub const unsafe fn manage(handle: VkPipelineLayout, parent: Device) -> Self
pub const unsafe fn manage(handle: VkPipelineLayout, 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) -> (VkPipelineLayout, Device)
pub const fn unmanage(self) -> (VkPipelineLayout, Device)
Purges the construct (Drop will not be called for this resource)
Source§impl<Device: VkHandle<Handle = VkDevice> + Clone> PipelineLayoutObject<&Device>
impl<Device: VkHandle<Handle = VkDevice> + Clone> PipelineLayoutObject<&Device>
Sourcepub fn clone_parent(self) -> PipelineLayoutObject<Device>
pub fn clone_parent(self) -> PipelineLayoutObject<Device>
Owning parent object by cloning it.
Source§impl<Device: Device> PipelineLayoutObject<Device>
impl<Device: Device> PipelineLayoutObject<Device>
Sourcepub fn new(device: Device, info: &PipelineLayoutCreateInfo<'_>) -> Result<Self>
pub fn new(device: Device, info: &PipelineLayoutCreateInfo<'_>) -> Result<Self>
Trait Implementations§
Source§impl<Device: Device> DeviceChild for PipelineLayoutObject<Device>
impl<Device: Device> DeviceChild for PipelineLayoutObject<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 PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for PipelineLayoutObject<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>> VkHandle for PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandle for PipelineLayoutObject<Device>
type Handle = VkPipelineLayout
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 PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for PipelineLayoutObject<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 PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkObject for PipelineLayoutObject<Device>
const TYPE: VkObjectType = 17i32
impl<Device: VkHandle<Handle = VkDevice>> PipelineLayout for PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Send> Send for PipelineLayoutObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for PipelineLayoutObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for PipelineLayoutObject<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for PipelineLayoutObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for PipelineLayoutObject<Device>where
Device: Unpin,
impl<Device> UnwindSafe for PipelineLayoutObject<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