IShaderFormat::CompileShader

Compile the specified shader. Only called if SupportsIndependentPreprocessing returns false.

Unreal Engine C++ API Reference > Developer > TargetPlatform > Interfaces > IShaderFormat

References

   
Module TargetPlatform
Header /Engine/Source/Developer/TargetPlatform/Public/Interfaces/IShaderFormat.h
Include #include "Interfaces/IShaderFormat.h"
virtual void CompileShader
(
    [FName](API\Runtime\Core\UObject\FName) Format,
    const [FShaderCompilerInput](API\Runtime\RenderCore\FShaderCompilerInput) & Input,
    [FShaderCompilerOutput](API\Runtime\RenderCore\FShaderCompilerOutput) & Output,
    const [FString](API\Runtime\Core\Containers\FString) & WorkingDirectory
) const

Remarks

Compile the specified shader. Only called if SupportsIndependentPreprocessing returns false.

Parameters

Name Description
Format The desired format
Input The input to the shader compiler.
Output The output from shader compiler.
WorkingDirectory The working directory.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library