MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / drawIndexedIndirect

Method drawIndexedIndirect

Source/Falcor/Core/API/RenderContext.cpp:510–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void RenderContext::drawIndexedIndirect(
511 GraphicsState* pState,
512 ProgramVars* pVars,
513 uint32_t maxCommandCount,
514 const Buffer* pArgBuffer,
515 uint64_t argBufferOffset,
516 const Buffer* pCountBuffer,
517 uint64_t countBufferOffset
518)
519{
520 resourceBarrier(pArgBuffer, Resource::State::IndirectArg);
521 auto encoder = drawCallCommon(pState, pVars);
522 FALCOR_GFX_CALL(encoder->drawIndexedIndirect(
523 maxCommandCount,
524 pArgBuffer->getGfxBufferResource(),
525 argBufferOffset,
526 pCountBuffer ? pCountBuffer->getGfxBufferResource() : nullptr,
527 countBufferOffset
528 ));
529 mCommandsPending = true;
530}
531
532void RenderContext::raytrace(Program* pProgram, RtProgramVars* pVars, uint32_t width, uint32_t height, uint32_t depth)
533{

Callers 1

rasterizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected