Struct wgpu::hal::ProgrammableStage
source · pub struct ProgrammableStage<'a, A>where
A: Api,{
pub module: &'a <A as Api>::ShaderModule,
pub entry_point: &'a str,
pub constants: &'a HashMap<String, f64>,
pub zero_initialize_workgroup_memory: bool,
}
Available on
wgpu_core
only.Expand description
Describes a programmable pipeline stage.
Fields§
§module: &'a <A as Api>::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 HashMap<String, f64>
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> Clone for ProgrammableStage<'_, A>where
A: Api,
impl<A> Clone for ProgrammableStage<'_, A>where
A: Api,
source§fn clone(&self) -> ProgrammableStage<'_, A>
fn clone(&self) -> ProgrammableStage<'_, A>
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 moreAuto Trait Implementations§
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