module CrShader::Archetypes

Extended Modules

Defined in:

crshader/parser/archetypes.cr

Constant Summary

DECLARATION_CALLS = Set {"shader_type", "render_mode", "setup_gdshader", "require", "group", "uniform_group", "subgroup", "uniform_subgroup", "generate_node", "node_generator", "export_node", "uniform", "property", "export", "instance_uniform", "global_uniform", "sampler", "record", "constant_decl", "const", "feature", "shader_trait", "use_trait", "gradient", "curve", "varying", "flat_varying", "smooth_varying", "include", "gd_include", "define", "undefine", "undef", "pragma", "default_precision", "precision"}
STAGE_BLOCK_CALLS = Set {"vertex", "fragment", "light", "start", "process", "collide", "sky", "fog", "stage"}

Instance Method Summary

Instance Method Detail

def archetype_call?(name : String) : Bool #

def process(call : Crystal::Call, parser : DslParser) : Void #