Navigation
API > API/Plugins > API/Plugins/ComputeFramework > API/Plugins/ComputeFramework/ComputeFramework
References
Module | ComputeFramework |
Header | /Engine/Plugins/Runtime/ComputeFramework/Source/ComputeFramework/Public/ComputeFramework/ShaderParamTypeDefinition.h |
Include | #include "ComputeFramework/ShaderParamTypeDefinition.h" |
Syntax
USTRUCT&40;&41;
struct FShaderValueType
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
union FShaderValueType::@13239 | @13240 | |
![]() ![]() |
bool | bIsDynamicArray | |
![]() ![]() |
EShaderFundamentalDimensionType | DimensionType | |
![]() |
uint8 | MatrixColumnCount | |
![]() |
uint8 | MatrixRowCount | |
![]() ![]() |
FName | Name | |
![]() |
TArray< FStructElement > | StructElements | |
![]() ![]() |
EShaderFundamentalType | Type | |
![]() |
uint8 | VectorElemCount |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FShaderValueTypeHandle | FromString
(
const FString& InTypeDecl |
Parses the given string section and tries to convert to a shader value type. |
![]() ![]() |
FShaderValueTypeHandle | Get
(
EShaderFundamentalType InType |
Returns a scalar value type. |
![]() ![]() |
FShaderValueTypeHandle | Get
(
EShaderFundamentalType InType, |
Returns a vector value type. |
![]() ![]() |
FShaderValueTypeHandle | Get
(
FName InName, |
Constructor for struct types |
![]() ![]() |
FShaderValueTypeHandle | Get
(
FName InName, |
Constructor for struct types |
![]() ![]() |
FShaderValueTypeHandle | Get
(
EShaderFundamentalType InType, |
Constructor for vector values. InElemCount can be any value between 1-4 |
![]() ![]() |
TArray< FShaderValueTypeHandle > | Returns the all the struct types used in this type if the type is a struct. | |
![]() ![]() |
int32 | Returns the size in bytes required to hold one element of this type using HLSL sizing (which may be different from packed sizing in C++). | |
![]() ![]() |
FString | GetTypeDeclaration
(
const TMap< FName, FName >& InNamesToReplace, |
Returns the type declaration if this type is a struct, or the empty string if not. |
![]() ![]() |
FString | Returns a zero value for the type as a string, suitable for use as a constant in HLSL code. | |
![]() ![]() |
FShaderValueTypeHandle | MakeDynamicArrayType
(
const FShaderValueTypeHandle& InElementType |
Construct an array type from an existing type |
![]() ![]() |
FString | Returns the type name as a string (e.g. 'vector2', 'matrix2x3' or 'struct_name') for use in variable declarations. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FShaderValueType& InOtherType |
Returns true if this type and the other type are not equal. |
![]() ![]() |
bool | operator==
(
const FShaderValueType& InOtherType |
Returns true if this type and the other type are exactly equal. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FStructElement | A simple container representing a single, named element in a shader value struct. | |
![]() |
FValue | ||
![]() |
FValueView |