pub enum MeshOutputTopology {
Points,
Lines,
Triangles,
}Expand description
The output topology for a mesh shader. Note that mesh shaders don’t allow things like triangle-strips.
Variants§
Points
Outputs individual vertices to be rendered as points.
Lines
Outputs groups of 2 vertices to be renderedas lines .
Triangles
Outputs groups of 3 vertices to be rendered as triangles.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MeshOutputTopology
impl<'arbitrary> Arbitrary<'arbitrary> for MeshOutputTopology
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§impl Clone for MeshOutputTopology
impl Clone for MeshOutputTopology
Source§fn clone(&self) -> MeshOutputTopology
fn clone(&self) -> MeshOutputTopology
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshOutputTopology
impl Debug for MeshOutputTopology
Source§impl<'de> Deserialize<'de> for MeshOutputTopology
impl<'de> Deserialize<'de> for MeshOutputTopology
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MeshOutputTopology
impl Serialize for MeshOutputTopology
impl Copy for MeshOutputTopology
Auto Trait Implementations§
impl Freeze for MeshOutputTopology
impl RefUnwindSafe for MeshOutputTopology
impl Send for MeshOutputTopology
impl Sync for MeshOutputTopology
impl Unpin for MeshOutputTopology
impl UnwindSafe for MeshOutputTopology
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