FShaderParameterMap

Syntax

class FShaderParameterMap

Remarks

A map of shader parameter names to registers allocated to that parameter.

Variables

Name Description

Public variable

TMap < FString , ...

 

ParameterMap

Constructors

Name Description

Public function

FShaderParameterMap()

Functions

Name Description

Public function

void

 

AddParameterAllocation

(
    const TCHAR * ParameterName,
    uint16 BufferIndex,
    uint16 BaseIndex,
    uint16 Size,
    EShaderParameterType ParameterType
)

Public function Const

bool

 

ContainsParameterAllocation

(
    const TCHAR * ParameterName
)

Public function Const

bool

 

FindParameterAllocation

(
    const TCHAR * ParameterName,
    uint16 & OutBufferIndex,
    uint16 & OutBaseIndex,
    uint16 & OutSize
)

Public function Const

void

 

GetAllParameterNames

(
    TArray < FString >& OutNames
)

Public function Const

const TMap < ...

 

GetParameterMap()

Public function

void

 

RemoveParameterAllocation

(
    const TCHAR * ParameterName
)

Public function Const

void

 

UpdateHash

(
    FSHA1 & HashState
)

Updates the hash state with the contents of this parameter map.

Public function Const

void

 

VerifyBindingsAreComplete

(
    const TCHAR * ShaderTypeName,
    FShaderTarget Target,
    FVertexFactoryType * InVertexFa...
)

Checks that all parameters are bound and asserts if any aren't in a debug build

References

Module

RenderCore

Header

Runtime/RenderCore/Public/ShaderCore.h