Class: RLSL::Prism::Emitters::TargetProfile
- Inherits:
-
Struct
- Object
- Struct
- RLSL::Prism::Emitters::TargetProfile
- Defined in:
- lib/rlsl/prism/emitters/target_profile.rb
Instance Attribute Summary collapse
-
#binary_op_resolver ⇒ Object
Returns the value of attribute binary_op_resolver.
-
#call_resolver ⇒ Object
Returns the value of attribute call_resolver.
-
#default_type_name ⇒ Object
Returns the value of attribute default_type_name.
-
#math_functions ⇒ Object
Returns the value of attribute math_functions.
-
#matrix_constructors ⇒ Object
Returns the value of attribute matrix_constructors.
-
#texture_functions ⇒ Object
Returns the value of attribute texture_functions.
-
#type_map ⇒ Object
Returns the value of attribute type_map.
-
#vector_constructors ⇒ Object
Returns the value of attribute vector_constructors.
-
#vector_ops ⇒ Object
Returns the value of attribute vector_ops.
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ TargetProfile
constructor
A new instance of TargetProfile.
Constructor Details
#initialize(**attributes) ⇒ TargetProfile
Returns a new instance of TargetProfile.
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 18 def initialize(**attributes) super( type_map: attributes.fetch(:type_map, {}).freeze, vector_constructors: attributes.fetch(:vector_constructors, {}).freeze, matrix_constructors: attributes.fetch(:matrix_constructors, {}).freeze, texture_functions: attributes.fetch(:texture_functions, {}).freeze, default_type_name: attributes.fetch(:default_type_name, "float"), math_functions: attributes.fetch(:math_functions, {}).freeze, vector_ops: attributes.fetch(:vector_ops, {}).freeze, call_resolver: attributes[:call_resolver], binary_op_resolver: attributes[:binary_op_resolver] ) end |
Instance Attribute Details
#binary_op_resolver ⇒ Object
Returns the value of attribute binary_op_resolver
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def binary_op_resolver @binary_op_resolver end |
#call_resolver ⇒ Object
Returns the value of attribute call_resolver
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def call_resolver @call_resolver end |
#default_type_name ⇒ Object
Returns the value of attribute default_type_name
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def default_type_name @default_type_name end |
#math_functions ⇒ Object
Returns the value of attribute math_functions
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def math_functions @math_functions end |
#matrix_constructors ⇒ Object
Returns the value of attribute matrix_constructors
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def matrix_constructors @matrix_constructors end |
#texture_functions ⇒ Object
Returns the value of attribute texture_functions
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def texture_functions @texture_functions end |
#type_map ⇒ Object
Returns the value of attribute type_map
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def type_map @type_map end |
#vector_constructors ⇒ Object
Returns the value of attribute vector_constructors
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def vector_constructors @vector_constructors end |
#vector_ops ⇒ Object
Returns the value of attribute vector_ops
6 7 8 |
# File 'lib/rlsl/prism/emitters/target_profile.rb', line 6 def vector_ops @vector_ops end |