pub struct WgslCompiler { /* private fields */ }
Expand description
Wgsl Compiler.
Trait Implementations§
Source§impl Clone for WgslCompiler
impl Clone for WgslCompiler
Source§fn clone(&self) -> WgslCompiler
fn clone(&self) -> WgslCompiler
Returns a duplicate 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 moreSource§impl Compiler for WgslCompiler
impl Compiler for WgslCompiler
Source§type Representation = ComputeShader
type Representation = ComputeShader
The representation for the compiled code.
type CompilationOptions = WgpuCompilationOptions
Source§fn compile(
&mut self,
shader: KernelDefinition,
compilation_options: &Self::CompilationOptions,
mode: ExecutionMode,
) -> Self::Representation
fn compile( &mut self, shader: KernelDefinition, compilation_options: &Self::CompilationOptions, mode: ExecutionMode, ) -> Self::Representation
Compiles the kernel definition into the compiler’s representation.
Source§impl Debug for WgslCompiler
impl Debug for WgslCompiler
Source§impl Default for WgslCompiler
impl Default for WgslCompiler
Source§fn default() -> WgslCompiler
fn default() -> WgslCompiler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WgslCompiler
impl RefUnwindSafe for WgslCompiler
impl Send for WgslCompiler
impl Sync for WgslCompiler
impl Unpin for WgslCompiler
impl UnwindSafe for WgslCompiler
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