Struct glslang::CompilerOptions
source · pub struct CompilerOptions {
pub source_language: SourceLanguage,
pub target: Target,
pub version_profile: Option<(i32, GlslProfile)>,
}
Expand description
Options to configure the compilation of a shader.
Fields§
§source_language: SourceLanguage
§target: Target
The target
version_profile: Option<(i32, GlslProfile)>
The GLSL version profile. If specified, will force the specified profile on compilation.
Trait Implementations§
source§impl Clone for CompilerOptions
impl Clone for CompilerOptions
source§fn clone(&self) -> CompilerOptions
fn clone(&self) -> CompilerOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompilerOptions
impl Debug for CompilerOptions
Auto Trait Implementations§
impl RefUnwindSafe for CompilerOptions
impl Send for CompilerOptions
impl Sync for CompilerOptions
impl Unpin for CompilerOptions
impl UnwindSafe for CompilerOptions
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