class CrShader::ShaderProgram

Defined in:

crshader/ast/shader_ast.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(target : ShaderTarget = ShaderTarget::GDShader) #

Instance Method Detail

def buffers : Array(BufferDecl) #

def buffers=(buffers : Array(BufferDecl)) #

def classes : Hash(String, ClassDecl) #

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

def compositor_access_color : Bool #

def compositor_access_color=(compositor_access_color : Bool) #

def compositor_access_depth : Bool #

def compositor_access_depth=(compositor_access_depth : Bool) #

def compositor_access_normal_roughness : Bool #

def compositor_access_normal_roughness=(compositor_access_normal_roughness : Bool) #

def compositor_access_scene_data : Bool #

def compositor_access_scene_data=(compositor_access_scene_data : Bool) #

def compositor_stage : String #

def compositor_stage=(compositor_stage : String) #

def compute_layout : ComputeLayout #

def compute_layout=(compute_layout : ComputeLayout) #

def constants : Array(ConstantDecl) #

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

def coord_stage_var : String | Nil #

def coord_stage_var=(coord_stage_var : String | Nil) #

def curves : Array(CurveDecl) #

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

def default_precisions : Hash(String, String) #

def default_precisions=(default_precisions : Hash(String, String)) #

def emit_targets : Array(EmitTargetDecl) #

def emit_targets=(emit_targets : Array(EmitTargetDecl)) #

def external_constants : Hash(String, String) #

def external_constants=(external_constants : Hash(String, String)) #

def external_functions : Hash(String, String) #

def external_functions=(external_functions : Hash(String, String)) #

def external_structs : Hash(String, StructDecl) #

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

def features : Array(FeatureDecl) #

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

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

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

def gradients : Array(GradientDecl) #

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

def images : Array(ImageUniformDecl) #

def images=(images : Array(ImageUniformDecl)) #

def imported_constants : Set(String) #

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

def imported_functions : Set(String) #

Provenance & external interop tracking for TreeShaker and .gdshaderinc headers


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

Provenance & external interop tracking for TreeShaker and .gdshaderinc headers


def imported_structs : Set(String) #

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

def includes : Array(String) #

def includes=(includes : Array(String)) #

def inspect_probes : Array(InspectProbe) #

def inspect_probes=(inspect_probes : Array(InspectProbe)) #

def is_compositor : Bool #

def is_compositor=(is_compositor : Bool) #

def macros : Hash(String, Crystal::Macro) #

def macros=(macros : Hash(String, Crystal::Macro)) #

def node_generations : Array(NodeGenerationTarget) #

def node_generations=(node_generations : Array(NodeGenerationTarget)) #

def pixel_stage_vars : Tuple(String, String) | Nil #

def pixel_stage_vars=(pixel_stage_vars : Tuple(String, String) | Nil) #

def preprocessor_lines : Array(String) #

def preprocessor_lines=(preprocessor_lines : Array(String)) #

def push_constants : Array(PushConstantDecl) #

def push_constants=(push_constants : Array(PushConstantDecl)) #

def raw_top_level_nodes : Array(Crystal::ASTNode) #

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

def render_modes : Array(String) #

def render_modes=(render_modes : Array(String)) #

def requires : Set(String) #

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

def setup_gdshader : Bool #

def setup_gdshader=(setup_gdshader : Bool) #

def shader_type : ShaderType #

def shader_type=(shader_type : ShaderType) #

def shared_memories : Array(SharedMemoryDecl) #

def shared_memories=(shared_memories : Array(SharedMemoryDecl)) #

def structs : Hash(String, StructDecl) #

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

def target : ShaderTarget #

def target=(target : ShaderTarget) #

def trait_uses : Array(TraitUse) #

def trait_uses=(trait_uses : Array(TraitUse)) #

def traits : Hash(String, TraitDecl) #

def traits=(traits : Hash(String, TraitDecl)) #

def uniforms : Array(UniformDecl) #

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

def varyings : Array(VaryingDecl) #

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