From 4693d7f4c155d081184c6f89fa5d628b493a02ec Mon Sep 17 00:00:00 2001 From: Sergii Liebodkin Date: Thu, 4 Jul 2024 14:54:14 +0300 Subject: [PATCH] examples: fix surface refresh approuchfor webgpu Move surface refresh approach from engine side to user size. --- examples/Example.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/Example.h b/examples/Example.h index 62feef12..342a16e1 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -436,6 +436,11 @@ struct WgWindow : Window //Set the canvas target and draw on it. verify(canvas->target(instance, surface, width, height)); } + + void refresh() override + { + wgpuSurfacePresent(surface); + } }; #else