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

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback