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 GitHub
parent e7e6839571
commit 4693d7f4c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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