pub struct MeshState<'a> {
pub module: &'a ShaderModule,
pub entry_point: Option<&'a str>,
pub compilation_options: PipelineCompilationOptions<'a>,
}
Expand description
Describes the mesh shader stage in a mesh shader pipeline.
For use in MeshPipelineDescriptor
Fields§
§module: &'a ShaderModule
The compiled shader module for this stage.
entry_point: Option<&'a str>
The name of the entry point in the compiled shader to use.
If Some
, there must be a vertex-stage shader entry point with this name in module
.
Otherwise, expect exactly one vertex-stage entry point in module
, which will be
selected.
compilation_options: PipelineCompilationOptions<'a>
Advanced options for when this pipeline is compiled
This implements Default
, and for most users can be set to Default::default()
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MeshState<'a>
impl<'a> !RefUnwindSafe for MeshState<'a>
impl<'a> Send for MeshState<'a>
impl<'a> Sync for MeshState<'a>
impl<'a> Unpin for MeshState<'a>
impl<'a> !UnwindSafe for MeshState<'a>
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