#[repr(C, align(4))]pub struct QuadGouraudBlended {
pub tag: u32,
pub draw_mode: u32,
pub color0_cmd: u32,
pub v0: u32,
pub color1: u32,
pub v1: u32,
pub color2: u32,
pub v2: u32,
pub color3: u32,
pub v3: u32,
}Expand description
Semi-transparent Gouraud quad with its GP0(E1) blend state embedded in the same DMA packet.
Untextured translucent polygons do not carry blend bits of their own: they read them from the current draw mode. Keeping the state word and polygon in one OT packet makes the result independent of whichever textured surface happened to draw immediately before it.
Fields§
§tag: u32OT linkage.
draw_mode: u32GP0(E1) draw mode selecting the native semi-transparency equation.
color0_cmd: u32Vertex 0 colour + semi-transparent Gouraud-quad opcode.
v0: u32Vertex 0 position.
color1: u32Vertex 1 colour.
v1: u32Vertex 1 position.
color2: u32Vertex 2 colour.
v2: u32Vertex 2 position.
color3: u32Vertex 3 colour.
v3: u32Vertex 3 position.
Implementations§
Trait Implementations§
Source§impl Clone for QuadGouraudBlended
impl Clone for QuadGouraudBlended
Source§fn clone(&self) -> QuadGouraudBlended
fn clone(&self) -> QuadGouraudBlended
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 QuadGouraudBlended
impl Debug for QuadGouraudBlended
Source§impl GpuPacket for QuadGouraudBlended
impl GpuPacket for QuadGouraudBlended
Source§impl Hash for QuadGouraudBlended
impl Hash for QuadGouraudBlended
Source§impl PartialEq for QuadGouraudBlended
impl PartialEq for QuadGouraudBlended
impl Copy for QuadGouraudBlended
impl Eq for QuadGouraudBlended
impl StructuralPartialEq for QuadGouraudBlended
Auto Trait Implementations§
impl Freeze for QuadGouraudBlended
impl RefUnwindSafe for QuadGouraudBlended
impl Send for QuadGouraudBlended
impl Sync for QuadGouraudBlended
impl Unpin for QuadGouraudBlended
impl UnsafeUnpin for QuadGouraudBlended
impl UnwindSafe for QuadGouraudBlended
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)