Struct vulkano::image::view::UnsafeImageView [−][src]
pub struct UnsafeImageView { /* fields omitted */ }
A low-level wrapper around a vkImageView
.
Implementations
impl UnsafeImageView
[src]
impl UnsafeImageView
[src]pub unsafe fn new(
image: &UnsafeImage,
ty: ImageViewType,
component_mapping: ComponentMapping,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]
pub unsafe fn new(
image: &UnsafeImage,
ty: ImageViewType,
component_mapping: ComponentMapping,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]Creates a new view from an image.
Safety
- The returned
UnsafeImageView
must not outliveimage
. image
must have a usage that is compatible with image views.ty
must be compatible with the dimensions and flags of the image.mipmap_levels
must not be empty, must be within the range of levels of the image, and be compatible with the requestedty
.array_layers
must not be empty, must be within the range of layers of the image, and be compatible with the requestedty
.
Panics
Panics if the image is a YcbCr image, since the Vulkano API is not yet flexible enough to specify the aspect of image.
Trait Implementations
impl Debug for UnsafeImageView
[src]
impl Debug for UnsafeImageView
[src]impl Drop for UnsafeImageView
[src]
impl Drop for UnsafeImageView
[src]impl Hash for UnsafeImageView
[src]
impl Hash for UnsafeImageView
[src]impl PartialEq<UnsafeImageView> for UnsafeImageView
[src]
impl PartialEq<UnsafeImageView> for UnsafeImageView
[src]impl VulkanObject for UnsafeImageView
[src]
impl VulkanObject for UnsafeImageView
[src]const TYPE: ObjectType
[src]
const TYPE: ObjectType
[src]The ObjectType
of the internal Vulkan handle.
fn internal_object(&self) -> ImageView
[src]
fn internal_object(&self) -> ImageView
[src]Returns a reference to the object.
impl Eq for UnsafeImageView
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnsafeImageView
impl Send for UnsafeImageView
impl Sync for UnsafeImageView
impl Unpin for UnsafeImageView
impl UnwindSafe for UnsafeImageView
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(usize) -> bool
[src]
pub fn is_size_suitable(usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.