Class: RLSL::UniformTypeSpec
- Inherits:
-
Struct
- Object
- Struct
- RLSL::UniformTypeSpec
- Defined in:
- lib/rlsl/types/type_spec.rb
Instance Attribute Summary collapse
-
#c_type ⇒ Object
Returns the value of attribute c_type.
-
#compiled_supported ⇒ Object
Returns the value of attribute compiled_supported.
-
#function_shorthand ⇒ Object
Returns the value of attribute function_shorthand.
-
#glsl_type ⇒ Object
Returns the value of attribute glsl_type.
-
#metal_alignment ⇒ Object
Returns the value of attribute metal_alignment.
-
#metal_size ⇒ Object
Returns the value of attribute metal_size.
-
#msl_type ⇒ Object
Returns the value of attribute msl_type.
-
#runtime_supported ⇒ Object
Returns the value of attribute runtime_supported.
-
#vector_size ⇒ Object
Returns the value of attribute vector_size.
-
#wgsl_type ⇒ Object
Returns the value of attribute wgsl_type.
-
#wrapper_kind ⇒ Object
Returns the value of attribute wrapper_kind.
Instance Method Summary collapse
- #compiled? ⇒ Boolean
- #function_shorthand? ⇒ Boolean
- #metal_packable? ⇒ Boolean
- #runtime_supported? ⇒ Boolean
- #target_supported?(target) ⇒ Boolean
Instance Attribute Details
#c_type ⇒ Object
Returns the value of attribute c_type
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def c_type @c_type end |
#compiled_supported ⇒ Object
Returns the value of attribute compiled_supported
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def compiled_supported @compiled_supported end |
#function_shorthand ⇒ Object
Returns the value of attribute function_shorthand
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def function_shorthand @function_shorthand end |
#glsl_type ⇒ Object
Returns the value of attribute glsl_type
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def glsl_type @glsl_type end |
#metal_alignment ⇒ Object
Returns the value of attribute metal_alignment
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def end |
#metal_size ⇒ Object
Returns the value of attribute metal_size
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def end |
#msl_type ⇒ Object
Returns the value of attribute msl_type
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def msl_type @msl_type end |
#runtime_supported ⇒ Object
Returns the value of attribute runtime_supported
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def runtime_supported @runtime_supported end |
#vector_size ⇒ Object
Returns the value of attribute vector_size
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def vector_size @vector_size end |
#wgsl_type ⇒ Object
Returns the value of attribute wgsl_type
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def wgsl_type @wgsl_type end |
#wrapper_kind ⇒ Object
Returns the value of attribute wrapper_kind
4 5 6 |
# File 'lib/rlsl/types/type_spec.rb', line 4 def wrapper_kind @wrapper_kind end |
Instance Method Details
#compiled? ⇒ Boolean
18 19 20 |
# File 'lib/rlsl/types/type_spec.rb', line 18 def compiled? compiled_supported end |
#function_shorthand? ⇒ Boolean
30 31 32 |
# File 'lib/rlsl/types/type_spec.rb', line 30 def function_shorthand? function_shorthand end |
#metal_packable? ⇒ Boolean
22 23 24 |
# File 'lib/rlsl/types/type_spec.rb', line 22 def !.nil? && !.nil? end |
#runtime_supported? ⇒ Boolean
26 27 28 |
# File 'lib/rlsl/types/type_spec.rb', line 26 def runtime_supported? runtime_supported end |
#target_supported?(target) ⇒ Boolean
34 35 36 |
# File 'lib/rlsl/types/type_spec.rb', line 34 def target_supported?(target) !public_send(:"#{target}_type").nil? end |