Class: RLSL::WGSL::Translator

Inherits:
BaseTranslator show all
Defined in:
lib/rlsl/wgsl/translator.rb

Constant Summary collapse

PROFILE =
BaseTranslator.build_profile(
  uniform_target: :wgsl,
  identifier_replacements: {
    "float" => "f32",
    "int" => "i32",
    "vec2" => "vec2<f32>",
    "vec3" => "vec3<f32>",
    "vec4" => "vec4<f32>"
  },
  call_rewrites: BaseTranslator.common_call_rewrites(
    target_vec2: "vec2<f32>",
    target_vec3: "vec3<f32>",
    target_vec4: "vec4<f32>"
  )
)

Constants inherited from BaseTranslator

BaseTranslator::REMOVED_IDENTIFIERS

Method Summary

Methods inherited from BaseTranslator

build_profile, common_call_rewrites, infix_call, #initialize, rename_call, #translate

Constructor Details

This class inherits a constructor from RLSL::BaseTranslator