Function render

Synopsis

#include <Source/Falcor/Utils/UI/DebugDrawer.h>

void render(RenderContext *pContext, GraphicsState *pState, GraphicsVars *pVars, Camera *pCamera)

Description

Renders the contents of the debug drawer

Source

Lines 185-193 in Source/Falcor/Utils/UI/DebugDrawer.cpp. Line 77 in Source/Falcor/Utils/UI/DebugDrawer.h.

void DebugDrawer::render(RenderContext* pContext, GraphicsState* pState, GraphicsVars* pVars, Camera *pCamera)
{
    ParameterBlock* pCB = pVars->getParameterBlock("InternalPerFrameCB").get();
    if (pCB != nullptr) pCamera->setShaderData(pCB, 0);
    uploadBuffer();
    pState->setVao(mpVao);
    pContext->draw(pState, pVars, (uint32_t)mVertexData.size(), 0);
}





Add Discussion as Guest

Log in to DocsForge