pub struct CellGcmTexture {
pub format: u8,
pub mipmap: u8,
pub dimension: u8,
pub cubemap: u8,
pub remap: u32,
pub width: u16,
pub height: u16,
pub depth: u16,
pub location: u8,
pub pad: u8,
pub pitch: u32,
pub offset: u32,
}Expand description
The 24-byte descriptor, including GPU address metadata.
Fields§
§format: u8The pixel format byte. Bit 0x20 (LN) selects linear storage with a constant base pitch and bit 0x40
(UN) selects unnormalized coordinates; the format proper is format & !0x60.
mipmap: u8The mip count.
dimension: u81, 2 or 3 (a volume).
cubemap: u81 for a cube map.
remap: u32The libgcm component remap word; identity is 0xaae4.
width: u16The width in texels.
height: u16The height in texels.
depth: u16The depth in texels (1 unless a volume).
location: u8The memory location code, as stored.
pad: u8The padding byte after the location, as stored.
pitch: u32The base row pitch in bytes, meaningful for linear storage.
offset: u32The GPU address offset, as stored.
Implementations§
Trait Implementations§
Source§impl Clone for CellGcmTexture
impl Clone for CellGcmTexture
impl Copy for CellGcmTexture
Source§impl Debug for CellGcmTexture
impl Debug for CellGcmTexture
impl Eq for CellGcmTexture
Source§impl PartialEq for CellGcmTexture
impl PartialEq for CellGcmTexture
impl StructuralPartialEq for CellGcmTexture
Auto Trait Implementations§
impl Forget for CellGcmTexture
impl Freeze for CellGcmTexture
impl RefUnwindSafe for CellGcmTexture
impl Send for CellGcmTexture
impl Sync for CellGcmTexture
impl Unpin for CellGcmTexture
impl UnsafeUnpin for CellGcmTexture
impl UnwindSafe for CellGcmTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more