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 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_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 default_precisions : Hash(String, String) #

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

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

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

def images : Array(ImageUniformDecl) #

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

def includes : Array(String) #

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

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 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 uniforms : Array(UniformDecl) #

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

def varyings : Array(VaryingDecl) #

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