FShaderConductorContext::CompileHlslToSpirv

Compiles the specified HLSL shader source code to SPIR-V.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h

Include

#include "ShaderCompilerCommon.h"

Source

/Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp

Syntax

bool CompileHlslToSpirv
(
    const FShaderConductorOptions & Options,
    TArray< uint32 > & OutSpirv
)

Remarks

Compiles the specified HLSL shader source code to SPIR-V.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss