[−][src]Struct spirv_compiler::CompilerBuilder
Implementations
impl<'a> CompilerBuilder<'a>
[src]
pub fn new() -> CompilerBuilder<'a>
[src]
pub fn with_macro(self, name: &str, value: Option<&str>) -> Self
[src]
pub fn with_auto_bind_uniforms(self, auto_bind: bool) -> Self
[src]
pub fn with_binding_base(self, kind: ResourceKind, base: u32) -> Self
[src]
pub fn generate_debug_info(self) -> Self
[src]
pub fn force_version_profile(self, version: u32, profile: GlslProfile) -> Self
[src]
pub fn with_target_env(self, env: TargetEnv, version: u32) -> Self
[src]
pub fn with_hlsl_io_mapping(self, iomap: bool) -> Self
[src]
pub fn with_hlsl_register_set_and_binding(
self,
register: &str,
set: &str,
binding: &str
) -> Self
[src]
self,
register: &str,
set: &str,
binding: &str
) -> Self
pub fn with_hlsl_offsets(self, offsets: bool) -> Self
[src]
pub fn with_source_language(self, lang: SourceLanguage) -> Self
[src]
pub fn with_binding_base_for_stage(
self,
kind: ShaderKind,
resource_kind: ResourceKind,
base: u32
) -> Self
[src]
self,
kind: ShaderKind,
resource_kind: ResourceKind,
base: u32
) -> Self
pub fn with_opt_level(self, level: OptimizationLevel) -> Self
[src]
pub fn supress_warnings(self) -> Self
[src]
pub fn with_warnings_as_errors(self) -> Self
[src]
pub fn with_limit(self, limit: Limit, value: i32) -> Self
[src]
pub fn with_include_dir<T: AsRef<Path>>(self, path: T) -> Self
[src]
pub fn build(self) -> Option<Compiler<'a>>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for CompilerBuilder<'a>
[src]
impl<'a> !Send for CompilerBuilder<'a>
[src]
impl<'a> !Sync for CompilerBuilder<'a>
[src]
impl<'a> Unpin for CompilerBuilder<'a>
[src]
impl<'a> !UnwindSafe for CompilerBuilder<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,