Struct wgpu_hal::ProgrammableStage
source · pub struct ProgrammableStage<'a, A: Api> {
pub module: &'a A::ShaderModule,
pub entry_point: &'a str,
}
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.
Trait Implementations§
source§impl<A: Api> Clone for ProgrammableStage<'_, A>
impl<A: Api> Clone for ProgrammableStage<'_, A>
Auto 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