pub struct ImageDesc<'a> {
pub extent: ImageExtent,
pub format: PixelFormat,
pub layers: u32,
pub levels: u32,
pub usage: ImageUsage,
pub name: &'a str,
}Expand description
Description used for image creation.
Fields§
§extent: ImageExtentImage extent.
format: PixelFormatImage pixel format.
layers: u32Image layers count.
levels: u32Image mip levels count.
usage: ImageUsageImage usage flags.
name: &'a strImage debug name.
Implementations§
Source§impl<'a> ImageDesc<'a>
impl<'a> ImageDesc<'a>
Sourcepub const fn new(
extent: ImageExtent,
format: PixelFormat,
usage: ImageUsage,
) -> Self
pub const fn new( extent: ImageExtent, format: PixelFormat, usage: ImageUsage, ) -> Self
Create a new image description.
Sourcepub const fn new_d1(width: u32, format: PixelFormat, usage: ImageUsage) -> Self
pub const fn new_d1(width: u32, format: PixelFormat, usage: ImageUsage) -> Self
Create a new 1D image description.
Sourcepub const fn new_d2(
width: u32,
height: u32,
format: PixelFormat,
usage: ImageUsage,
) -> Self
pub const fn new_d2( width: u32, height: u32, format: PixelFormat, usage: ImageUsage, ) -> Self
Create a new 2D image description.
Sourcepub const fn new_d3(
width: u32,
height: u32,
depth: u32,
format: PixelFormat,
usage: ImageUsage,
) -> Self
pub const fn new_d3( width: u32, height: u32, depth: u32, format: PixelFormat, usage: ImageUsage, ) -> Self
Create a new 3D image description.
Sourcepub const fn new_d1_texture(width: u32, format: PixelFormat) -> Self
pub const fn new_d1_texture(width: u32, format: PixelFormat) -> Self
Create a new 1D texture description.
Sourcepub const fn new_d2_texture(
width: u32,
height: u32,
format: PixelFormat,
) -> Self
pub const fn new_d2_texture( width: u32, height: u32, format: PixelFormat, ) -> Self
Create a new 2D texture description.
Sourcepub const fn new_d3_texture(
width: u32,
height: u32,
depth: u32,
format: PixelFormat,
) -> Self
pub const fn new_d3_texture( width: u32, height: u32, depth: u32, format: PixelFormat, ) -> Self
Create a new 3D texture description.
Sourcepub const fn new_d1_rt(width: u32, format: PixelFormat) -> Self
pub const fn new_d1_rt(width: u32, format: PixelFormat) -> Self
Create a new 1D render target description.
Sourcepub const fn new_d2_rt(width: u32, height: u32, format: PixelFormat) -> Self
pub const fn new_d2_rt(width: u32, height: u32, format: PixelFormat) -> Self
Create a new 2D render target description.
Auto Trait Implementations§
impl<'a> Freeze for ImageDesc<'a>
impl<'a> RefUnwindSafe for ImageDesc<'a>
impl<'a> Send for ImageDesc<'a>
impl<'a> Sync for ImageDesc<'a>
impl<'a> Unpin for ImageDesc<'a>
impl<'a> UnsafeUnpin for ImageDesc<'a>
impl<'a> UnwindSafe for ImageDesc<'a>
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