burn::backend::wgpu

Type Alias Wgsl

pub type Wgsl = WgslCompiler;

Aliased Type§

struct Wgsl { /* private fields */ }

Trait Implementations

§

impl Clone for WgslCompiler

§

fn clone(&self) -> WgslCompiler

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Compiler for WgslCompiler

§

type Representation = ComputeShader

The representation for the compiled code.
§

type CompilationOptions = CompilationOptions

§

fn compile( shader: KernelDefinition, compilation_options: &<WgslCompiler as Compiler>::CompilationOptions, mode: ExecutionMode, ) -> <WgslCompiler as Compiler>::Representation

Compiles the kernel definition into the compiler’s representation.
§

fn elem_size(elem: Elem) -> usize

The size of the given element in bytes.
§

fn max_shared_memory_size() -> usize

The maximal size of a shared memory, in bytes
§

impl Debug for WgslCompiler

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for WgslCompiler

§

fn default() -> WgslCompiler

Returns the “default value” for a type. Read more