UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ShaderParameterStructDeclaration.h File Reference
#include <type_traits>
#include "HAL/Platform.h"

Go to the source code of this file.

Macros

#define DECLARE_UNIFORM_BUFFER_STRUCT(StructTypeName, PrefixKeywords)
 

Functions

template<typename T >
const FShaderParametersMetadataGetForwardDeclaredShaderParametersStructMetadata (const T *)
 

Macro Definition Documentation

◆ DECLARE_UNIFORM_BUFFER_STRUCT

#define DECLARE_UNIFORM_BUFFER_STRUCT (   StructTypeName,
  PrefixKeywords 
)
Value:
class StructTypeName; \
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const FShaderParametersMetadata * GetForwardDeclaredShaderParametersStructMetadata(const T *)
Definition ShaderParameterStructDeclaration.h:19
Definition ShaderParameterMetadata.h:136

Function Documentation

◆ GetForwardDeclaredShaderParametersStructMetadata()

template<typename T >
const FShaderParametersMetadata * GetForwardDeclaredShaderParametersStructMetadata ( const T *  )

Retrieves the metadata for a shader parameter struct type without having a definition of the type. This is the default overload in case there is no exact non-template overload (prevents implicit casting).