Struct spirv_tools::opt::Options
source · pub struct Options {
pub validator_options: Option<ValidatorOptions>,
pub max_id_bound: Option<u32>,
pub preserve_bindings: bool,
pub preserve_spec_constants: bool,
}
Expand description
Options for specifying the behavior of the optimizer
Fields§
§validator_options: Option<ValidatorOptions>
Records the validator options that should be passed to the validator, the validator will run with the options before optimizer.
max_id_bound: Option<u32>
Records the maximum possible value for the id bound.
preserve_bindings: bool
Records whether all bindings within the module should be preserved.
preserve_spec_constants: bool
Records whether all specialization constants within the module should be preserved.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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