FShaderCode

Windows
MacOS
Linux

References

Module

RenderCore

Header

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

Include

#include "ShaderCore.h"

Syntax

class FShaderCode

Constructors

Name Description

Public function

FShaderCode()

Functions

Name Description

Public function

void

 

AddOptionalData

(
    const T& In
)

For convenience

Public function

void

 

AddOptionalData

(
    uint8 Key,
    const ANSICHAR* InString
)

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

Public function

void

 

AddOptionalData

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

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

Public function Const

void

 

FinalizeShaderCode()

Adds CustomData or does nothing if that was already done before

Public function Const

const TArray...

 

GetReadAccess()

For read access, can have additional data attached to the end

Public function Const

void

 

GetShaderCodeLegacy

(
    TArray< uint8 >& Out
)

Inefficient, will/should be replaced by GetShaderCodeToRead()

Public function Const

int32

 

GetShaderCodeSize()

Public function

TArray< uint...

 

GetWriteAccess()

For write access

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