FShaderMapResource

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

RenderCore

Header

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

Include

#include "Shader.h"

Syntax

class FShaderMapResource :
    public FRenderResource,
    public FDeferredCleanupInterface

Constructors

Name Description

Protected function

FShaderMapResource

(
    EShaderPlatform InPlatform,
    int32 NumShaders
)

Destructors

Name Description

Protected function Virtual

~FShaderMapResource()

Functions

Name Description

Public function

void

 

AddRef()

Public function Static

bool

 

ArePlatformsCompatible

(
    EShaderPlatform CurrentPlatform,
    EShaderPlatform TargetPlatform
)

Public function

void

 

BeginCreateAllShaders()

Protected function

TRefCountPtr...

 

CreateRHIShader

(
    int32 ShaderIndex
)

Protected function

FRHIShader &...

 

CreateShader

(
    int32 ShaderIndex
)

Addrefs the reference, passing the responsibility to the caller to Release() it.

Protected function Const

SIZE_T

 

GetAllocatedSize()

Public function Const

int32

 

GetNumRefs()

Public function Const

int32

 

GetNumShaders()

Public function Const

EShaderPlatf...

 

GetPlatform()

Public function

FRHIShader &...

 

GetShader

(
    int32 ShaderIndex
)

Public function Const

uint32

 

GetSizeBytes()

Public function Const

bool

 

HasShader

(
    int32 ShaderIndex
)

Public function Const

bool

 

IsValidShaderIndex

(
    int32 ShaderIndex
)

Public function

void

 

Release()

Protected function

void

 

ReleaseShaders()

Protected function Virtual

bool

 

TryRelease()

Overridden from FRenderResource

Name Description

Public function Virtual

void

 

ReleaseRHI()

Releases the RHI resources used by this resource.