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
)

Convenience, silently drops the data if string is too long

Public function

void

 

AddOptionalData

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

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

int32

 

GetShaderCodeSize()

Public function

TArray< uint...

 

GetWriteAccess()

For write access

Deprecated Functions

Name Description

Public function Const

void

 

GetShaderCodeLegacy

(
    TArray< uint8 >& Out
)

Please switch to GetShaderCodeToRead()

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