UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TShaderParameterTypeInfo< TypeParameter > Struct Template Reference

#include <ShaderParameterMacros.h>

Public Types

using TAlignedType = TypeParameter
 
using TInstancedType = TypeParameter
 

Static Public Member Functions

static const FShaderParametersMetadataGetStructMetadata ()
 

Static Public Attributes

static constexpr EUniformBufferBaseType BaseType = UBMT_INVALID
 
static constexpr int32 NumRows = 1
 
static constexpr int32 NumColumns = 1
 
static constexpr int32 NumElements = 0
 
static constexpr int32 Alignment = alignof(TypeParameter)
 
static constexpr bool bIsStoredInConstantBuffer = true
 

Detailed Description

template<typename TypeParameter>
struct TShaderParameterTypeInfo< TypeParameter >

Template to transcode some meta data information for a type <TypeParameter> not specific to shader parameters API.

Member Typedef Documentation

◆ TAlignedType

Type that is actually alligned.

◆ TInstancedType

Type that has a multiple of 4 components.

Member Function Documentation

◆ GetStructMetadata()

template<typename TypeParameter >
static const FShaderParametersMetadata * TShaderParameterTypeInfo< TypeParameter >::GetStructMetadata ( )
inlinestatic

Member Data Documentation

◆ Alignment

Defines the alignment of the elements in bytes.

◆ BaseType

Defines what the type actually is.

◆ bIsStoredInConstantBuffer

template<typename TypeParameter >
constexpr bool TShaderParameterTypeInfo< TypeParameter >::bIsStoredInConstantBuffer = true
staticconstexpr

Defines whether this element is stored in constant buffer or not. This informations is usefull to ensure at compile time everything in the structure get defined at the end of the structure, to reduce as much as possible the size of the constant buffer.

◆ NumColumns

template<typename TypeParameter >
constexpr int32 TShaderParameterTypeInfo< TypeParameter >::NumColumns = 1
staticconstexpr

◆ NumElements

template<typename TypeParameter >
constexpr int32 TShaderParameterTypeInfo< TypeParameter >::NumElements = 0
staticconstexpr

Defines the number of elements in an array fashion. 0 means this is not a TStaticArray, which therefor means there is 1 element.

◆ NumRows

template<typename TypeParameter >
constexpr int32 TShaderParameterTypeInfo< TypeParameter >::NumRows = 1
staticconstexpr

Defines the number rows and columns for vector or matrix based data typed.


The documentation for this struct was generated from the following file: