FShaderConductorContext::OptimizeSpirv

Performs the specified optimization passes (e.g. "-O" or "--strip-reflect") on the SPIR-V module.

Unreal Engine C++ API Reference > Developer > ShaderCompilerCommon > FShaderConductorContext

References

   
Module ShaderCompilerCommon
Header /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderConductorContext.h
Include #include "ShaderConductorContext.h"
bool OptimizeSpirv
(
    [TArray](API\Runtime\Core\Containers\TArray)< uint32 > & Spirv,
    const ANSICHAR *const * OptConfigs,
    int32 OptConfigCount
)

Remarks

Performs the specified optimization passes (e.g. "-O" or "--strip-reflect") on the SPIR-V module.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library