pub struct CompiledShader {
pub wgsl: String,
pub interface: ShaderInterface,
}Expand description
A warp or composite shader: WGSL module source (starting with lactea_abi::WGSL_COMMON,
entry fs_main) plus the resource interface the renderer binds in group 1.
Fields§
§wgsl: StringWGSL module source.
interface: ShaderInterfaceResource interface bound in group 1.
Trait Implementations§
Source§impl Clone for CompiledShader
impl Clone for CompiledShader
Auto Trait Implementations§
impl Freeze for CompiledShader
impl RefUnwindSafe for CompiledShader
impl Send for CompiledShader
impl Sync for CompiledShader
impl Unpin for CompiledShader
impl UnsafeUnpin for CompiledShader
impl UnwindSafe for CompiledShader
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