mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-21 22:16:38 +00:00
Rename 'create debug device' capture option to 'API validation'
* More appropriate for non-D3D11 APIs and will cause less confusion.
This commit is contained in:
@@ -157,19 +157,19 @@ 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_0_1(int *major, int *minor, int *patch)
|
||||
void RENDERDOC_CC GetAPIVersion_1_0_2(int *major, int *minor, int *patch)
|
||||
{
|
||||
if(major) *major = 1;
|
||||
if(minor) *minor = 0;
|
||||
if(patch) *patch = 1;
|
||||
if(patch) *patch = 2;
|
||||
}
|
||||
|
||||
RENDERDOC_API_1_0_1 api_1_0_1;
|
||||
void Init_1_0_1()
|
||||
RENDERDOC_API_1_0_2 api_1_0_2;
|
||||
void Init_1_0_2()
|
||||
{
|
||||
RENDERDOC_API_1_0_1 &api = api_1_0_1;
|
||||
RENDERDOC_API_1_0_2 &api = api_1_0_2;
|
||||
|
||||
api.GetAPIVersion = &GetAPIVersion_1_0_1;
|
||||
api.GetAPIVersion = &GetAPIVersion_1_0_2;
|
||||
|
||||
api.SetCaptureOptionU32 = &SetCaptureOptionU32;
|
||||
api.SetCaptureOptionF32 = &SetCaptureOptionF32;
|
||||
@@ -224,8 +224,9 @@ extern "C" RENDERDOC_API int RENDERDOC_CC RENDERDOC_GetAPI(RENDERDOC_Version ver
|
||||
ret = 1; \
|
||||
}
|
||||
|
||||
API_VERSION_HANDLE(1_0_0, 1_0_1);
|
||||
API_VERSION_HANDLE(1_0_1, 1_0_1);
|
||||
API_VERSION_HANDLE(1_0_0, 1_0_2);
|
||||
API_VERSION_HANDLE(1_0_1, 1_0_2);
|
||||
API_VERSION_HANDLE(1_0_2, 1_0_2);
|
||||
|
||||
#undef API_VERSION_HANDLE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user