SpirvTarget

Trait SpirvTarget 

Source
pub trait SpirvTarget:
    TargetExtensions<Self>
    + Debug
    + Clone
    + Default
    + Send
    + Sync
    + 'static {
    // Required methods
    fn set_modes(
        &mut self,
        b: &mut SpirvCompiler<Self>,
        main: Word,
        builtins: Vec<Word>,
        cube_dims: Vec<u32>,
    );
    fn generate_binding(
        &mut self,
        b: &mut SpirvCompiler<Self>,
        binding: Binding,
        name: String,
    ) -> Word;
    fn set_kernel_name(&mut self, name: impl Into<String>);
}

Required Methods§

Source

fn set_modes( &mut self, b: &mut SpirvCompiler<Self>, main: Word, builtins: Vec<Word>, cube_dims: Vec<u32>, )

Source

fn generate_binding( &mut self, b: &mut SpirvCompiler<Self>, binding: Binding, name: String, ) -> Word

Source

fn set_kernel_name(&mut self, name: impl Into<String>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§