Struct screen_13::driver::image::ImageViewInfoBuilder
source · pub struct ImageViewInfoBuilder { /* private fields */ }
Expand description
Builder for ImageViewInfo
.
Implementations§
source§impl ImageViewInfoBuilder
impl ImageViewInfoBuilder
sourcepub fn array_layer_count(self, value: Option<u32>) -> Self
pub fn array_layer_count(self, value: Option<u32>) -> Self
The number of layers that will be contained in the view.
The default value of None
equates to vk::REMAINING_ARRAY_LAYERS
.
sourcepub fn aspect_mask(self, value: ImageAspectFlags) -> Self
pub fn aspect_mask(self, value: ImageAspectFlags) -> Self
The portion of the image that will be contained in the view.
sourcepub fn base_array_layer(self, value: u32) -> Self
pub fn base_array_layer(self, value: u32) -> Self
The first array layer that will be contained in the view.
sourcepub fn base_mip_level(self, value: u32) -> Self
pub fn base_mip_level(self, value: u32) -> Self
The first mip level that will be contained in the view.
sourcepub fn fmt(self, value: Format) -> Self
pub fn fmt(self, value: Format) -> Self
The format and type of the texel blocks that will be contained in the view.
sourcepub fn mip_level_count(self, value: Option<u32>) -> Self
pub fn mip_level_count(self, value: Option<u32>) -> Self
The number of mip levels that will be contained in the view.
The default value of None
equates to vk::REMAINING_MIP_LEVELS
.
source§impl ImageViewInfoBuilder
impl ImageViewInfoBuilder
sourcepub fn build(self) -> ImageViewInfo
pub fn build(self) -> ImageViewInfo
Builds a new ‘ImageViewInfo’.
§Panics
If any of the following values have not been set this function will panic:
ty
fmt
aspect_mask
Trait Implementations§
source§impl Clone for ImageViewInfoBuilder
impl Clone for ImageViewInfoBuilder
source§fn clone(&self) -> ImageViewInfoBuilder
fn clone(&self) -> ImageViewInfoBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageViewInfoBuilder
impl Debug for ImageViewInfoBuilder
source§impl Default for ImageViewInfoBuilder
impl Default for ImageViewInfoBuilder
source§impl From<ImageViewInfoBuilder> for ImageViewInfo
impl From<ImageViewInfoBuilder> for ImageViewInfo
source§fn from(info: ImageViewInfoBuilder) -> Self
fn from(info: ImageViewInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for ImageViewInfoBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ImageViewInfoBuilder
impl Send for ImageViewInfoBuilder
impl Sync for ImageViewInfoBuilder
impl Unpin for ImageViewInfoBuilder
impl UnwindSafe for ImageViewInfoBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.