pub struct RenderPassObject<Device: VkHandle<Handle = VkDevice>>(/* private fields */);
Expand description
Opaque handle to a render pass object
Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> RenderPassObject<Device>
Sourcepub const unsafe fn manage(handle: VkRenderPass, parent: Device) -> Self
pub const unsafe fn manage(handle: VkRenderPass, parent: Device) -> Self
Sourcepub const fn unmanage(self) -> (VkRenderPass, Device)
pub const fn unmanage(self) -> (VkRenderPass, Device)
Purges internal values (Drop will not be called for this resource)
Source§impl<Device: VkHandle<Handle = VkDevice> + Clone> RenderPassObject<&Device>
impl<Device: VkHandle<Handle = VkDevice> + Clone> RenderPassObject<&Device>
Sourcepub fn clone_parent(self) -> RenderPassObject<Device>
pub fn clone_parent(self) -> RenderPassObject<Device>
Owning parent object by cloning it.
Source§impl<Device: Device> RenderPassObject<Device>
impl<Device: Device> RenderPassObject<Device>
pub fn new( device: Device, create_info: &(impl AnyRenderPassCreateInfo + ?Sized), ) -> Result<Self>
Available on crate feature
Implements
only.Trait Implementations§
Source§impl<Device: Device> DeviceChild for RenderPassObject<Device>
impl<Device: Device> DeviceChild for RenderPassObject<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 RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for RenderPassObject<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 RenderPassObject<Device>
Available on crate feature Implements
only.
impl<Device: VkHandle<Handle = VkDevice>> Drop for RenderPassObject<Device>
Available on crate feature
Implements
only.Source§impl<Device: VkHandle<Handle = VkDevice>> RenderPass for RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> RenderPass for RenderPassObject<Device>
Source§fn optimal_granularity(&self) -> VkExtent2D
fn optimal_granularity(&self) -> VkExtent2D
Available on crate feature
Implements
only.Returns the granularity for optimal render area
fn subpass(&self, index: u32) -> SubpassRef<'_, Self>
Source§impl<Device: VkHandle<Handle = VkDevice>> VkHandle for RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandle for RenderPassObject<Device>
type Handle = VkRenderPass
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 RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkHandleMut for RenderPassObject<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 RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice>> VkObject for RenderPassObject<Device>
const TYPE: VkObjectType = 18i32
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> + Send> Send for RenderPassObject<Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for RenderPassObject<Device>
Auto Trait Implementations§
impl<Device> Freeze for RenderPassObject<Device>where
Device: Freeze,
impl<Device> RefUnwindSafe for RenderPassObject<Device>where
Device: RefUnwindSafe,
impl<Device> Unpin for RenderPassObject<Device>where
Device: Unpin,
impl<Device> UnwindSafe for RenderPassObject<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