Struct bgfx_sys::bgfx_texture_info_s[][src]

#[repr(C)]
pub struct bgfx_texture_info_s { pub format: bgfx_texture_format_t, pub storageSize: u32, pub width: u16, pub height: u16, pub depth: u16, pub numLayers: u16, pub numMips: u8, pub bitsPerPixel: u8, pub cubeMap: bool, }
Expand description

Texture info.

Fields

format: bgfx_texture_format_tstorageSize: u32

Texture format.

width: u16

Total amount of bytes required to store texture.

height: u16

Texture width.

depth: u16

Texture height.

numLayers: u16

Texture depth.

numMips: u8

Number of layers in texture array.

bitsPerPixel: u8

Number of MIP maps.

cubeMap: bool

Format bits per pixel.

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

Performs the conversion.

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.