mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-24 08:21:35 +00:00
Change verify map writes capture option to verify buffer access.
* This option will now toggle on the behaviour to fill undefined buffer contents with a marker value, both if they're created without data (it will be zero filled instead) or mapped with discard (it will keep the old contents instead). * There were too many hard to find problems or misconceptions about the buffer filling for it to be useful. Now it will be opt-in instead.
This commit is contained in:
@@ -239,22 +239,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_2_0(int *major, int *minor, int *patch)
|
||||
void RENDERDOC_CC GetAPIVersion_1_3_0(int *major, int *minor, int *patch)
|
||||
{
|
||||
if(major)
|
||||
*major = 1;
|
||||
if(minor)
|
||||
*minor = 2;
|
||||
*minor = 3;
|
||||
if(patch)
|
||||
*patch = 0;
|
||||
}
|
||||
|
||||
RENDERDOC_API_1_2_0 api_1_2_0;
|
||||
void Init_1_2_0()
|
||||
RENDERDOC_API_1_3_0 api_1_3_0;
|
||||
void Init_1_3_0()
|
||||
{
|
||||
RENDERDOC_API_1_2_0 &api = api_1_2_0;
|
||||
RENDERDOC_API_1_3_0 &api = api_1_3_0;
|
||||
|
||||
api.GetAPIVersion = &GetAPIVersion_1_2_0;
|
||||
api.GetAPIVersion = &GetAPIVersion_1_3_0;
|
||||
|
||||
api.SetCaptureOptionU32 = &SetCaptureOptionU32;
|
||||
api.SetCaptureOptionF32 = &SetCaptureOptionF32;
|
||||
@@ -317,13 +317,14 @@ extern "C" RENDERDOC_API int RENDERDOC_CC RENDERDOC_GetAPI(RENDERDOC_Version ver
|
||||
ret = 1; \
|
||||
}
|
||||
|
||||
API_VERSION_HANDLE(1_0_0, 1_2_0);
|
||||
API_VERSION_HANDLE(1_0_1, 1_2_0);
|
||||
API_VERSION_HANDLE(1_0_2, 1_2_0);
|
||||
API_VERSION_HANDLE(1_1_0, 1_2_0);
|
||||
API_VERSION_HANDLE(1_1_1, 1_2_0);
|
||||
API_VERSION_HANDLE(1_1_2, 1_2_0);
|
||||
API_VERSION_HANDLE(1_2_0, 1_2_0);
|
||||
API_VERSION_HANDLE(1_0_0, 1_3_0);
|
||||
API_VERSION_HANDLE(1_0_1, 1_3_0);
|
||||
API_VERSION_HANDLE(1_0_2, 1_3_0);
|
||||
API_VERSION_HANDLE(1_1_0, 1_3_0);
|
||||
API_VERSION_HANDLE(1_1_1, 1_3_0);
|
||||
API_VERSION_HANDLE(1_1_2, 1_3_0);
|
||||
API_VERSION_HANDLE(1_2_0, 1_3_0);
|
||||
API_VERSION_HANDLE(1_3_0, 1_3_0);
|
||||
|
||||
#undef API_VERSION_HANDLE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user