TStaticDepthStencilState

A static RHI stencil state resource.

Windows
MacOS
Linux

Inheritance Hierarchy

TStaticStateRHI

TStaticDepthStencilState

References

Module

RHI

Header

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

Include

#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< bEnableDepthWrite, DepthTest, bEnableFrontFaceStencil, FrontFaceStencilTest, FrontFaceStencilFailStencilOp, FrontFaceDepthFailStencilOp, FrontFacePassStencilOp, bEnableBackFaceStencil, BackFaceStencilTest, BackFaceStencilFailStencilOp, BackFaceDepthFailStencilOp, BackFacePassStencilOp, StencilReadMask, StencilWriteMask >, FDepthStencilStateRHIRef, FRHIDepthStencilState * >

Remarks

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.

Functions

Name Description

Public function Static

FDepthStenci...

 

CreateRHI()

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