Commit Graph

2088 Commits

Author SHA1 Message Date
baldurk 304367b028 Change include paths from <vulkan/...> to just <...>
* This is inconsistent between windows and linux - on linux it's vulkan/
  but on windows the files are just in the Include folder.
* For final ship, we may well in-line the header in our own source tree
  as we do with GL, since it might even be custom-built.
2016-02-07 18:42:44 +01:00
baldurk a214e9bdec Remove dynamic state objects 2016-02-07 18:42:43 +01:00
baldurk a05faed555 Remove VkAttachmentView 2016-02-07 18:42:42 +01:00
baldurk 070db79410 Remove VkAttachmentBindInfo 2016-02-07 18:42:41 +01:00
baldurk f67ad0e14a Change include folder to $VK_SDK_PATH/include, #include by <vulkan/...> 2016-02-07 18:42:40 +01:00
baldurk bfde61a7aa Handled duplicated semaphore objects in a hacky way. 2016-02-07 18:42:39 +01:00
baldurk ff6b5faa70 Linux compile fixes 2016-02-07 18:42:38 +01:00
baldurk ac44765bd7 Implement highlight box rendering 2016-02-07 18:42:37 +01:00
baldurk fe99dcdbe7 Implement vkCmdUpdateBuffer wrapping 2016-02-07 18:42:36 +01:00
baldurk 40bb7ce0d9 Assign a random pipeline UUID so that applications provide SPIR-V 2016-02-07 18:42:36 +01:00
baldurk 76a50c2469 Add simple hacked-in environment variable settings for win32 vk layers 2016-02-07 18:42:35 +01:00
baldurk 31e47925b3 Need to completely disable GL hook if dll isn't loaded as layer 2016-02-07 18:42:34 +01:00
baldurk 27aec9b277 Add thread-local temp memory pool for storing temp unwrapped structs
* Avoids needing to do lots of small allocations
2016-02-07 18:42:33 +01:00
baldurk 36eaa937d0 Add note to lock memory etc info (if it's not moved inside objects) 2016-02-07 18:42:32 +01:00
baldurk bfe7a41696 De-race condition descriptor and memory releasing 2016-02-07 18:42:31 +01:00
baldurk a75ada47ae Fix condition for adding events to m_Events so none get lost.
* This whole bit of code needs a rethink.
2016-02-07 18:42:30 +01:00
baldurk a595df5cf7 Don't mark ref'd descriptor sets that are just updated. 2016-02-07 18:42:29 +01:00
baldurk 448df65773 Protect against framebuffer being unset when not in valid pipeline state 2016-02-07 18:42:29 +01:00
baldurk 495632034f Just copy events, don't bother filtering by context 2016-02-07 18:42:28 +01:00
baldurk ed09035b26 Be very careful about order of object destruction to avoid races 2016-02-07 18:42:27 +01:00
baldurk 8bc874d973 Don't mark any resource dirty while capturing a frame 2016-02-07 18:42:26 +01:00
baldurk 7107fd5825 Remove a redundant debug print statement 2016-02-07 18:42:25 +01:00
baldurk e47b467b31 Lock around PrepareInitialContents 2016-02-07 18:42:24 +01:00
baldurk 8ee604041a Remove locks from vulkan entry points 2016-02-07 18:42:23 +01:00
baldurk 96b2368381 If LoadLibrary is called with flags == 0 and module's loaded, do nothing
* In this case we don't have to rehook anything. Only if a new module
  is loaded should we do any work.
2016-02-07 18:42:22 +01:00
baldurk 78fc832722 Don't copy debug string if there's nothing there 2016-02-07 18:42:22 +01:00
baldurk f930d6f7eb Take out debug text in release builds 2016-02-07 18:42:21 +01:00
baldurk 1167dc641b Use main serialiser properly instead of threaded 2016-02-07 18:42:20 +01:00
baldurk 360d845ce0 Add TLS handling to os specific layer 2016-02-07 18:42:19 +01:00
baldurk 8b595f5f43 Move serialiser to locally cached variable per-function invocation 2016-02-07 18:42:18 +01:00
baldurk b1cf7d98db Change serialisation to use GetSerialiser() instead of m_pSerialiser 2016-02-07 18:42:17 +01:00
baldurk 65011ebcfa Pass scoped context name/type directly, don't combine into temp string 2016-02-07 18:42:16 +01:00
baldurk 607b8d48c9 Remove 'debug' serialiser that synchronously flushes out debug text 2016-02-07 18:42:15 +01:00
baldurk 25615d2e34 Remove redundant serialiser parameter 2016-02-07 18:42:14 +01:00
baldurk 58ac9dbe95 Compile fixes for linux 2016-02-07 18:42:13 +01:00
baldurk 48248c460c Update qrenderdoc to handle vulkan pipeline state 2016-02-07 18:42:13 +01:00
baldurk 8b23082228 Fix missing serialisation of VkBufferImageCopy members 2016-02-07 18:42:12 +01:00
baldurk 238efe31f1 List resources for texture viewer to pick up 2016-02-07 18:42:11 +01:00
baldurk 33fd37282b Clear resource previews to black while thumbnails are still disabled 2016-02-07 18:42:10 +01:00
baldurk 233aa3d14b Fix to actually fetch memory id if it's available 2016-02-07 18:42:09 +01:00
baldurk f660bdd807 For now, blat resources out into a list by string
* This will do until I figure out how to layout the pipeline viewer
  for resources.
2016-02-07 18:42:08 +01:00
baldurk 5bb66392b0 Set num subresources correctly for textures 2016-02-07 18:42:07 +01:00
baldurk a25d07cf59 Display cbuffer contents within vulkan pipe viewer
* For now, we just assume that cbuffers are tightly packed according to
  D3D11 rules (matrices, structs, float3/4 are all float4 aligned), and
  once final SPIR-V is generated everything should have explicit
  offsets, strides, and sizes
2016-02-07 18:42:06 +01:00
baldurk 0a0e948e40 Add shader word highlighting for SPIR-V 2016-02-07 18:42:06 +01:00
baldurk f83ce77e1c Remove debug code 2016-02-07 18:42:05 +01:00
baldurk 840d134262 Disassemble bitcast/convert operations 2016-02-07 18:42:04 +01:00
baldurk 15f928f7fe Fix typo 2016-02-07 18:42:03 +01:00
baldurk 7436e83f43 Add custom printf formatter flag to always print at least .0 on floats 2016-02-07 18:42:02 +01:00
baldurk e9ad2418b4 Ensure inlining doesn't rearrange across modifications, merge store/load 2016-02-07 18:42:01 +01:00
baldurk 458ad0dd4c Tweak inlining for composite extract/construct 2016-02-07 18:42:00 +01:00