pub enum MeshFunction {
SetMeshOutputs {
vertex_count: Handle<Expression>,
primitive_count: Handle<Expression>,
},
SetVertex {
index: Handle<Expression>,
value: Handle<Expression>,
},
SetPrimitive {
index: Handle<Expression>,
value: Handle<Expression>,
},
}Expand description
Mesh shader intrinsics
Variants§
SetMeshOutputs
Sets the number of vertices and primitives that will be outputted.
SetVertex
Sets the output vertex at a given index.
SetPrimitive
Sets the output primitive at a given index.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MeshFunction
impl<'arbitrary> Arbitrary<'arbitrary> for MeshFunction
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 MeshFunction
impl Clone for MeshFunction
Source§fn clone(&self) -> MeshFunction
fn clone(&self) -> MeshFunction
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 MeshFunction
impl Debug for MeshFunction
Source§impl<'de> Deserialize<'de> for MeshFunction
impl<'de> Deserialize<'de> for MeshFunction
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 MeshFunction
impl Serialize for MeshFunction
impl Copy for MeshFunction
Auto Trait Implementations§
impl Freeze for MeshFunction
impl RefUnwindSafe for MeshFunction
impl Send for MeshFunction
impl Sync for MeshFunction
impl Unpin for MeshFunction
impl UnwindSafe for MeshFunction
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