pub struct CompiledOptimizer { /* private fields */ }

Trait Implementations

Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

Register a single pass with the the optimizer.

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.

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.

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

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.