Struct vulkano::image::view::ImageViewBuilder [−][src]
pub struct ImageViewBuilder<I> { /* fields omitted */ }
Implementations
impl<I> ImageViewBuilder<I> where
I: ImageAccess,
[src]
impl<I> ImageViewBuilder<I> where
I: ImageAccess,
[src]pub fn with_type(self, ty: ImageViewType) -> Self
[src]
pub fn with_type(self, ty: ImageViewType) -> Self
[src]Sets the image view type.
By default, this is determined from the image, based on its dimensions and number of layers.
The value of ty
must be compatible with the dimensions of the image and the selected
array layers.
pub fn with_component_mapping(self, component_mapping: ComponentMapping) -> Self
[src]
pub fn with_component_mapping(self, component_mapping: ComponentMapping) -> Self
[src]Sets how to map components of each pixel.
By default, this is the identity mapping, with every component mapped directly.
pub fn with_mipmap_levels(self, mipmap_levels: Range<u32>) -> Self
[src]
pub fn with_mipmap_levels(self, mipmap_levels: Range<u32>) -> Self
[src]Sets the range of mipmap levels that the view should cover.
By default, this is the full range of mipmaps present in the image.
pub fn with_array_layers(self, array_layers: Range<u32>) -> Self
[src]
pub fn with_array_layers(self, array_layers: Range<u32>) -> Self
[src]Sets the range of array layers that the view should cover.
By default, this is the full range of array layers present in the image.
Trait Implementations
Auto Trait Implementations
impl<I> RefUnwindSafe for ImageViewBuilder<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for ImageViewBuilder<I> where
I: Send,
I: Send,
impl<I> Sync for ImageViewBuilder<I> where
I: Sync,
I: Sync,
impl<I> Unpin for ImageViewBuilder<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for ImageViewBuilder<I> where
I: UnwindSafe,
I: UnwindSafe,
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.