metal: implement vsync toggle on macOS

This commit is contained in:
Alex Szpakowski
2021-03-27 22:40:29 -03:00
parent 1e85e1b414
commit 0d94530374
3 changed files with 64 additions and 8 deletions
+6
View File
@@ -49,6 +49,12 @@ std::string checkDropEvents();
**/
void requestAttention(bool continuous);
/**
* Sets whether vsync is enabled for the given CAMetalLayer
**/
void setMetalLayerVSync(void *metallayer, bool vsync);
bool getMetalLayerVSync(void *metallayer);
} // macos
} // love