pub struct Strip {
pub primitive: u32,
pub instance: u32,
pub vertices: Vec<Vertex>,
}Expand description
The vertices an invocation emitted between two cuts, with the primitive and the instance that emitted them.
Fields§
§primitive: u32The primitive of the draw that emitted the vertices, counted from 0 (SV_PrimitiveID).
instance: u32The instance of that primitive.
vertices: Vec<Vertex>The emitted vertices, one register per output varying.
Implementations§
Source§impl Strip
impl Strip
Sourcepub fn primitives(&self, output: GsOutput) -> Vec<Vec<usize>>
pub fn primitives(&self, output: GsOutput) -> Vec<Vec<usize>>
The primitives the strip makes under the program’s output kind, as indices into Strip::vertices: every
point, every pair of consecutive vertices, every triple (an odd triangle’s last two swapped to keep the
winding). A strip with too few vertices makes none.
Trait Implementations§
impl Eq for Strip
impl StructuralPartialEq for Strip
Auto Trait Implementations§
impl Forget for Strip
impl Freeze for Strip
impl RefUnwindSafe for Strip
impl Send for Strip
impl Sync for Strip
impl Unpin for Strip
impl UnsafeUnpin for Strip
impl UnwindSafe for Strip
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.