Navigation
API > API/Runtime > API/Runtime/RenderCore > API/Runtime/RenderCore/FShaderCode > API/Runtime/RenderCore/FShaderCode/AddOptionalData
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include | #include "ShaderCore.h" |
void AddOptionalData
&40;
uint8 Key,
const uint8 &42; ValuePtr,
uint32 ValueSize
&41;
Remarks
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
Parameters
| Name | Description |
|---|---|
| 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 |