FShaderParametersMetadata

A uniform buffer struct.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderParameterMetadata.h"

Syntax

class FShaderParametersMetadata

Remarks

A uniform buffer struct.

Constructors

Name Description

Public function

FShaderParametersMetadata

(
    EUseCase UseCase,
    const FName& InLayoutName,
    const TCHAR* InStructTypeName,
    const TCHAR* InShaderVariableN...,
    uint32 InSize,
    const TArray< FMember >& InMembers
)

Initialization constructor.

Destructors

Name Description

Public function Virtual

~FShaderParametersMetadata()

Functions

Name Description

Public function Const

void

 

AddResourceTableEntries

(
    TMap< FString, FResourceTableEntry ...,
    TMap< FString, uint32 >& ResourceT...
)

Public function Const

void

 

FindMemberFromOffset

(
    uint16 MemberOffset,
    const FShaderParametersMetadata...,
    const FShaderParametersMetadata::FM...,
    int32* ArrayElementId,
    FString* NamePrefix
)

Find a member for a given offset.

Public function Const

const FRHIUn...

 

GetLayout()

Public function Const

const TArray...

 

GetMembers()

Public function Static

TMap< FName,...

 

GetNameStructMap()

Speed up finding the uniform buffer by its name

Public function Const

void

 

GetNestedStructs

(
    TArray< const FShaderParametersMeta...
)

Public function Const

const TCHAR ...

 

GetShaderVariableName()

Public function Const

uint32

 

GetSize()

Public function Static

TLinkedList<...

 

GetStructList()

Public function Const

const TCHAR ...

 

GetStructTypeName()

Public function Const

EUseCase

 

GetUseCase()

Public function Static

void

 

InitializeAllGlobalStructs()

Initialize all the global shader parameter structs.

Classes

Name

Description

Public class

FMember

A member of a shader parameter structure.

Enums

Name

Description

Public enum

EUseCase

The use case of the uniform buffer structures.

Constants

Name

Description

kRootUniformBufferBindingName

Shader binding name of the uniform buffer that contains the root shader parameters.

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