Skip to content

Commit a689e7a

Browse files
committed
Added InstanceDrawIndexed entry.
1 parent 89d2c19 commit a689e7a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

include/vsg/app/RecordTraversal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ namespace vsg
6565
class Instrumentation;
6666
class InstanceNode;
6767
class InstanceDraw;
68+
class InstanceDrawIndexed;
6869

6970
VSG_type_name(vsg::RecordTraversal);
7071

@@ -147,6 +148,7 @@ namespace vsg
147148
// instance nodes
148149
void apply(const InstanceNode& instanceNode);
149150
void apply(const InstanceDraw& instanceDraw);
151+
void apply(const InstanceDrawIndexed& instanceDrawIndexed);
150152

151153
// Vulkan nodes
152154
void apply(const StateGroup& object);

src/vsg/app/RecordTraversal.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,14 @@ void RecordTraversal::apply(const InstanceDraw& instanceDraw)
498498
instanceDraw.record(*(_state->_commandBuffer));
499499
}
500500

501+
void RecordTraversal::apply(const InstanceDraw& instanceDrawIndexed)
502+
{
503+
CPU_INSTRUMENTATION_L2(instrumentation);
504+
505+
_state->record();
506+
instanceDrawIndexed.record(*(_state->_commandBuffer));
507+
}
508+
501509
// Vulkan nodes
502510
void RecordTraversal::apply(const StateGroup& stateGroup)
503511
{

0 commit comments

Comments
 (0)