Skip to content

Commit

Permalink
[test] gpu_compute_renderer_test now actually submits (no useful) com…
Browse files Browse the repository at this point in the history
…pute work
  • Loading branch information
harrand committed Oct 20, 2024
1 parent 06c9818 commit 9cdc42a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tz/gpu_compute_renderer_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "tz/topaz.hpp"
#include "tz/gpu/hardware.hpp"
#include "tz/gpu/pass.hpp"
#include "tz/gpu/graph.hpp"
#include ImportedShaderHeader(noop, compute)

int main()
Expand All @@ -17,6 +18,16 @@ int main()
.compute = {.kernel = {64u, 64u, 64u}},
.shader = shad
}));

tz::gpu::graph_handle graph = tz_must(tz::gpu::graph_builder{}
.add_pass(pass)
.build());

for(std::size_t i = 0; i < 64; i++)
{
tz::gpu::execute(graph);
}

tz::gpu::destroy_pass(pass);

tz::terminate();
Expand Down

0 comments on commit 9cdc42a

Please sign in to comment.