visual_debugger
visual_debugger copied to clipboard
Boolean visualization
Expressions like select and assert operate on booleans. We can come up with a special visualization mode where false is shown as red, and true is shown as green (or black and white), like RenderDoc does.
The tool currently will evaluate true to 255 and false to 0 - generally the true pixels will be white and false will be black unless the select clause evaluates based on a specific color channel (i.e. if the original expression was select(c==0, [true], [false]), the true pixels will be red and the false will be black).