FCachedBoundShaderStateLink

Encapsulates a bound shader state's entry in the cache.

Windows
MacOS
Linux

Inheritance Hierarchy

FCachedBoundShaderStateLink

FCachedBoundShaderStateLink_Threadsafe

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/BoundShaderStateCache.h

Include

#include "BoundShaderStateCache.h"

Syntax

class FCachedBoundShaderStateLink

Remarks

Encapsulates a bound shader state's entry in the cache. Handles removal from the bound shader state cache on destruction. RHIs that use cached bound shader states should create one for each bound shader state.

Variables

Name Description

Protected variable

bool

 

bAddedToSingleThreadedCache

Public variable

FRHIBoundShader...

 

BoundShaderState

The cached bound shader state.

Protected variable

FBoundShaderSta...

 

Key

Constructors

Name Description

Public function

FCachedBoundShaderStateLink

(
    FRHIVertexDeclaration* VertexD...,
    FRHIVertexShader* VertexShader,
    FRHIPixelShader* PixelShader,
    FRHIBoundShaderState* InBoundS...,
    bool bAddToSingleThreadedCache
)

Adds the bound shader state to the cache.

Public function

FCachedBoundShaderStateLink

(
    FRHIVertexDeclaration* VertexD...,
    FRHIVertexShader* VertexShader,
    FRHIPixelShader* PixelShader,
    FRHIHullShader* HullShader,
    FRHIDomainShader* DomainShader,
    FRHIGeometryShader* GeometrySh...,
    FRHIBoundShaderState* InBoundS...,
    bool bAddToSingleThreadedCache
)

Adds the bound shader state to the cache.

Destructors

Name Description

Public function

~FCachedBoundShaderStateLink()

  1. Removes the bound shader state from the cache.

Functions

Name Description

Public function Const

FRHIDomainSh...

 

GetDomainShader()

Public function Const

FRHIGeometry...

 

GetGeometryShader()

Public function Const

FRHIHullShad...

 

GetHullShader()

Public function Const

FRHIPixelSha...

 

GetPixelShader()

Public function Const

FRHIVertexDe...

 

GetVertexDeclaration()

Get the RHI vertex declaration.

Public function Const

FRHIVertexSh...

 

GetVertexShader()

Get the RHI shader for the given frequency.

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