From 9b638ea4701c612ec94dd4f8284f892080b752dc 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 a88559c0..d1f0d681 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -440,6 +440,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