pub struct UncheckedTextureFormat {
    pub format: Format,
    pub bits_per_block: u8,
    pub block_size: (u8, u8),
}
Expand description

Similar to d3d::Format, but presumably limited to texture-friendly formats. Unlike FixedTextureFormat, there’s no guarantee that the values of this type are

Fields

format: Format

The underlying d3d::Format.

bits_per_block: u8

Bits per block.

For most formats, a block synonymous with a single pixel. However, for e.g. DXT formats, a block is a 4x4 group of pixels.

block_size: (u8, u8)

Block size in pixels.

For most formats, this will be (1, 1). For DXT formats, this will be (4, 4).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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.