mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Add simple API version fetch function.
* Plugins/apps that build against the header (and so get the RENDERDOC_API_VERSION macro) can call this to verify that they're running against compatible API functions. If the versions don't match, the app should immediately quit.
This commit is contained in:
1 parent
546a1fbb31
commit
d04aba48f7
2 files changed
+11
No files matched your search
@@ -84,6 +84,12 @@ extern "C" RENDERDOC_API void RENDERDOC_CC Maths_CameraFPSLook(const FloatVector
|
||||
right->z = r.z;
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API
|
||||
int RENDERDOC_CC RENDERDOC_GetAPIVersion()
|
||||
{
|
||||
return RENDERDOC_API_VERSION;
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API
|
||||
void RENDERDOC_CC RENDERDOC_LogText(const wchar_t *text)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user