Struct vulkano::image::view::ImageView [−][src]
A safe image view that checks for validity and keeps its attached image alive.
Implementations
impl<I> ImageView<I> where
I: ImageAccess,
[src]
I: ImageAccess,
pub fn new(image: I) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
[src]
Creates a new image view spanning all mipmap levels and array layers in the image.
The view type is automatically determined from the image, based on its dimensions and number of layers.
pub fn with_type(
image: I,
ty: ImageViewType
) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
[src]
image: I,
ty: ImageViewType
) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
Crates a new image view with a custom type.
pub fn with_type_ranges(
image: I,
ty: ImageViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
[src]
image: I,
ty: ImageViewType,
mipmap_levels: Range<u32>,
array_layers: Range<u32>
) -> Result<Arc<ImageView<I>>, ImageViewCreationError>
Creates a new image view with a custom type and ranges of mipmap levels and array layers.
pub fn image(&self) -> &I
[src]
Returns the wrapped image that this image view was created from.
Trait Implementations
impl<I> ImageViewAbstract for ImageView<I> where
I: ImageAccess,
[src]
I: ImageAccess,
fn image(&self) -> &dyn ImageAccess
[src]
fn inner(&self) -> &UnsafeImageView
[src]
fn array_layers(&self) -> Range<u32>
[src]
fn format(&self) -> Format
[src]
fn identity_swizzle(&self) -> bool
[src]
fn ty(&self) -> ImageViewType
[src]
fn can_be_sampled(&self, _sampler: &Sampler) -> bool
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for ImageView<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for ImageView<I> where
I: Send,
I: Send,
impl<I> Sync for ImageView<I> where
I: Sync,
I: Sync,
impl<I> Unpin for ImageView<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for ImageView<I> where
I: UnwindSafe,
I: UnwindSafe,
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>,