FShaderParameterMap

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

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderCore.h"

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,
    const FVertexFactoryType* InVe...
)

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

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