pub struct ShaderStage<'a> {
pub module: &'a ShaderModule,
pub entry: &'a str,
pub constants: &'a [Constant],
}Expand description
a shader entry point and its pipeline constants
Fields§
§module: &'a ShaderModule§entry: &'a str§constants: &'a [Constant]pipeline-overridable constants of this stage (empty: the module’s defaults)
Implementations§
Source§impl<'a> ShaderStage<'a>
impl<'a> ShaderStage<'a>
Sourcepub const fn new(module: &'a ShaderModule, entry: &'a str) -> ShaderStage<'a>
pub const fn new(module: &'a ShaderModule, entry: &'a str) -> ShaderStage<'a>
an entry point without pipeline constants
Trait Implementations§
Source§impl<'a> Clone for ShaderStage<'a>
impl<'a> Clone for ShaderStage<'a>
impl<'a> Copy for ShaderStage<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ShaderStage<'a>
impl<'a> !UnwindSafe for ShaderStage<'a>
impl<'a> Forget for ShaderStage<'a>
impl<'a> Freeze for ShaderStage<'a>
impl<'a> Send for ShaderStage<'a>
impl<'a> Sync for ShaderStage<'a>
impl<'a> Unpin for ShaderStage<'a>
impl<'a> UnsafeUnpin for ShaderStage<'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