pub struct TaskState<'a> {
pub module: &'a ShaderModule,
pub entry_point: Option<&'a str>,
pub compilation_options: PipelineCompilationOptions<'a>,
}Expand description
Describes the task shader stage in a mesh shader pipeline.
For use in MeshPipelineDescriptor
Fields§
§module: &'a ShaderModuleThe compiled shader module for this stage.
entry_point: Option<&'a str>The name of the task shader entry point in the shader module to use.
If Some, there must be a task shader entry point with the given name
in module. Otherwise, there must be exactly one task shader 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 TaskState<'a>
impl<'a> !RefUnwindSafe for TaskState<'a>
impl<'a> Send for TaskState<'a>
impl<'a> Sync for TaskState<'a>
impl<'a> Unpin for TaskState<'a>
impl<'a> !UnwindSafe for TaskState<'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