A member of a shader parameter structure.
更多...
#include <ShaderParameterMetadata.h>
|
|
| FMember (const TCHAR *InName, const TCHAR *InShaderType, uint32 InOffset, EUniformBufferBaseType InBaseType, EShaderPrecisionModifier::Type InPrecision, uint32 InNumRows, uint32 InNumColumns, uint32 InNumElements, const FShaderParametersMetadata *InStruct) |
| | Initialization constructor.
|
| |
|
EUniformBufferBaseType | GetBaseType () const |
| | Returns the type of the elements, int, UAV...
|
| |
| uint32 | GetMemberSize () const |
| | Returns the size of the member. 更多...
|
| |
|
const TCHAR * | GetName () const |
| | Returns the string of the name of the element or name of the array of elements.
|
| |
| uint32 | GetNumColumns () const |
| | Returns the number of column in the element. 更多...
|
| |
|
uint32 | GetNumElements () const |
| | Returns the number of elements in array, or 0 if this is not an array.
|
| |
| uint32 | GetNumRows () const |
| | Returns the number of row in the element. 更多...
|
| |
|
uint32 | GetOffset () const |
| | Returns the offset of the element in the shader parameter struct in bytes.
|
| |
|
EShaderPrecisionModifier::Type | GetPrecision () const |
| | Floating point the element is being stored.
|
| |
|
const TCHAR * | GetShaderType () const |
| | Returns the string of the type.
|
| |
|
const FShaderParametersMetadata * | GetStructMetadata () const |
| | Returns the metadata of the struct.
|
| |
A member of a shader parameter structure.
◆ GetMemberSize()
| uint32 FShaderParametersMetadata::FMember::GetMemberSize |
( |
| ) |
const |
|
inline |
Returns the size of the member.
If this an array, the alignment of the element are changed.
◆ GetNumColumns()
| uint32 FShaderParametersMetadata::FMember::GetNumColumns |
( |
| ) |
const |
|
inline |
Returns the number of column in the element.
For instance FMatrix would return 4, or FVector would return 3.
◆ GetNumRows()
| uint32 FShaderParametersMetadata::FMember::GetNumRows |
( |
| ) |
const |
|
inline |
Returns the number of row in the element.
For instance FMatrix would return 4, or FVector would return 1.
该类的文档由以下文件生成:
- ShaderParameterMetadata.h