mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-12 16:55:49 +00:00
Rename Shutdown to RemoveHooks in in-application API. Version is 1.4.1
* This is a binary and source backwards compatible change.
This commit is contained in:
@@ -51,9 +51,9 @@ static void MaskOverlayBits(uint32_t And, uint32_t Or)
|
||||
RenderDoc::Inst().MaskOverlayBits(And, Or);
|
||||
}
|
||||
|
||||
static void Shutdown()
|
||||
static void RemoveHooks()
|
||||
{
|
||||
RenderDoc::Inst().Shutdown();
|
||||
RenderDoc::Inst().RemoveHooks();
|
||||
LibraryHooks::RemoveHooks();
|
||||
}
|
||||
|
||||
@@ -245,22 +245,22 @@ int RENDERDOC_CC SetCaptureOptionF32(RENDERDOC_CaptureOption opt, float val);
|
||||
uint32_t RENDERDOC_CC GetCaptureOptionU32(RENDERDOC_CaptureOption opt);
|
||||
float RENDERDOC_CC GetCaptureOptionF32(RENDERDOC_CaptureOption opt);
|
||||
|
||||
void RENDERDOC_CC GetAPIVersion_1_4_0(int *major, int *minor, int *patch)
|
||||
void RENDERDOC_CC GetAPIVersion_1_4_1(int *major, int *minor, int *patch)
|
||||
{
|
||||
if(major)
|
||||
*major = 1;
|
||||
if(minor)
|
||||
*minor = 4;
|
||||
if(patch)
|
||||
*patch = 0;
|
||||
*patch = 1;
|
||||
}
|
||||
|
||||
RENDERDOC_API_1_4_0 api_1_4_0;
|
||||
void Init_1_4_0()
|
||||
RENDERDOC_API_1_4_1 api_1_4_1;
|
||||
void Init_1_4_1()
|
||||
{
|
||||
RENDERDOC_API_1_4_0 &api = api_1_4_0;
|
||||
RENDERDOC_API_1_4_1 &api = api_1_4_1;
|
||||
|
||||
api.GetAPIVersion = &GetAPIVersion_1_4_0;
|
||||
api.GetAPIVersion = &GetAPIVersion_1_4_1;
|
||||
|
||||
api.SetCaptureOptionU32 = &SetCaptureOptionU32;
|
||||
api.SetCaptureOptionF32 = &SetCaptureOptionF32;
|
||||
@@ -274,7 +274,7 @@ void Init_1_4_0()
|
||||
api.GetOverlayBits = &GetOverlayBits;
|
||||
api.MaskOverlayBits = &MaskOverlayBits;
|
||||
|
||||
api.Shutdown = &Shutdown;
|
||||
api.RemoveHooks = &RemoveHooks;
|
||||
api.UnloadCrashHandler = &UnloadCrashHandler;
|
||||
|
||||
api.SetCaptureFilePathTemplate = &SetCaptureFilePathTemplate;
|
||||
@@ -325,15 +325,16 @@ extern "C" RENDERDOC_API int RENDERDOC_CC RENDERDOC_GetAPI(RENDERDOC_Version ver
|
||||
ret = 1; \
|
||||
}
|
||||
|
||||
API_VERSION_HANDLE(1_0_0, 1_4_0);
|
||||
API_VERSION_HANDLE(1_0_1, 1_4_0);
|
||||
API_VERSION_HANDLE(1_0_2, 1_4_0);
|
||||
API_VERSION_HANDLE(1_1_0, 1_4_0);
|
||||
API_VERSION_HANDLE(1_1_1, 1_4_0);
|
||||
API_VERSION_HANDLE(1_1_2, 1_4_0);
|
||||
API_VERSION_HANDLE(1_2_0, 1_4_0);
|
||||
API_VERSION_HANDLE(1_3_0, 1_4_0);
|
||||
API_VERSION_HANDLE(1_4_0, 1_4_0);
|
||||
API_VERSION_HANDLE(1_0_0, 1_4_1);
|
||||
API_VERSION_HANDLE(1_0_1, 1_4_1);
|
||||
API_VERSION_HANDLE(1_0_2, 1_4_1);
|
||||
API_VERSION_HANDLE(1_1_0, 1_4_1);
|
||||
API_VERSION_HANDLE(1_1_1, 1_4_1);
|
||||
API_VERSION_HANDLE(1_1_2, 1_4_1);
|
||||
API_VERSION_HANDLE(1_2_0, 1_4_1);
|
||||
API_VERSION_HANDLE(1_3_0, 1_4_1);
|
||||
API_VERSION_HANDLE(1_4_0, 1_4_1);
|
||||
API_VERSION_HANDLE(1_4_1, 1_4_1);
|
||||
|
||||
#undef API_VERSION_HANDLE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user