Struct screen_13::driver::image::ImageInfoBuilder
source · pub struct ImageInfoBuilder { /* private fields */ }Expand description
Builder for ImageInfo.
Implementations§
source§impl ImageInfoBuilder
impl ImageInfoBuilder
sourcepub fn array_elements(self, value: u32) -> Self
pub fn array_elements(self, value: u32) -> Self
The number of layers in the image.
sourcepub fn depth(self, value: u32) -> Self
pub fn depth(self, value: u32) -> Self
Image extent of the Z axis, when describing a three dimensional image.
sourcepub fn flags(self, value: ImageCreateFlags) -> Self
pub fn flags(self, value: ImageCreateFlags) -> Self
A bitmask of describing additional parameters of the image.
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 image.
sourcepub fn height(self, value: u32) -> Self
pub fn height(self, value: u32) -> Self
Image extent of the Y axis, when describing a two or three dimensional image.
sourcepub fn linear_tiling(self, value: bool) -> Self
pub fn linear_tiling(self, value: bool) -> Self
Specifies the tiling arrangement of the texel blocks in memory.
The default value of false indicates a VK_IMAGE_TILING_OPTIMAL image.
sourcepub fn mip_level_count(self, value: u32) -> Self
pub fn mip_level_count(self, value: u32) -> Self
The number of levels of detail available for minified sampling of the image.
sourcepub fn sample_count(self, value: SampleCount) -> Self
pub fn sample_count(self, value: SampleCount) -> Self
Specifies the number of samples per texel.
sourcepub fn ty(self, value: ImageType) -> Self
pub fn ty(self, value: ImageType) -> Self
The basic dimensionality of the image.
Layers in array textures do not count as a dimension for the purposes of the image type.
sourcepub fn usage(self, value: ImageUsageFlags) -> Self
pub fn usage(self, value: ImageUsageFlags) -> Self
A bitmask of describing the intended usage of the image.
Trait Implementations§
source§impl Debug for ImageInfoBuilder
impl Debug for ImageInfoBuilder
source§impl Default for ImageInfoBuilder
impl Default for ImageInfoBuilder
source§impl From<ImageInfoBuilder> for ImageInfo
impl From<ImageInfoBuilder> for ImageInfo
source§fn from(info: ImageInfoBuilder) -> Self
fn from(info: ImageInfoBuilder) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for ImageInfoBuilder
impl Send for ImageInfoBuilder
impl Sync for ImageInfoBuilder
impl Unpin for ImageInfoBuilder
impl UnwindSafe for ImageInfoBuilder
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
§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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.