Struct spirv_tools::opt::compiled::CompiledOptimizer [−][src]
Trait Implementations
impl Default for CompiledOptimizer[src]
impl Drop for CompiledOptimizer[src]
impl Optimizer for CompiledOptimizer[src]
fn with_env(target: TargetEnv) -> Self[src]
fn optimize<MC: MessageCallback>(
&self,
input: impl AsRef<[u32]>,
msg_callback: &mut MC,
options: Option<Options>
) -> Result<Binary, Error>[src]
&self,
input: impl AsRef<[u32]>,
msg_callback: &mut MC,
options: Option<Options>
) -> Result<Binary, Error>
fn register_pass(&mut self, pass: Passes) -> &mut Self[src]
Register a single pass with the the optimizer.
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.
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.
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
impl RefUnwindSafe for CompiledOptimizer
impl !Send for CompiledOptimizer
impl !Sync for CompiledOptimizer
impl Unpin for CompiledOptimizer
impl UnwindSafe for CompiledOptimizer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,