pub struct SpirvGenerator;Implementations§
Trait Implementations§
Source§impl Backend for SpirvGenerator
impl Backend for SpirvGenerator
Source§fn primary_target(&self) -> CompilationTarget
fn primary_target(&self) -> CompilationTarget
获取此后端支持的主要编译目标
Source§fn match_score(&self, target: &CompilationTarget) -> f32
fn match_score(&self, target: &CompilationTarget) -> f32
计算与给定编译目标的匹配度 (0-100)
0 表示不支持
Source§fn generate(
&self,
program: &GaiaModule,
_config: &GaiaConfig,
) -> Result<GeneratedFiles>
fn generate( &self, program: &GaiaModule, _config: &GaiaConfig, ) -> Result<GeneratedFiles>
Compile Gaia program to target platform
Auto Trait Implementations§
impl Freeze for SpirvGenerator
impl RefUnwindSafe for SpirvGenerator
impl Send for SpirvGenerator
impl Sync for SpirvGenerator
impl Unpin for SpirvGenerator
impl UnwindSafe for SpirvGenerator
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