Struct libktx_rs_sys::ktxFormatSize[][src]

#[repr(C)]
pub struct ktxFormatSize { pub flags: ktxFormatSizeFlags, pub paletteSizeInBits: c_uint, pub blockSizeInBits: c_uint, pub blockWidth: c_uint, pub blockHeight: c_uint, pub blockDepth: c_uint, pub minBlocksX: c_uint, pub minBlocksY: c_uint, }
Expand description

@brief Structure for holding size information for a texture format.

Fields

flags: ktxFormatSizeFlagspaletteSizeInBits: c_uint

For KTX1.

blockSizeInBits: c_uintblockWidth: c_uint

in texels

blockHeight: c_uint

in texels

blockDepth: c_uint

in texels

minBlocksX: c_uint

Minimum required number of blocks

minBlocksY: c_uint

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.