[][src]Struct spirv_tools::opt::compiled::CompiledOptimizer

pub struct CompiledOptimizer { /* fields omitted */ }

Trait Implementations

impl Default for CompiledOptimizer[src]

impl Drop for CompiledOptimizer[src]

impl Optimizer for CompiledOptimizer[src]

pub fn register_pass(&mut self, pass: Passes) -> &mut Self[src]

Register a single pass with the the optimizer.

pub fn register_performance_passes(&mut self) -> &mut Self[src]

Registers passes that attempt to improve performance of generated code. This sequence of passes is subject to constant review and will change from time to time.

pub fn register_size_passes(&mut self) -> &mut Self[src]

Registers passes that attempt to improve the size of generated code. This sequence of passes is subject to constant review and will change from time to time.

pub fn register_hlsl_legalization_passes(&mut self) -> &mut Self[src]

Registers passes that attempt to legalize the generated code.

Note: this recipe is specially designed for legalizing SPIR-V. It should be used by compilers after translating HLSL source code literally. It should not be used by general workloads for performance or size improvement.

This sequence of passes is subject to constant review and will change from time to time.

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, 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.