Commit Graph

2050 Commits

Author SHA1 Message Date
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
baldurk a91a784a8d Add other texture sample instructions 2016-02-07 18:41:59 +01:00
baldurk 1c6f8107f7 Typo fix 2016-02-07 18:41:59 +01:00
baldurk fc0d2b9d66 Implement OpCompositeConstruct 2016-02-07 18:41:58 +01:00
baldurk 4e13c6c38e Fix store/copy not printing destination properly 2016-02-07 18:41:57 +01:00
baldurk 306cf7fcc0 Tweak scalar/vector constant display to be a little nicer 2016-02-07 18:41:56 +01:00
baldurk 9fbe539f0b A few tweaks to inlining complexity and store/loads 2016-02-07 18:41:55 +01:00
baldurk aa93f523ca Fix declarations of pointers to arrays 2016-02-07 18:41:54 +01:00
baldurk 8246bdb61e Disassemble OpSelect 2016-02-07 18:41:53 +01:00
baldurk b478e40447 Implement some more math operations 2016-02-07 18:41:53 +01:00
baldurk 327f57dffd Correctly apply member decorations, give globals name fallbacks 2016-02-07 18:41:52 +01:00
baldurk 3e8d4edf6d Fix crash if doing AccessChain or CompositeExtract on unknown id 2016-02-07 18:41:51 +01:00
baldurk 2bf4db2c1c Add FMod and ISub/FSub 2016-02-07 18:41:50 +01:00
baldurk 59527af130 Display SPIR-V disassembly 2016-02-07 18:41:49 +01:00
baldurk a021284d25 Shorten some string representations of states for pipeline view 2016-02-07 18:41:48 +01:00
baldurk 1f9773e26d Set image type properly 2016-02-07 18:41:48 +01:00
baldurk 0007b9d63f Use shader reflection variable names if no custom image names are set 2016-02-07 18:41:47 +01:00
baldurk 583ca8b78e Set whether a bind id referenced & get better names for constant blocks 2016-02-07 18:41:46 +01:00
baldurk 8832573dbb Expose SPIR-V reflection data to UI 2016-02-07 18:41:45 +01:00
baldurk c8bba412d2 Move SPVModule into header and fill out ShaderReflection from SPIR-V 2016-02-07 18:41:44 +01:00
baldurk a201d5a91b Add basic support for texture sampling 2016-02-07 18:41:43 +01:00
baldurk a2aa479c22 print source language and extensions 2016-02-07 18:41:42 +01:00
baldurk 0d0e13a0f9 Disassemble OpCompositeInsert, merge load-hit-stores with OpStore 2016-02-07 18:41:41 +01:00
baldurk c6a9a5e1e6 For now, take away Load() and Store() text, and inline scalar constants 2016-02-07 18:41:41 +01:00
baldurk 6642685069 Add brackets around nested math operations for precedence clarity 2016-02-07 18:41:40 +01:00
baldurk 2a230ecc00 Add OpCompositeExtract disassembly 2016-02-07 18:41:39 +01:00
baldurk 66ddf12ca6 Print decorations with variable declarations 2016-02-07 18:41:38 +01:00
baldurk bae0141090 Change SPIR-V disassembly to handle unrecognised ops without crashing
* For the moment, this means some opcode we haven't implemented yet, but
  in future it could be opcodes from an extension or entirely custom
  opcodes.
2016-02-07 18:41:37 +01:00
baldurk 410ada541a Pass vulkan shader modules into DisassembleSPIRV 2016-02-07 18:41:36 +01:00
baldurk 1ae521823c Only print unimplemented messages once each, instead of spamming 2016-02-07 18:41:35 +01:00
baldurk 8eddd387d7 Add vulkan pipeline state viewer based on D3D11 viewer 2016-02-07 18:41:35 +01:00
baldurk 7aaaa99d84 Win32 compile fix 2016-02-07 18:41:34 +01:00
baldurk 0ba78bdc18 Implement GetBufferData for checking mesh data 2016-02-07 18:41:33 +01:00
baldurk c8ebfb0efd Remove thumbnails again - they seem buggy 2016-02-07 18:41:32 +01:00
baldurk 245b4cca92 Fix incorrect comparison 2016-02-07 18:41:31 +01:00
baldurk 4e113a08c7 Hack out handling of vulkan pipeline type in texture viewer 2016-02-07 18:41:30 +01:00
baldurk edac1f0bfd Pass vulkan pipeline state along to UI 2016-02-07 18:41:29 +01:00
baldurk 4ed49079d1 Re-enable thumbnails and pixel context, as multiple swap chains work now 2016-02-07 18:41:29 +01:00
baldurk 389894d4be Force-flushed persistent maps should be serialised before queue submit 2016-02-07 18:41:28 +01:00