Language:
Discover
By Skill Level
By Category

FCachedBoundShaderStateLink

Choose your OS:

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

FDomainShade ...

 

GetDomainShader()

Public function

FGeometrySha ...

 

GetGeometryShader()

Public function

FHullShaderR ...

 

GetHullShader()

Public function

FPixelShader ...

 

GetPixelShader()

Public function

FVertexDecla ...

 

GetVertexDeclaration()

Get the RHI vertex declaration.

Public function

FVertexShade ...

 

GetVertexShader()

Get the RHI shader for the given frequency.

References

Module

RHI

Header

Runtime/RHI/Public/BoundShaderStateCache.h