FShaderCompilerOutput

The output of the shader compiler.

Choose your operating system:

Windows

macOS

Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderCompilerCore.h

Include

#include "ShaderCompilerCore.h"

Syntax

struct FShaderCompilerOutput

Remarks

The output of the shader compiler. Bump ShaderCompileWorkerOutputVersion if FShaderCompilerOutput changes

Variables

Name Description

Public variable

bool

 

bFailedRemovingUnused

Public variable

bool

 

bSucceeded

Public variable

bool

 

bSupportsQueryingUsedAttributes

Public variable

bool

 

bUsedHLSLccCompiler

Public variable

double

 

CompileTime

Public variable

TArray< FShader...

 

Errors

Public variable

uint32

 

NumInstructions

Public variable

uint32

 

NumTextureSamplers

Public variable

FString

 

OptionalFinalShaderSource

Public variable

FString

 

OptionalPreprocessedShaderSource

Public variable

FSHAHash

 

OutputHash

Public variable

FShaderParamete...

 

ParameterMap

Public variable

TArray< uint8 >

 

PlatformDebugData

Public variable

TArray< FString...

 

PragmaDirectives

Public variable

FShaderCode

 

ShaderCode

Public variable

FShaderTarget

 

Target

Public variable

TArray< FString...

 

UsedAttributes

Constructors

Name Description

Public function

FShaderCompilerOutput()

Functions

Name Description

Public function

void

 

CompressOutput

(
    FName ShaderCompressionFormat,
    FOodleDataCompression::ECompressor ...,
    FOodleDataCompression::ECompression...
)

Calls GenerateOutputHash() before the compression, replaces FShaderCode with the compressed data (if compression result was smaller).

Public function

void

 

GenerateOutputHash()

Generates OutputHash from the compiler output.