Function spirv_tools_sys::opt::optimizer_register_hlsl_legalization_passes[][src]

pub unsafe extern "C" fn optimizer_register_hlsl_legalization_passes(
    opt: *mut Optimizer
)

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.