examples: fix surface refresh approuchfor webgpu

Move surface refresh approach from engine side to user size.
This commit is contained in:
Sergii Liebodkin 2024-07-04 14:54:14 +03:00 committed by Hermet Park
parent e27ce23d4b
commit 9b638ea470

View file

@ -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