Enum sierra::Format[][src]

pub enum Format {
Show 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

Trait Implementations

Samples for this attachment. None if unspecified. Read more

Format for this attachment.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.