pub struct CompilerBuilder<'a> { /* private fields */ }
Implementations§
Source§impl<'a> CompilerBuilder<'a>
impl<'a> CompilerBuilder<'a>
pub fn new() -> CompilerBuilder<'a>
pub fn with_target_spirv(self, version: SpirvVersion) -> Self
pub fn with_macro(self, name: &str, value: Option<&str>) -> Self
pub fn with_auto_bind_uniforms(self, auto_bind: bool) -> Self
pub fn with_binding_base(self, kind: ResourceKind, base: u32) -> Self
pub fn generate_debug_info(self) -> Self
pub fn force_version_profile(self, version: u32, profile: GlslProfile) -> Self
pub fn with_target_env(self, env: TargetEnv, version: u32) -> Self
pub fn with_hlsl_io_mapping(self, iomap: bool) -> Self
pub fn with_hlsl_register_set_and_binding( self, register: &str, set: &str, binding: &str, ) -> Self
pub fn with_hlsl_offsets(self, offsets: bool) -> Self
pub fn with_source_language(self, lang: SourceLanguage) -> Self
pub fn with_binding_base_for_stage( self, kind: ShaderKind, resource_kind: ResourceKind, base: u32, ) -> Self
pub fn with_opt_level(self, level: OptimizationLevel) -> Self
pub fn supress_warnings(self) -> Self
pub fn with_warnings_as_errors(self) -> Self
pub fn with_limit(self, limit: Limit, value: i32) -> Self
pub fn with_include_dir<T: AsRef<Path>>(self, path: T) -> Self
pub fn build(self) -> Option<Compiler<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CompilerBuilder<'a>
impl<'a> !RefUnwindSafe for CompilerBuilder<'a>
impl<'a> !Send for CompilerBuilder<'a>
impl<'a> !Sync for CompilerBuilder<'a>
impl<'a> Unpin for CompilerBuilder<'a>
impl<'a> !UnwindSafe for CompilerBuilder<'a>
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