From 9cdc42aaeddb72daa01f21b9530c317f0d0d9cdf Mon Sep 17 00:00:00 2001 From: Harrand Date: Sun, 20 Oct 2024 15:30:04 +0100 Subject: [PATCH] [test] gpu_compute_renderer_test now actually submits (no useful) compute work --- test/tz/gpu_compute_renderer_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/tz/gpu_compute_renderer_test.cpp b/test/tz/gpu_compute_renderer_test.cpp index b298c26bdb..cd6d36330c 100644 --- a/test/tz/gpu_compute_renderer_test.cpp +++ b/test/tz/gpu_compute_renderer_test.cpp @@ -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() @@ -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();