pub struct GLCompute { /* private fields */ }Trait Implementations§
Source§impl SpirvTarget for GLCompute
impl SpirvTarget for GLCompute
Source§fn generate_info_binding(
&mut self,
b: &mut SpirvCompiler<Self>,
index: u32,
) -> Word
fn generate_info_binding( &mut self, b: &mut SpirvCompiler<Self>, index: u32, ) -> Word
Generate info binding struct and variable. SPIR-V structs have explicit offsets so unlike other targets we don’t need to pad the length.
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: KernelArg, name: String, ) -> Word
fn info_storage_class(b: &mut SpirvCompiler<Self>) -> StorageClass
fn set_kernel_name(&mut self, name: impl Into<String>)
Auto Trait Implementations§
impl Freeze for GLCompute
impl RefUnwindSafe for GLCompute
impl Send for GLCompute
impl Sync for GLCompute
impl Unpin for GLCompute
impl UnsafeUnpin for GLCompute
impl UnwindSafe for GLCompute
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