pub struct CompileOptions {
pub dead_node_elimination: bool,
pub constant_folding: bool,
pub common_subexpression_elimination: bool,
pub debug_comments: bool,
pub glsl_version: String,
pub enable_conditionals: bool,
pub animated_uniforms: bool,
}Expand description
Options controlling the compilation process.
Fields§
§dead_node_elimination: boolIf true, run dead-node elimination (remove unreachable from outputs).
constant_folding: boolIf true, evaluate constant subtrees at compile time.
common_subexpression_elimination: boolIf true, merge common subexpressions.
debug_comments: boolIf true, include comments in generated GLSL for debugging.
glsl_version: StringGLSL version string (e.g., “330 core”, “300 es”).
enable_conditionals: boolIf true, generate conditional branches for nodes with conditions.
animated_uniforms: boolIf true, generate animated uniform declarations for time-dependent parameters.
Trait Implementations§
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§fn clone(&self) -> CompileOptions
fn clone(&self) -> CompileOptions
Returns a duplicate 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 CompileOptions
impl Debug for CompileOptions
Auto Trait Implementations§
impl Freeze for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
impl UnwindSafe for CompileOptions
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