MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / GetDepthStencilState

Method GetDepthStencilState

Hydrogent/src/HnRenderPassState.cpp:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107DepthStencilStateDesc HnRenderPassState::GetDepthStencilState() const
108{
109 DepthStencilStateDesc DSSState;
110 DSSState.DepthEnable = _depthTestEnabled;
111 DSSState.DepthFunc = HdCompareFunctionToComparisonFunction(_depthFunc);
112 DSSState.StencilEnable = _stencilEnabled;
113 DSSState.StencilReadMask = static_cast<Uint8>(_stencilMask);
114 DSSState.StencilWriteMask = static_cast<Uint8>(_stencilMask);
115 DSSState.FrontFace.StencilFunc = HdCompareFunctionToComparisonFunction(_stencilFunc);
116 DSSState.FrontFace.StencilFailOp = HdStencilOpToStencilOp(_stencilFailOp);
117 DSSState.FrontFace.StencilPassOp = HdStencilOpToStencilOp(_stencilZPassOp);
118 DSSState.FrontFace.StencilFailOp = HdStencilOpToStencilOp(_stencilZFailOp);
119
120 return DSSState;
121}
122
123BlendStateDesc HnRenderPassState::GetBlendState() const
124{

Callers

nothing calls this directly

Tested by

no test coverage detected