Class: RLSL::UniformTypeSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/rlsl/types/type_spec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#c_typeObject

Returns the value of attribute c_type

Returns:

  • (Object)

    the current value of c_type



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def c_type
  @c_type
end

#compiled_supportedObject

Returns the value of attribute compiled_supported

Returns:

  • (Object)

    the current value of compiled_supported



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def compiled_supported
  @compiled_supported
end

#function_shorthandObject

Returns the value of attribute function_shorthand

Returns:

  • (Object)

    the current value of function_shorthand



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def function_shorthand
  @function_shorthand
end

#glsl_typeObject

Returns the value of attribute glsl_type

Returns:

  • (Object)

    the current value of glsl_type



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def glsl_type
  @glsl_type
end

#metal_alignmentObject

Returns the value of attribute metal_alignment

Returns:

  • (Object)

    the current value of metal_alignment



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def metal_alignment
  @metal_alignment
end

#metal_sizeObject

Returns the value of attribute metal_size

Returns:

  • (Object)

    the current value of metal_size



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def metal_size
  @metal_size
end

#msl_typeObject

Returns the value of attribute msl_type

Returns:

  • (Object)

    the current value of msl_type



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def msl_type
  @msl_type
end

#runtime_supportedObject

Returns the value of attribute runtime_supported

Returns:

  • (Object)

    the current value of runtime_supported



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def runtime_supported
  @runtime_supported
end

#vector_sizeObject

Returns the value of attribute vector_size

Returns:

  • (Object)

    the current value of vector_size



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def vector_size
  @vector_size
end

#wgsl_typeObject

Returns the value of attribute wgsl_type

Returns:

  • (Object)

    the current value of wgsl_type



4
5
6
# File 'lib/rlsl/types/type_spec.rb', line 4

def wgsl_type
  @wgsl_type
end

#wrapper_kindObject

Returns the value of attribute wrapper_kind

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


18
19
20
# File 'lib/rlsl/types/type_spec.rb', line 18

def compiled?
  compiled_supported
end

#function_shorthand?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/rlsl/types/type_spec.rb', line 30

def function_shorthand?
  function_shorthand
end

#metal_packable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rlsl/types/type_spec.rb', line 22

def metal_packable?
  !metal_alignment.nil? && !metal_size.nil?
end

#runtime_supported?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/rlsl/types/type_spec.rb', line 26

def runtime_supported?
  runtime_supported
end

#target_supported?(target) ⇒ Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/rlsl/types/type_spec.rb', line 34

def target_supported?(target)
  !public_send(:"#{target}_type").nil?
end