redhog / InfiniteGlass

Window manager with infinite desktop, infinite zoom and infinite window resolution
https://redhog.github.io/InfiniteGlass/
GNU General Public License v3.0
35 stars 5 forks source link

Debugging Shaders #79

Open IanTrudel opened 4 years ago

IanTrudel commented 4 years ago

These are tools to debug shaders:

https://github.com/dfranx/SHADERed

https://github.com/dfranx/SPIRV-VM

https://www.reddit.com/r/vulkan/comments/fwkz2t/spirvvm_a_spirv_virtual_machine/fmp6xo4

A SPIR-V VM makes it possible to run your shader on a CPU. This way people can step line by line through the shader and get variable values. Essentially, a SPIR-V virtual machine makes shader debuggers possible.

https://www.reddit.com/r/vulkan/comments/fwkz2t/spirvvm_a_spirv_virtual_machine/

IanTrudel commented 4 years ago

From @redhog

Yep, but if the loading worked, we could build an app that opens two windows and lets you write shader code in one, and renders the other using that shader code, changed in real time as you edit...

Could also let you edit properties of the render window as a property list...