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 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 tiling(self, value: ImageTiling) -> Self
pub fn tiling(self, value: ImageTiling) -> Self
Specifies the tiling arrangement of the texel blocks in memory.
The default value is vk::ImageTiling::OPTIMAL
.
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 Clone for ImageInfoBuilder
impl Clone for ImageInfoBuilder
source§fn clone(&self) -> ImageInfoBuilder
fn clone(&self) -> ImageInfoBuilder
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 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
Converts to this type from the input type.
impl Copy for ImageInfoBuilder
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> Alias<ImageInfoBuilder, Image> for T
impl<T> Alias<ImageInfoBuilder, Image> for T
source§fn alias(
&mut self,
builder: ImageInfoBuilder
) -> Result<Arc<Lease<Image>>, DriverError>
fn alias( &mut self, builder: ImageInfoBuilder ) -> Result<Arc<Lease<Image>>, DriverError>
Aliases a resource.
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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Pool<ImageInfoBuilder, Image> for T
impl<T> Pool<ImageInfoBuilder, Image> for T
source§fn lease(
&mut self,
builder: ImageInfoBuilder
) -> Result<Lease<Image>, DriverError>
fn lease( &mut self, builder: ImageInfoBuilder ) -> Result<Lease<Image>, DriverError>
Lease a resource.