Capture renderer draw mesh inputs
This commit is contained in:
@@ -878,7 +878,7 @@ void recording_renderer_records_valid_command_sequences(pp::tests::Harness& h)
|
||||
.render_target = true,
|
||||
});
|
||||
RecordingShaderProgram shader("recorded-shader");
|
||||
RecordingMesh mesh(MeshDesc { .vertex_count = 3, .index_count = 0, .topology = PrimitiveTopology::triangles });
|
||||
RecordingMesh mesh(MeshDesc { .vertex_count = 3, .index_count = 3, .topology = PrimitiveTopology::triangles });
|
||||
|
||||
PP_EXPECT(h, device.backend_name() == std::string_view("recording"));
|
||||
device.trace()->marker("renderer", "frame");
|
||||
@@ -952,7 +952,11 @@ void recording_renderer_records_valid_command_sequences(pp::tests::Harness& h)
|
||||
PP_EXPECT(h, recorded_render_command_kind_name(commands[8].kind) == std::string_view("bind_sampler"));
|
||||
PP_EXPECT(h, commands[9].kind == RecordedRenderCommandKind::bind_mesh);
|
||||
PP_EXPECT(h, commands[9].mesh_desc.vertex_count == 3U);
|
||||
PP_EXPECT(h, commands[9].mesh_desc.index_count == 3U);
|
||||
PP_EXPECT(h, commands[10].kind == RecordedRenderCommandKind::draw);
|
||||
PP_EXPECT(h, commands[10].mesh_desc.vertex_count == 3U);
|
||||
PP_EXPECT(h, commands[10].mesh_desc.index_count == 3U);
|
||||
PP_EXPECT(h, commands[10].mesh_desc.topology == PrimitiveTopology::triangles);
|
||||
PP_EXPECT(h, commands[11].kind == RecordedRenderCommandKind::end_render_pass);
|
||||
PP_EXPECT(h, recorded_render_command_kind_name(commands[10].kind) == std::string_view("draw"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user