pub struct MeshStageInfo {
pub topology: MeshOutputTopology,
pub max_vertices: u32,
pub max_vertices_override: Option<Handle<Expression>>,
pub max_primitives: u32,
pub max_primitives_override: Option<Handle<Expression>>,
pub vertex_output_type: Handle<Type>,
pub primitive_output_type: Handle<Type>,
}Expand description
Information specific to mesh shader entry points.
Fields§
§topology: MeshOutputTopologyThe type of primitive outputted.
max_vertices: u32The maximum number of vertices a mesh shader may output.
max_vertices_override: Option<Handle<Expression>>If pipeline constants are used, the expressions that override max_vertices
max_primitives: u32The maximum number of primitives a mesh shader may output.
max_primitives_override: Option<Handle<Expression>>If pipeline constants are used, the expressions that override max_primitives
vertex_output_type: Handle<Type>The type used by vertex outputs, i.e. what is passed to setVertex.
primitive_output_type: Handle<Type>The type used by primitive outputs, i.e. what is passed to setPrimitive.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MeshStageInfo
impl<'arbitrary> Arbitrary<'arbitrary> for MeshStageInfo
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 MeshStageInfo
impl Clone for MeshStageInfo
Source§fn clone(&self) -> MeshStageInfo
fn clone(&self) -> MeshStageInfo
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 MeshStageInfo
impl Debug for MeshStageInfo
Source§impl<'de> Deserialize<'de> for MeshStageInfo
impl<'de> Deserialize<'de> for MeshStageInfo
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
Auto Trait Implementations§
impl Freeze for MeshStageInfo
impl RefUnwindSafe for MeshStageInfo
impl Send for MeshStageInfo
impl Sync for MeshStageInfo
impl Unpin for MeshStageInfo
impl UnwindSafe for MeshStageInfo
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