class
CrShader::Compiler
- CrShader::Compiler
- Reference
- Object
Defined in:
crshader/compiler.crConstructors
Instance Method Summary
- #compile(source : String, target : ShaderTarget | Nil = nil) : String
-
#compile_emit_targets(source : String, filename : String | Nil = nil, write_disk : Bool = true) : Array(Tuple(String, ShaderTarget, String))
Compiles all
emit_targetoutputs declared insource(or the single default sibling output when noemit_targetdirective is present). - #compile_file(input_path : String, output_path : String | Nil = nil) : String
- #compile_source(source : String, filename : String | Nil = nil) : String
- #feature_overrides : Hash(String, FeatureValue)
- #feature_overrides=(feature_overrides : Hash(String, FeatureValue))
- #godot_compute_header : Bool
- #godot_compute_header=(godot_compute_header : Bool)
- #last_program : ShaderProgram | Nil
- #optimize_names : Bool
- #optimize_names=(optimize_names : Bool)
- #skip_validation : Bool
- #skip_validation=(skip_validation : Bool)
- #strip_debug_inspects : Bool
- #strip_debug_inspects=(strip_debug_inspects : Bool)
- #target_override : ShaderTarget | Nil
- #target_override=(target_override : ShaderTarget | Nil)
- #verbose : Bool
- #verbose=(verbose : Bool)
Constructor Detail
def self.new(target_override : ShaderTarget | Nil = nil, verbose : Bool = false, optimize_names : Bool = false, skip_validation : Bool = false, feature_overrides : Hash(String, FeatureValue) = {} of String => FeatureValue, strip_debug_inspects : Bool = false, godot_compute_header : Bool = false)
#
Instance Method Detail
def compile_emit_targets(source : String, filename : String | Nil = nil, write_disk : Bool = true) : Array(Tuple(String, ShaderTarget, String))
#
Compiles all emit_target outputs declared in source (or the single default sibling
output when no emit_target directive is present). Returns {output_path, target, code} tuples.