[][src]Struct spirv_tools::opt::Options

pub struct Options {
    pub validator_options: Option<ValidatorOptions>,
    pub max_id_bound: Option<u32>,
    pub preserve_bindings: bool,
    pub preserve_spec_constants: bool,
}

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

impl Clone for Options[src]

impl Default for Options[src]

impl From<Options> for Options[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.