pub struct ImageInfo {
pub array_elements: u32,
pub depth: u32,
pub flags: ImageCreateFlags,
pub fmt: Format,
pub height: u32,
pub linear_tiling: bool,
pub mip_level_count: u32,
pub sample_count: SampleCount,
pub ty: ImageType,
pub usage: ImageUsageFlags,
pub width: u32,
}Fields
array_elements: u32depth: u32flags: ImageCreateFlagsfmt: Formatheight: u32linear_tiling: boolmip_level_count: u32sample_count: SampleCountty: ImageTypeusage: ImageUsageFlagswidth: u32Implementations
sourceimpl ImageInfo
impl ImageInfo
pub fn new_1d(fmt: Format, len: u32, usage: ImageUsageFlags) -> ImageInfoBuilder
pub fn new_2d(
fmt: Format,
width: u32,
height: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub fn new_3d(
fmt: Format,
width: u32,
height: u32,
depth: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub fn new_cube(
fmt: Format,
width: u32,
usage: ImageUsageFlags
) -> ImageInfoBuilder
pub fn default_view_info(self) -> ImageViewInfo
pub fn fmt(self, fmt: Format) -> Self
pub fn into_builder(self) -> ImageInfoBuilder
Trait Implementations
sourceimpl From<ImageInfo> for ImageViewInfo
impl From<ImageInfo> for ImageViewInfo
sourceimpl From<ImageInfoBuilder> for ImageInfo
impl From<ImageInfoBuilder> for ImageInfo
sourcefn from(info: ImageInfoBuilder) -> Self
fn from(info: ImageInfoBuilder) -> Self
Converts to this type from the input type.
impl Copy for ImageInfo
impl Eq for ImageInfo
impl StructuralEq for ImageInfo
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more