#[repr(C, align(4))]pub struct QuadTexturedMaterial {
pub tag: u32,
pub tex_window: u32,
pub color_cmd: u32,
pub v0: u32,
pub uv0_clut: u32,
pub v1: u32,
pub uv1_tpage: u32,
pub v2: u32,
pub uv2: u32,
pub v3: u32,
pub uv3: u32,
}Expand description
Textured quad with inline texture-window state. 11 words (tag + 10 data).
This mirrors TriTextured’s self-contained OT packet shape for
quads: GP0(E2) texture-window state immediately followed by the
GP0(2Ch) textured-quad command. Use it when OT interleaving must
not leak window state across different textured draws.
Fields§
§tag: u32OT linkage.
tex_window: u32GP0(E2) texture-window command.
color_cmd: u320x2C000000 | tint header.
v0: u32V0 position.
uv0_clut: u32(u0, v0, clut).
v1: u32V1 position.
uv1_tpage: u32(u1, v1, tpage).
v2: u32V2 position.
uv2: u32(u2, v2, 0).
v3: u32V3 position.
uv3: u32(u3, v3, 0).
Implementations§
Source§impl QuadTexturedMaterial
impl QuadTexturedMaterial
Sourcepub const fn with_material(
verts: [(i16, i16); 4],
uvs: [(u8, u8); 4],
material: TextureMaterial,
) -> Self
pub const fn with_material( verts: [(i16, i16); 4], uvs: [(u8, u8); 4], material: TextureMaterial, ) -> Self
Build a textured quad with self-contained material state.
Trait Implementations§
Source§impl Clone for QuadTexturedMaterial
impl Clone for QuadTexturedMaterial
Source§fn clone(&self) -> QuadTexturedMaterial
fn clone(&self) -> QuadTexturedMaterial
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QuadTexturedMaterial
impl Debug for QuadTexturedMaterial
Source§impl GpuPacket for QuadTexturedMaterial
impl GpuPacket for QuadTexturedMaterial
Source§impl Hash for QuadTexturedMaterial
impl Hash for QuadTexturedMaterial
Source§impl PartialEq for QuadTexturedMaterial
impl PartialEq for QuadTexturedMaterial
impl Copy for QuadTexturedMaterial
impl Eq for QuadTexturedMaterial
impl StructuralPartialEq for QuadTexturedMaterial
Auto Trait Implementations§
impl Freeze for QuadTexturedMaterial
impl RefUnwindSafe for QuadTexturedMaterial
impl Send for QuadTexturedMaterial
impl Sync for QuadTexturedMaterial
impl Unpin for QuadTexturedMaterial
impl UnsafeUnpin for QuadTexturedMaterial
impl UnwindSafe for QuadTexturedMaterial
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)