![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShaderParameterMetadata.h>
Public Member Functions | |
| FMember (const TCHAR *InName, const TCHAR *InShaderType, int32 InFileLine, uint32 InOffset, EUniformBufferBaseType InBaseType, EShaderPrecisionModifier::Type InPrecision, uint32 InNumRows, uint32 InNumColumns, uint32 InNumElements, const FShaderParametersMetadata *InStruct) | |
| const TCHAR * | GetName () const |
| const TCHAR * | GetShaderType () const |
| int32 | GetFileLine () const |
| uint32 | GetOffset () const |
| EUniformBufferBaseType | GetBaseType () const |
| EShaderPrecisionModifier::Type | GetPrecision () const |
| uint32 | GetNumRows () const |
| uint32 | GetNumColumns () const |
| uint32 | GetNumElements () const |
| const FShaderParametersMetadata * | GetStructMetadata () const |
| bool | IsVariableNativeType () const |
| uint32 | GetMemberSize () const |
| RENDERCORE_API void | GenerateShaderParameterType (FString &Result, bool bSupportsPrecisionModifier) const |
| RENDERCORE_API void | GenerateShaderParameterType (FString &Result, EShaderPlatform ShaderPlatform) const |
Static Public Member Functions | |
| static RENDERCORE_API void | GenerateShaderParameterType (FString &Result, bool bSupportsPrecisionModifier, EUniformBufferBaseType BaseType, EShaderPrecisionModifier::Type PrecisionModifier, uint32 NumRows, uint32 NumColumns) |
Friends | |
| class | FShaderParametersMetadata |
A member of a shader parameter structure.
|
inline |
Initialization constructor.
| void FShaderParametersMetadata::FMember::GenerateShaderParameterType | ( | FString & | Result, |
| bool | bSupportsPrecisionModifier | ||
| ) | const |
|
static |
| void FShaderParametersMetadata::FMember::GenerateShaderParameterType | ( | FString & | Result, |
| EShaderPlatform | ShaderPlatform | ||
| ) | const |
|
inline |
Returns the type of the elements, int, UAV...
|
inline |
Returns the C++ line number where the parameter is declared.
|
inline |
Returns the size of the member.
If this an array, the alignment of the element are changed.
|
inline |
Returns the string of the name of the element or name of the array of elements.
|
inline |
Returns the number of column in the element. For instance FMatrix would return 4, or FVector would return 3.
|
inline |
Returns the number of elements in array, or 0 if this is not an array.
|
inline |
Returns the number of row in the element. For instance FMatrix would return 4, or FVector would return 1.
|
inline |
Returns the offset of the element in the shader parameter struct in bytes.
|
inline |
Floating point the element is being stored.
|
inline |
Returns the string of the type.
|
inline |
Returns the metadata of the struct.
|
inline |
|
friend |