FMember

A member of a shader parameter structure.

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderParameterMetadata.h"

Syntax

class FMember

Remarks

A member of a shader parameter structure.

Constructors

Name Description

Public function

FMember

(
    const TCHAR* InName,
    const TCHAR* InShaderType,
    uint32 InOffset,
    EUniformBufferBaseType InBaseType,
    EShaderPrecisionModifier::Type InPr...,
    uint32 InNumRows,
    uint32 InNumColumns,
    uint32 InNumElements,
    const FShaderParametersMetadata...
)

Initialization constructor.

Functions

Name Description

Public function Const

void

 

GenerateShaderParameterType

(
    FString& Result,
    EShaderPlatform ShaderPlatform
)

Public function Const

EUniformBuff...

 

GetBaseType()

Returns the type of the elements, int, UAV...

Public function Const

uint32

 

GetMemberSize()

Returns the size of the member.

Public function Const

const TCHAR ...

 

GetName()

Returns the string of the name of the element or name of the array of elements.

Public function Const

uint32

 

GetNumColumns()

Returns the number of column in the element.

Public function Const

uint32

 

GetNumElements()

Returns the number of elements in array, or 0 if this is not an array.

Public function Const

uint32

 

GetNumRows()

Returns the number of row in the element.

Public function Const

uint32

 

GetOffset()

Returns the offset of the element in the shader parameter struct in bytes.

Public function Const

EShaderPreci...

 

GetPrecision()

Floating point the element is being stored.

Public function Const

const TCHAR ...

 

GetShaderType()

Returns the string of the type.

Public function Const

const FShade...

 

GetStructMetadata()

Returns the metadata of the struct.

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