Navigation
API > API/Runtime > API/Runtime/RenderCore
A static RHI stencil state resource. TStaticStencilStateRHI<...>::GetStaticState() will return a FDepthStencilStateRHIRef to a stencil state with the desired settings. Should only be used from the rendering thread.
| Name | TStaticDepthStencilState |
| Type | class |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RHIStaticStates.h |
| Include Path | #include "RHIStaticStates.h" |
Syntax
template<bool bEnableDepthWrite, ECompareFunction DepthTest, bool bEnableFrontFaceStencil, ECompareFunction FrontFaceStencilTest, EStencilOp FrontFaceStencilFailStencilOp, EStencilOp FrontFaceDepthFailStencilOp, EStencilOp FrontFacePassStencilOp, bool bEnableBackFaceStencil, ECompareFunction BackFaceStencilTest, EStencilOp BackFaceStencilFailStencilOp, EStencilOp BackFaceDepthFailStencilOp, EStencilOp BackFacePassStencilOp, uint8 StencilReadMask, uint8 StencilWriteMask>
class TStaticDepthStencilState : public TStaticStateRHI< TStaticDepthStencilState< true, CF_DepthNearOrEqual, false, CF_Always, SO_Keep, SO_Keep, SO_Keep, false, CF_Always, SO_Keep, SO_Keep, SO_Keep, 0xFF, 0xFF >, FDepthStencilStateRHIRef, FRHIDepthStencilState * >
Inheritance Hierarchy
- TStaticStateRHI → TStaticDepthStencilState
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FDepthStencilStateRHIRef CreateRHI() |
RHIStaticStates.h |