Class: RLSL::GLSL::Translator
- Inherits:
-
BaseTranslator
- Object
- BaseTranslator
- RLSL::GLSL::Translator
- Defined in:
- lib/rlsl/glsl/translator.rb
Constant Summary collapse
- PROFILE =
BaseTranslator.build_profile( uniform_target: :glsl, identifier_replacements: {}, call_rewrites: BaseTranslator.common_call_rewrites( target_vec2: "vec2", target_vec3: "vec3", target_vec4: "vec4" ) )
Constants inherited from BaseTranslator
BaseTranslator::REMOVED_IDENTIFIERS
Instance Method Summary collapse
-
#initialize(uniforms, helpers_code, fragment_code, version: "450") ⇒ Translator
constructor
A new instance of Translator.
Methods inherited from BaseTranslator
build_profile, common_call_rewrites, infix_call, rename_call, #translate
Constructor Details
#initialize(uniforms, helpers_code, fragment_code, version: "450") ⇒ Translator
Returns a new instance of Translator.
16 17 18 19 |
# File 'lib/rlsl/glsl/translator.rb', line 16 def initialize(uniforms, helpers_code, fragment_code, version: "450") super(uniforms, helpers_code, fragment_code) @version = version end |