KhronosGroup / SPIRV-Visualizer

Client side only Javascript to visualize a SPIR-V Module binary
https://www.khronos.org/spir/visualizer/
Apache License 2.0
31 stars 5 forks source link

Add option to see index of word/operands #20

Closed spencer-lunarg closed 9 months ago

spencer-lunarg commented 9 months ago

when using SPIR-V it is common you need to index into a certain operand or word of the instruction it would be nice have some small value over the dissambly to see that

example

  2                  1   3   4
%20 = OpAccessChain %19 %14 %18
spencer-lunarg commented 9 months ago

https://github.com/KhronosGroup/SPIRV-Visualizer/commit/e0e6ed370b31c76ac6d6f87876c9bc7a1eb6724b

instead of making it in the left pane, added it to the tool tip pane which provides a much simpler solution