diff --git a/deps/ShaderTranspiler b/deps/ShaderTranspiler index 8e5a706..5358ad8 160000 --- a/deps/ShaderTranspiler +++ b/deps/ShaderTranspiler @@ -1 +1 @@ -Subproject commit 8e5a70611714e7ec7bd66a72d9ea40b5a5f0f3a8 +Subproject commit 5358ad849d91c003b5e471ba13dad0a9b4fcbdc0 diff --git a/src/WGSwapchain.cpp b/src/WGSwapchain.cpp index 3a0e081..25856c2 100644 --- a/src/WGSwapchain.cpp +++ b/src/WGSwapchain.cpp @@ -48,6 +48,10 @@ namespace RGL{ void SwapchainWG::Present(const SwapchainPresentConfig&){ wgpuSwapChainPresent(swapchain); } + + void SwapchainWG::SetVsyncMode(bool mode){ + // TODO: implement vsync for webgpu + } } #endif \ No newline at end of file diff --git a/src/WGSwapchain.hpp b/src/WGSwapchain.hpp index 96f448a..62b6393 100644 --- a/src/WGSwapchain.hpp +++ b/src/WGSwapchain.hpp @@ -22,5 +22,7 @@ namespace RGL{ std::array activeTextures; uint32_t idx = 0; + + void SetVsyncMode(bool mode) final }; }