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 that returns void with this name in the shader.
Trait Implementations
sourceimpl<A: Api> Clone for ProgrammableStage<'_, A>
impl<A: Api> Clone for ProgrammableStage<'_, A>
Auto Trait Implementations
impl<'a, A> RefUnwindSafe for ProgrammableStage<'a, A> where
<A as Api>::ShaderModule: RefUnwindSafe,
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> where
<A as Api>::ShaderModule: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more