FCachedBoundShaderStateLink

Inheritance Hierarchy

FCachedBoundShaderStateLink

FCachedBoundShaderStateLink_Threadsafe

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

FBoundShaderSta ...

 

BoundShaderState

The cached bound shader state.

Protected variable

FBoundShaderSta ...

 

Key

Constructors

Name Description

Public function

FCachedBoundShaderStateLink

(
    FVertexDeclarationRHIParamRef Verte...,
    FVertexShaderRHIParamRef VertexShad...,
    FPixelShaderRHIParamRef PixelShader,
    FBoundShaderStateRHIParamRef InBoun...,
    bool bAddToSingleThreadedCache
)

Adds the bound shader state to the cache.

Public function

FCachedBoundShaderStateLink

(
    FVertexDeclarationRHIParamRef Verte...,
    FVertexShaderRHIParamRef VertexShad...,
    FPixelShaderRHIParamRef PixelShader,
    FHullShaderRHIParamRef HullShader,
    FDomainShaderRHIParamRef DomainShad...,
    FGeometryShaderRHIParamRef Geometry...,
    FBoundShaderStateRHIParamRef InBoun...,
    bool bAddToSingleThreadedCache
)

Adds the bound shader state to the cache.

Destructors

Name Description

Public function

~FCachedBoundShaderStateLink()

Destructor. Removes the bound shader state from the cache.

Functions

Name Description

Public function Const

FDomainShade ...

 

GetDomainShader()

Public function Const

FGeometrySha ...

 

GetGeometryShader()

Public function Const

FHullShaderR ...

 

GetHullShader()

Public function Const

FPixelShader ...

 

GetPixelShader()

Public function Const

FVertexDecla ...

 

GetVertexDeclaration()

Get the RHI vertex declaration.

Public function Const

FVertexShade ...

 

GetVertexShader()

Get the RHI shader for the given frequency.

References

Module

RHI

Header

Runtime/RHI/Public/BoundShaderStateCache.h