class
CrShader::VisualInspectorExtension
- CrShader::VisualInspectorExtension
- CrShader::Extension
- Reference
- Object
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.crConstructors
Instance Method Summary
- #name : String
- #strip_debug_inspects : Bool
- #strip_debug_inspects=(strip_debug_inspects : Bool)
-
#transform_program(program : ShaderProgram) : Nil
AST transformation pass executed before semantic validation and code generation.
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
Instance Method Detail
def transform_program(program : ShaderProgram) : Nil
#
Description copied from class CrShader::Extension
AST transformation pass executed before semantic validation and code generation.