| 105 | } |
| 106 | |
| 107 | DepthStencilStateDesc 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 | |
| 123 | BlendStateDesc HnRenderPassState::GetBlendState() const |
| 124 | { |
nothing calls this directly
no test coverage detected