Changing a shader within GAPID will change the result for all draw calls, allowing you to iterate on the look and feel of your application within GAPID. In the future, this will also allow you to see how editing shaders affects performance.
- First, find the appropriate shader in the Shader pane.
- Edit the text of your shader.
- Click “Push Changes” and wait for the replay to finish processing the results.
Notes for Vulkan
The shaders will be presented as the disassembled SPIR-V module that was loaded. This can be edited in place, or a new disassembled SPIR-V module can be inserted in it’s place. To generate the disassembly SPIRV-Tools can be used to disassemble any SPIR-V module.
If your shader fails to compile, your replay may not operate correctly and you may get an empty framebuffer. To see if you have introduced any compile errors, refer to the Report pane and fix any issues that show up.