class CrShader::VisualInspectorExtension

Overview

============================================================================= VisualInspectorExtension - One-Line inspect(var) Visual Shader Debugger

Transforms inspect(expr) and inspect(:label, expr) probes in fragment and process_pixel (main) into live selectable debug_view (hint_enum) visualizations with negative/HDR/NaN-Inf heatmaps. Completely stripped with zero uniform or ALU cost when #strip_debug_inspects (--release) is enabled.

Defined in:

crshader/extensions/visual_inspector_extension.cr

Constructors

Instance Method Summary

Instance methods inherited from class CrShader::Extension

handle_directive(directive_name : String, call : Crystal::Call, parser : DslParser) : Bool handle_directive, name : String name, transform_program(program : ShaderProgram) : Nil transform_program, validate(program : ShaderProgram, context : Validator::ValidationContext) : Nil validate

Constructor Detail

def self.new(strip_debug_inspects : Bool = false) #

Instance Method Detail

def name : String #

def strip_debug_inspects : Bool #

def strip_debug_inspects=(strip_debug_inspects : Bool) #

def transform_program(program : ShaderProgram) : Nil #
Description copied from class CrShader::Extension

AST transformation pass executed before semantic validation and code generation.