Remove hardcoded version numbers from vulkan layer json, set in build

* In CMake this is easy as we're already passing it through sed, but
  in msbuild it's a little more complex as we need to write a little
  in-line C# code to read out the version number and replace the
* We also update the JSON generation for layer registration on linux.
This commit is contained in:
baldurk
2017-04-28 18:36:55 +01:00
parent 8580b7b2c7
commit 58050e89ef
4 changed files with 63 additions and 10 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
"type": "GLOBAL",
"library_path": ".\\renderdoc.dll",
"api_version": "1.0.0",
"implementation_version": "34",
"implementation_version": "[MINOR]",
"description": "Debugging capture layer for RenderDoc",
"functions": {
"vkGetInstanceProcAddr": "VK_LAYER_RENDERDOC_CaptureGetInstanceProcAddr",
@@ -28,7 +28,7 @@
"ENABLE_VULKAN_RENDERDOC_CAPTURE": "1"
},
"disable_environment": {
"DISABLE_VULKAN_RENDERDOC_CAPTURE_0_34": "1"
"DISABLE_VULKAN_RENDERDOC_CAPTURE_[MAJOR]_[MINOR]": "1"
}
}
}