FShaderCode::AddOptionalData

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

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderCore.h

Include

#include "ShaderCore.h"

Syntax

void AddOptionalData
(
    uint8 Key,
    const uint8 * ValuePtr,
    uint32 ValueSize
)

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

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss