engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FCachedBoundShaderStateLink类 参考

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

#include <BoundShaderStateCache.h>

被 FCachedBoundShaderStateLink_Threadsafe 继承.

Public 成员函数

 FCachedBoundShaderStateLink (FRHIVertexDeclaration *VertexDeclaration, FRHIVertexShader *VertexShader, FRHIPixelShader *PixelShader, FRHIBoundShaderState *InBoundShaderState, bool bAddToSingleThreadedCache=true)
 Adds the bound shader state to the cache.
 
 FCachedBoundShaderStateLink (FRHIVertexDeclaration *VertexDeclaration, FRHIVertexShader *VertexShader, FRHIPixelShader *PixelShader, FRHIHullShader *HullShader, FRHIDomainShader *DomainShader, FRHIGeometryShader *GeometryShader, FRHIBoundShaderState *InBoundShaderState, bool bAddToSingleThreadedCache=true)
 Adds the bound shader state to the cache.
 
FORCEINLINE FRHIVertexDeclaration * GetVertexDeclaration () const
 Get the RHI vertex declaration.
 
FORCEINLINE FRHIVertexShader * GetVertexShader () const
 Get the RHI shader for the given frequency.
 
 ~FCachedBoundShaderStateLink ()
 Destructor. 更多...
 

Public 属性

FRHIBoundShaderState * BoundShaderState
 The cached bound shader state. 更多...
 

详细描述

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.

构造及析构函数说明

◆ ~FCachedBoundShaderStateLink()

FCachedBoundShaderStateLink::~FCachedBoundShaderStateLink ( )

Destructor.

Removes the bound shader state from the cache.

类成员变量说明

◆ BoundShaderState

FRHIBoundShaderState* FCachedBoundShaderStateLink::BoundShaderState

The cached bound shader state.

This is not a reference counted pointer because we rely on the RHI to destruct this object when the bound shader state this references is destructed.


该类的文档由以下文件生成: