pub struct ProgrammableStage<'a, A: Api> {
pub module: &'a A::ShaderModule,
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 A::ShaderModule
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<A: Api> Clone for ProgrammableStage<'_, A>
impl<A: Api> Clone for ProgrammableStage<'_, A>
Auto Trait Implementations§
impl<'a, A> Freeze for ProgrammableStage<'a, A>
impl<'a, A> RefUnwindSafe for ProgrammableStage<'a, A>
impl<'a, A> Send for ProgrammableStage<'a, A>
impl<'a, A> Sync for ProgrammableStage<'a, A>
impl<'a, A> Unpin for ProgrammableStage<'a, A>
impl<'a, A> UnwindSafe for ProgrammableStage<'a, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)