pub enum Format {
Show 100 variants
R8Unorm,
R8Snorm,
R8Uscaled,
R8Sscaled,
R8Uint,
R8Sint,
R8Srgb,
RG8Unorm,
RG8Snorm,
RG8Uscaled,
RG8Sscaled,
RG8Uint,
RG8Sint,
RG8Srgb,
RGB8Unorm,
RGB8Snorm,
RGB8Uscaled,
RGB8Sscaled,
RGB8Uint,
RGB8Sint,
RGB8Srgb,
BGR8Unorm,
BGR8Snorm,
BGR8Uscaled,
BGR8Sscaled,
BGR8Uint,
BGR8Sint,
BGR8Srgb,
RGBA8Unorm,
RGBA8Snorm,
RGBA8Uscaled,
RGBA8Sscaled,
RGBA8Uint,
RGBA8Sint,
RGBA8Srgb,
BGRA8Unorm,
BGRA8Snorm,
BGRA8Uscaled,
BGRA8Sscaled,
BGRA8Uint,
BGRA8Sint,
BGRA8Srgb,
R16Unorm,
R16Snorm,
R16Uscaled,
R16Sscaled,
R16Uint,
R16Sint,
R16Sfloat,
RG16Unorm,
RG16Snorm,
RG16Uscaled,
RG16Sscaled,
RG16Uint,
RG16Sint,
RG16Sfloat,
RGB16Unorm,
RGB16Snorm,
RGB16Uscaled,
RGB16Sscaled,
RGB16Uint,
RGB16Sint,
RGB16Sfloat,
RGBA16Unorm,
RGBA16Snorm,
RGBA16Uscaled,
RGBA16Sscaled,
RGBA16Uint,
RGBA16Sint,
RGBA16Sfloat,
R32Uint,
R32Sint,
R32Sfloat,
RG32Uint,
RG32Sint,
RG32Sfloat,
RGB32Uint,
RGB32Sint,
RGB32Sfloat,
RGBA32Uint,
RGBA32Sint,
RGBA32Sfloat,
R64Uint,
R64Sint,
R64Sfloat,
RG64Uint,
RG64Sint,
RG64Sfloat,
RGB64Uint,
RGB64Sint,
RGB64Sfloat,
RGBA64Uint,
RGBA64Sint,
RGBA64Sfloat,
D16Unorm,
D32Sfloat,
S8Uint,
D16UnormS8Uint,
D24UnormS8Uint,
D32SfloatS8Uint,
}
Expand description
Texel format. Images can have different texel formats. Some of which are color or depth and/or stencil. Format defines components, number of bits, layout and representation of texels.
Variants§
R8Unorm
R8Snorm
R8Uscaled
R8Sscaled
R8Uint
R8Sint
R8Srgb
RG8Unorm
RG8Snorm
RG8Uscaled
RG8Sscaled
RG8Uint
RG8Sint
RG8Srgb
RGB8Unorm
RGB8Snorm
RGB8Uscaled
RGB8Sscaled
RGB8Uint
RGB8Sint
RGB8Srgb
BGR8Unorm
BGR8Snorm
BGR8Uscaled
BGR8Sscaled
BGR8Uint
BGR8Sint
BGR8Srgb
RGBA8Unorm
RGBA8Snorm
RGBA8Uscaled
RGBA8Sscaled
RGBA8Uint
RGBA8Sint
RGBA8Srgb
BGRA8Unorm
BGRA8Snorm
BGRA8Uscaled
BGRA8Sscaled
BGRA8Uint
BGRA8Sint
BGRA8Srgb
R16Unorm
R16Snorm
R16Uscaled
R16Sscaled
R16Uint
R16Sint
R16Sfloat
RG16Unorm
RG16Snorm
RG16Uscaled
RG16Sscaled
RG16Uint
RG16Sint
RG16Sfloat
RGB16Unorm
RGB16Snorm
RGB16Uscaled
RGB16Sscaled
RGB16Uint
RGB16Sint
RGB16Sfloat
RGBA16Unorm
RGBA16Snorm
RGBA16Uscaled
RGBA16Sscaled
RGBA16Uint
RGBA16Sint
RGBA16Sfloat
R32Uint
R32Sint
R32Sfloat
RG32Uint
RG32Sint
RG32Sfloat
RGB32Uint
RGB32Sint
RGB32Sfloat
RGBA32Uint
RGBA32Sint
RGBA32Sfloat
R64Uint
R64Sint
R64Sfloat
RG64Uint
RG64Sint
RG64Sfloat
RGB64Uint
RGB64Sint
RGB64Sfloat
RGBA64Uint
RGBA64Sint
RGBA64Sfloat
D16Unorm
D32Sfloat
S8Uint
D16UnormS8Uint
D24UnormS8Uint
D32SfloatS8Uint
Implementations§
source§impl Format
impl Format
pub fn aspect_flags(&self) -> AspectFlags
pub fn is_color(&self) -> bool
pub fn is_depth(&self) -> bool
pub fn is_stencil(&self) -> bool
pub fn description(&self) -> FormatDescription<Channels, u32, Type>
Trait Implementations§
source§impl Attachment for Format
impl Attachment for Format
source§fn eq(&self, view: &ImageView) -> bool
fn eq(&self, view: &ImageView) -> bool
Returns if this attachment is equivalent to image view. Read more
source§fn max_extent(&self) -> Extent2
fn max_extent(&self) -> Extent2
Maximum extend of the image view that can be make for this attachment.
source§fn get_view(
&self,
device: &Device,
usage: ImageUsage,
extent: Extent2
) -> Result<ImageView, OutOfMemory>
fn get_view(
&self,
device: &Device,
usage: ImageUsage,
extent: Extent2
) -> Result<ImageView, OutOfMemory>
Returns image view with specified usage and extent for this attachment.