Struct screen_13::driver::ImageViewInfoBuilder
source · [−]pub struct ImageViewInfoBuilder { /* private fields */ }Expand description
Builder for ImageViewInfo.
Implementations
sourceimpl ImageViewInfoBuilder
impl ImageViewInfoBuilder
pub fn array_layer_count(self, value: Option<u32>) -> Self
pub fn aspect_mask(self, value: ImageAspectFlags) -> Self
pub fn base_array_layer(self, value: u32) -> Self
pub fn base_mip_level(self, value: u32) -> Self
pub fn fmt(self, value: Format) -> Self
pub fn mip_level_count(self, value: Option<u32>) -> Self
pub fn ty(self, value: ImageType) -> Self
sourcepub fn build(self) -> Result<ImageViewInfo, ImageViewInfoBuilderError>
pub fn build(self) -> Result<ImageViewInfo, ImageViewInfoBuilderError>
Trait Implementations
sourceimpl Default for ImageViewInfoBuilder
impl Default for ImageViewInfoBuilder
sourceimpl From<ImageViewInfoBuilder> for ImageViewInfo
impl From<ImageViewInfoBuilder> for ImageViewInfo
sourcefn from(info: ImageViewInfoBuilder) -> Self
fn from(info: ImageViewInfoBuilder) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().