class CrShader::NodeGenerator

Overview

============================================================================= NodeGenerator - DSL-Driven Godot 4 Node & CompositorEffect Class Synthesizer

Analyzes any .crshader uniform declarations and emits a complete, typed Crystal Godot class (MeshInstance3D, CanvasLayer, CompositorEffect, or Node3D) with @[Export] properties, harvested doc comments, ranges, enums, ColorPalette support, and live parameter forwarding (including std430/std140 GPU packing for CompositorEffect).

Defined in:

crshader/generator/node_generator.cr

Constant Summary

INTERNAL_COMPOSITOR_SAMPLERS = Set {"depth_texture", "normal_roughness_texture"}

Class Method Summary

Class Method Detail

def self.generate(program : ShaderProgram, node_type : NodeType, class_name : String, shader_path : String = "", raw_source : String | Nil = nil) : String #

def self.generate_from_file(file_path : String, node_type : NodeType, class_name : String) : String #

def self.generate_from_source(source : String, node_type : NodeType, class_name : String, shader_path : String = "") : String #