Struct wgpu_hal::ProgrammableStage
source · pub struct ProgrammableStage<'a, M: DynShaderModule + ?Sized> {
pub module: &'a M,
pub entry_point: &'a str,
pub constants: &'a PipelineConstants,
pub zero_initialize_workgroup_memory: bool,
}
Expand description
Describes a programmable pipeline stage.
Fields§
§module: &'a M
The compiled shader module for this stage.
entry_point: &'a str
The name of the entry point in the compiled shader. There must be a function with this name in the shader.
constants: &'a PipelineConstants
Pipeline constants
zero_initialize_workgroup_memory: bool
Whether workgroup scoped memory will be initialized with zero values for this stage.
This is required by the WebGPU spec, but may have overhead which can be avoided for cross-platform applications
Trait Implementations§
source§impl<M: DynShaderModule + ?Sized> Clone for ProgrammableStage<'_, M>
impl<M: DynShaderModule + ?Sized> Clone for ProgrammableStage<'_, M>
Auto Trait Implementations§
impl<'a, M: ?Sized> RefUnwindSafe for ProgrammableStage<'a, M>where
M: RefUnwindSafe,
impl<'a, M: ?Sized> Send for ProgrammableStage<'a, M>
impl<'a, M: ?Sized> Sync for ProgrammableStage<'a, M>
impl<'a, M: ?Sized> Unpin for ProgrammableStage<'a, M>
impl<'a, M: ?Sized> UnwindSafe for ProgrammableStage<'a, M>where
M: RefUnwindSafe,
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