Skip to content

Commit

Permalink
Disable some slow readback code for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Jan 17, 2024
1 parent 6ca8911 commit ac5636a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/meshlet_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ struct MeshletViewerApplication : Granite::Application, Granite::EventHandler //

cmd->end_render_pass();

#if 0
if (ui.indirect_rendering)
{
cmd->barrier(VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, VK_ACCESS_2_SHADER_STORAGE_WRITE_BIT,
Expand All @@ -773,11 +774,13 @@ struct MeshletViewerApplication : Granite::Application, Granite::EventHandler //
cmd->copy_buffer(*readback, *readback_counter);
else
cmd->copy_buffer(*readback, *indirect_draws);

cmd->copy_buffer(*aabb_visibility_buffer_readback, *aabb_visibility_buffer);
cmd->barrier(VK_PIPELINE_STAGE_2_COPY_BIT, VK_ACCESS_TRANSFER_WRITE_BIT,
VK_PIPELINE_STAGE_HOST_BIT, VK_ACCESS_HOST_READ_BIT);

cmd->copy_buffer(*aabb_visibility_buffer_readback, *aabb_visibility_buffer);
}
#endif

if (readback)
{
Expand Down

0 comments on commit ac5636a

Please sign in to comment.