pub struct ImageViewObject<Image: DeviceChildHandle>(/* private fields */);Expand description
Opaque handle to a image view object
Implementations§
Source§impl<Image: DeviceChildHandle> ImageViewObject<Image>
impl<Image: DeviceChildHandle> ImageViewObject<Image>
Sourcepub const unsafe fn manage(handle: VkImageView, parent: Image) -> Self
pub const unsafe fn manage(handle: VkImageView, parent: Image) -> Self
Sourcepub const fn unmanage(self) -> (VkImageView, Image)
pub const fn unmanage(self) -> (VkImageView, Image)
Purges internal values (Drop will not be called for this resource)
Source§impl<Image: DeviceChildHandle + Clone> ImageViewObject<&Image>
impl<Image: DeviceChildHandle + Clone> ImageViewObject<&Image>
Sourcepub fn clone_parent(self) -> ImageViewObject<Image>
pub fn clone_parent(self) -> ImageViewObject<Image>
Owning parent object by cloning it.
Source§impl<Image: DeviceChild> ImageViewObject<Image>
impl<Image: DeviceChild> ImageViewObject<Image>
Sourcepub fn new(image: Image, info: &ImageViewCreateInfo<'_>) -> Result<Self>
pub fn new(image: Image, info: &ImageViewCreateInfo<'_>) -> Result<Self>
Create a new image view from an existing image
§Failure
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY- [
VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS_KHR]
Trait Implementations§
Source§impl<Image: DeviceChild> DeviceChild for ImageViewObject<Image>
impl<Image: DeviceChild> DeviceChild for ImageViewObject<Image>
Source§type ConcreteDevice = <Image as DeviceChild>::ConcreteDevice
type ConcreteDevice = <Image as DeviceChild>::ConcreteDevice
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<Image: DeviceChildHandle> DeviceChildHandle for ImageViewObject<Image>
impl<Image: DeviceChildHandle> DeviceChildHandle for ImageViewObject<Image>
Source§fn device_handle(&self) -> VkDevice
fn device_handle(&self) -> VkDevice
Retrieve a reference to a device handle that creates this objecs
Source§impl<Image: DeviceChildHandle> Drop for ImageViewObject<Image>
impl<Image: DeviceChildHandle> Drop for ImageViewObject<Image>
Source§impl<Image: Image> ImageChild for ImageViewObject<Image>
impl<Image: Image> ImageChild for ImageViewObject<Image>
Source§impl<Image: Image> ImageChildMut for ImageViewObject<Image>
impl<Image: Image> ImageChildMut for ImageViewObject<Image>
fn image_mut(&mut self) -> &mut Image
Source§impl<Image: DeviceChildHandle> VkHandle for ImageViewObject<Image>
impl<Image: DeviceChildHandle> VkHandle for ImageViewObject<Image>
type Handle = VkImageView
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<Image: DeviceChildHandle> VkHandleMut for ImageViewObject<Image>
impl<Image: DeviceChildHandle> VkHandleMut for ImageViewObject<Image>
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<Image: DeviceChildHandle> VkObject for ImageViewObject<Image>
impl<Image: DeviceChildHandle> VkObject for ImageViewObject<Image>
const TYPE: VkObjectType = 14i32
impl<Image: DeviceChildHandle> ImageView for ImageViewObject<Image>
impl<Image: DeviceChildHandle + Send> Send for ImageViewObject<Image>
impl<Image: DeviceChildHandle + Sync> Sync for ImageViewObject<Image>
Auto Trait Implementations§
impl<Image> Freeze for ImageViewObject<Image>where
Image: Freeze,
impl<Image> RefUnwindSafe for ImageViewObject<Image>where
Image: RefUnwindSafe,
impl<Image> Unpin for ImageViewObject<Image>where
Image: Unpin,
impl<Image> UnwindSafe for ImageViewObject<Image>where
Image: 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