Struct vulkano::image::view::UnsafeImageView [−][src]
A low-level wrapper around a vkImageView
.
Implementations
impl UnsafeImageView
[src]
pub unsafe fn new(
image: &UnsafeImage,
ty: ImageViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
[src]
image: &UnsafeImage,
ty: ImageViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<UnsafeImageView, OomError>
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 Drop for UnsafeImageView
[src]
impl Eq for UnsafeImageView
[src]
impl Hash for UnsafeImageView
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<UnsafeImageView> for UnsafeImageView
[src]
impl VulkanObject for UnsafeImageView
[src]
type Object = ImageView
The type of the object.
const TYPE: ObjectType
[src]
fn internal_object(&self) -> ImageView
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,