| 246 | } |
| 247 | |
| 248 | void EnvMapRenderer::Render(IDeviceContext* pContext) |
| 249 | { |
| 250 | if (pContext == nullptr) |
| 251 | { |
| 252 | UNEXPECTED("Context must not be null"); |
| 253 | return; |
| 254 | } |
| 255 | |
| 256 | if (m_pCurrentPSO == nullptr) |
| 257 | { |
| 258 | UNEXPECTED("Current PSO is null. Did you forget to call Prepare()?"); |
| 259 | return; |
| 260 | } |
| 261 | |
| 262 | pContext->SetPipelineState(m_pCurrentPSO); |
| 263 | pContext->CommitShaderResources(m_SRB, RESOURCE_STATE_TRANSITION_MODE_VERIFY); |
| 264 | DrawAttribs drawAttribs{3, DRAW_FLAG_VERIFY_ALL}; |
| 265 | pContext->Draw(drawAttribs); |
| 266 | } |
| 267 | |
| 268 | } // namespace Diligent |
nothing calls this directly
no test coverage detected