Skip to main content
← PSoXide SDK guides and examples · SDK 80d1c329e977 · All Cargo features enabled; check feature gates before use.

Gp0

Struct Gp0 

Source
pub struct Gp0;
Expand description

The sink that writes packets to the GPU’s command port.

One bounded wait for GPUSTAT ready per packet, then every word of the packet back to back. Pacing every word is as wrong as pacing none: bit 26 drops while the GPU ingests the rest of a multi-word packet, so a per-word wait spins its whole bound before each vertex word (silicon finding, see the chain loader’s paint). The wait is bounded and gives up quietly: a dead GPU must not hang the screen that is meant to show a live load.

Trait Implementations§

Source§

impl Sink for Gp0

Available on MIPS only.
Source§

fn packet(&mut self, words: &[u32])

Take one complete GP0 packet. A real sink waits for the GPU’s command FIFO once, then writes every word of the packet back to back (see Gp0).

Auto Trait Implementations§

§

impl Freeze for Gp0

§

impl RefUnwindSafe for Gp0

§

impl Send for Gp0

§

impl Sync for Gp0

§

impl Unpin for Gp0

§

impl UnsafeUnpin for Gp0

§

impl UnwindSafe for Gp0

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.