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

Method Render

Components/src/EnvMapRenderer.cpp:248–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void 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

Callers

nothing calls this directly

Calls 2

SetPipelineStateMethod · 0.80
CommitShaderResourcesMethod · 0.80

Tested by

no test coverage detected