Struct thindx::d3d9::UncheckedTextureFormat
source · [−]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
sourceimpl Clone for UncheckedTextureFormat
impl Clone for UncheckedTextureFormat
sourcefn clone(&self) -> UncheckedTextureFormat
fn clone(&self) -> UncheckedTextureFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UncheckedTextureFormat
impl Debug for UncheckedTextureFormat
impl Copy for UncheckedTextureFormat
Auto Trait Implementations
impl RefUnwindSafe for UncheckedTextureFormat
impl Send for UncheckedTextureFormat
impl Sync for UncheckedTextureFormat
impl Unpin for UncheckedTextureFormat
impl UnwindSafe for UncheckedTextureFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more