pub struct FramebufferObject<'r, Device: VkHandle<Handle = VkDevice>> { /* private fields */ }
Expand description
Opaque handle to a framebuffer object
Implementations§
Source§impl<Device: VkHandle<Handle = VkDevice>> FramebufferObject<'_, Device>
impl<Device: VkHandle<Handle = VkDevice>> FramebufferObject<'_, Device>
Sourcepub const unsafe fn manage(handle: VkFramebuffer, parent: Device) -> Self
pub const unsafe fn manage(handle: VkFramebuffer, 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) -> (VkFramebuffer, Device)
pub const fn unmanage(self) -> (VkFramebuffer, Device)
Purges the construct (Drop will not be called for this resource)
Source§impl<'r, Device: VkHandle<Handle = VkDevice> + Clone> FramebufferObject<'r, &Device>
impl<'r, Device: VkHandle<Handle = VkDevice> + Clone> FramebufferObject<'r, &Device>
Sourcepub fn clone_parent(self) -> FramebufferObject<'r, Device>
pub fn clone_parent(self) -> FramebufferObject<'r, Device>
Owning parent object by cloning it.
Source§impl<'r, Device: Device> FramebufferObject<'r, Device>
impl<'r, Device: Device> FramebufferObject<'r, Device>
Sourcepub fn new(device: Device, info: &FramebufferCreateInfo<'_, '_>) -> Result<Self>
Available on crate feature Implements
only.
pub fn new(device: Device, info: &FramebufferCreateInfo<'_, '_>) -> Result<Self>
Implements
only.Trait Implementations§
Source§impl<Device: Device> DeviceChild for FramebufferObject<'_, Device>
impl<Device: Device> DeviceChild for FramebufferObject<'_, 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 FramebufferObject<'_, Device>
impl<Device: VkHandle<Handle = VkDevice>> DeviceChildHandle for FramebufferObject<'_, 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 FramebufferObject<'_, Device>
Available on crate feature Implements
only.
impl<Device: VkHandle<Handle = VkDevice>> Drop for FramebufferObject<'_, Device>
Available on crate feature
Implements
only.Source§impl<'r, Device: VkHandle<Handle = VkDevice>> VkHandle for FramebufferObject<'r, Device>
impl<'r, Device: VkHandle<Handle = VkDevice>> VkHandle for FramebufferObject<'r, Device>
type Handle = VkFramebuffer
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<'r, Device: VkHandle<Handle = VkDevice>> VkHandleMut for FramebufferObject<'r, Device>
impl<'r, Device: VkHandle<Handle = VkDevice>> VkHandleMut for FramebufferObject<'r, 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<'r, Device: VkHandle<Handle = VkDevice>> VkObject for FramebufferObject<'r, Device>
impl<'r, Device: VkHandle<Handle = VkDevice>> VkObject for FramebufferObject<'r, Device>
const TYPE: VkObjectType = 24i32
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>> Framebuffer for FramebufferObject<'_, Device>
impl<Device: VkHandle<Handle = VkDevice> + Send> Send for FramebufferObject<'_, Device>
impl<Device: VkHandle<Handle = VkDevice> + Sync> Sync for FramebufferObject<'_, Device>
Auto Trait Implementations§
impl<'r, Device> Freeze for FramebufferObject<'r, Device>where
Device: Freeze,
impl<'r, Device> !RefUnwindSafe for FramebufferObject<'r, Device>
impl<'r, Device> Unpin for FramebufferObject<'r, Device>where
Device: Unpin,
impl<'r, Device> !UnwindSafe for FramebufferObject<'r, Device>
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