Skip to content

Commit

Permalink
WebGPU: dummy vsync impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Oct 16, 2023
1 parent a1482f9 commit 9c2fa02
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/ShaderTranspiler
4 changes: 4 additions & 0 deletions src/WGSwapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ namespace RGL{
void SwapchainWG::Present(const SwapchainPresentConfig&){
wgpuSwapChainPresent(swapchain);
}

void SwapchainWG::SetVsyncMode(bool mode){
// TODO: implement vsync for webgpu
}
}

#endif
2 changes: 2 additions & 0 deletions src/WGSwapchain.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ namespace RGL{

std::array<TextureWG,3> activeTextures;
uint32_t idx = 0;

void SetVsyncMode(bool mode) final
};
}

0 comments on commit 9c2fa02

Please sign in to comment.