class CrShader::TraitDecl

Defined in:

crshader/ast/shader_ast.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String) #

Instance Method Detail

def classes : Hash(String, ClassDecl) #

def classes=(classes : Hash(String, ClassDecl)) #

def constants : Array(ConstantDecl) #

def constants=(constants : Array(ConstantDecl)) #

def curves : Array(CurveDecl) #

def curves=(curves : Array(CurveDecl)) #

def features : Array(FeatureDecl) #

def features=(features : Array(FeatureDecl)) #

def fragment_hooks : Array(Crystal::ASTNode) #

def fragment_hooks=(fragment_hooks : Array(Crystal::ASTNode)) #

def functions : Hash(String, Crystal::Def) #

def functions=(functions : Hash(String, Crystal::Def)) #

def gradients : Array(GradientDecl) #

def gradients=(gradients : Array(GradientDecl)) #

def light_hooks : Array(Crystal::ASTNode) #

def light_hooks=(light_hooks : Array(Crystal::ASTNode)) #

def name : String #

def name=(name : String) #

def pixel_hooks : Array(TraitPixelHook) #

def pixel_hooks=(pixel_hooks : Array(TraitPixelHook)) #

def requires : Set(String) #

def requires=(requires : Set(String)) #

def structs : Hash(String, StructDecl) #

def structs=(structs : Hash(String, StructDecl)) #

def uniforms : Array(UniformDecl) #

def uniforms=(uniforms : Array(UniformDecl)) #

def varyings : Array(VaryingDecl) #

def varyings=(varyings : Array(VaryingDecl)) #

def vertex_hooks : Array(Crystal::ASTNode) #

def vertex_hooks=(vertex_hooks : Array(Crystal::ASTNode)) #