FShaderParameterParser

Validates and moves all the shader loose data parameter defined in the root scope of the shader into the root uniform buffer.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

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

Include

#include "ShaderCompilerCommon.h"

Syntax

class FShaderParameterParser

Remarks

Validates and moves all the shader loose data parameter defined in the root scope of the shader into the root uniform buffer.

Functions

Name Description

Public function Const

const FParse...

 

FindParameterInfos

(
    const FString& ParameterName
)

Gets parsing information from a parameter binding name.

Public function Const

void

 

GetParameterFileAndLine

(
    const FParsedShaderParameter& Pars...,
    FString& OutFile,
    FString& OutLine
)

Gets file and line of the parameter in the shader source code.

Public function

bool

 

ParseAndMoveShaderParametersToRootConstantBuffer

(
    const FShaderCompilerInput& Compil...,
    FShaderCompilerOutput& CompilerOut...,
    FString& PreprocessedShaderSource,
    const TCHAR* ConstantBufferTyp...
)

Parses the preprocessed shader code and move the parameters into root constant buffer

Public function Const

void

 

ValidateShaderParameterType

(
    const FShaderCompilerInput& Compil...,
    const FString& ShaderBindingName,
    int32 ReflectionOffset,
    int32 ReflectionSize,
    FShaderCompilerOutput& CompilerOut...
)

Public function Const

void

 

ValidateShaderParameterType

(
    const FShaderCompilerInput& Compil...,
    const FString& ShaderBindingName,
    int32 ReflectionOffset,
    int32 ReflectionSize,
    bool bPlatformSupportsPrecisionModi...,
    FShaderCompilerOutput& CompilerOut...
)

Validates the shader parameter in code is compatible with the shader parameter structure.

Public function Const

void

 

ValidateShaderParameterTypes

(
    const FShaderCompilerInput& Compil...,
    FShaderCompilerOutput& CompilerOut...
)

Public function Const

void

 

ValidateShaderParameterTypes

(
    const FShaderCompilerInput& Compil...,
    bool bPlatformSupportsPrecisionModi...,
    FShaderCompilerOutput& CompilerOut...
)

Validates shader parameter map is compatible with the shader parameter structure.

Classes

Name

Description

Public struct

FParsedShaderParameter