engine
 
载入中...
搜索中...
未找到
Public 类型 | 静态 Public 属性 | 所有成员列表
TShaderParameterTypeInfo< TypeParameter > 模板结构体 参考

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

#include <ShaderParameterMacros.h>

Public 类型

using TAlignedType = TypeParameter
 Type that is actually alligned.
 

静态 Public 属性

static constexpr int32 Alignment = alignof(TypeParameter)
 Defines the alignment of the elements in bytes.
 
static constexpr EUniformBufferBaseType BaseType = UBMT_INVALID
 Defines what the type actually is.
 
static constexpr bool bIsStoredInConstantBuffer = true
 Defines whether this element is stored in constant buffer or not. 更多...
 
static constexpr int32 NumElements = 0
 Defines the number of elements in an array fashion. 更多...
 
static constexpr int32 NumRows = 1
 Defines the number rows and columns for vector or matrix based data typed.
 

详细描述

template<typename TypeParameter>
struct TShaderParameterTypeInfo< TypeParameter >

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

类成员变量说明

◆ 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.

◆ 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.


该结构体的文档由以下文件生成: