Struct vulkano::image::view::ImageViewBuilder[][src]

pub struct ImageViewBuilder<I> { /* fields omitted */ }

Implementations

impl<I> ImageViewBuilder<I> where
    I: ImageAccess
[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]

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]

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]

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.

pub fn build(self) -> Result<Arc<ImageView<I>>, ImageViewCreationError>[src]

Builds the ImageView.

Trait Implementations

impl<I: Debug> Debug for ImageViewBuilder<I>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<I> RefUnwindSafe for ImageViewBuilder<I> where
    I: RefUnwindSafe

impl<I> Send for ImageViewBuilder<I> where
    I: Send

impl<I> Sync for ImageViewBuilder<I> where
    I: Sync

impl<I> Unpin for ImageViewBuilder<I> where
    I: Unpin

impl<I> UnwindSafe for ImageViewBuilder<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for 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]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.