Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderCode
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddOptionalData
(
const T& In |
For convenience | ShaderCore.h | |
void AddOptionalData
(
EShaderOptionalDataKey Key, |
Note: we don't hash the optional attachments in GenerateOutputHash() as they would prevent sharing (e.g. many material share the save VS) convenience, silently drops the data if string is too long | ShaderCore.h | |
void AddOptionalData
(
EShaderOptionalDataKey Key, |
Note: we don't hash the optional attachments in GenerateOutputHash() as they would prevent sharing (e.g. many material share the save VS) can be called after the non optional data was stored in ShaderData | ShaderCore.h |
AddOptionalData(const T &)
Description
For convenience
| Name | AddOptionalData |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include Path | #include "ShaderCore.h" |
template<class T>
void AddOptionalData
(
const T & In
)
AddOptionalData(EShaderOptionalDataKey, const ANSICHAR *)
Description
Note: we don't hash the optional attachments in GenerateOutputHash() as they would prevent sharing (e.g. many material share the save VS) convenience, silently drops the data if string is too long
| Name | AddOptionalData |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include Path | #include "ShaderCore.h" |
void AddOptionalData
(
EShaderOptionalDataKey Key,
const ANSICHAR * InString
)
Parameters
| Name | Remarks |
|---|---|
| e.g. | 'n' for the ShaderSourceFileName |
AddOptionalData(EShaderOptionalDataKey, const uint8 *, uint32)
Description
Note: we don't hash the optional attachments in GenerateOutputHash() as they would prevent sharing (e.g. many material share the save VS) can be called after the non optional data was stored in ShaderData
| Name | AddOptionalData |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include Path | #include "ShaderCore.h" |
void AddOptionalData
(
EShaderOptionalDataKey Key,
const uint8 * ValuePtr,
uint32 ValueSize
)
Parameters
| Name | Remarks |
|---|---|
| Key | uint8 to save memory so max 255, e.g. FShaderCodePackedResourceCounts::Key |
| Size | >0, only restriction is that sum of all optional data values must be < 4GB |