MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / StartLine

Method StartLine

IntelPresentMon/Core/source/gfx/impl/FastRenderer.cpp:387–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 void FastRenderer::StartLine(Vec2 pt, Color c)
388 {
389#ifdef _DEBUG
390 if (!activeBatch)
391 {
392 pmlog_warn("Batch not open");
393 }
394 if (chainSize)
395 {
396 pmlog_warn("Chain not closed");
397 }
398 if (activeBatch->topology != D3D11_PRIMITIVE_TOPOLOGY_LINELIST)
399 {
400 pmlog_error("Not line topology");
401 throw Except<GraphicsException>();
402 }
403#endif
404 chainColor = c;
405 chainSize = 1;
406 WriteIndex(nVertices);
407 WriteVertex(pt);
408 }
409
410 void FastRenderer::AddVertex(Vec2 pt)
411 {

Callers 1

FastLineStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected