Class Type.ArrayType

Enclosing class:
Type

public static final class Type.ArrayType extends Type
  • Method Details

    • isArray

      public boolean isArray()
      Overrides:
      isArray in class Type
    • isUnsizedArray

      public boolean isUnsizedArray()
      Overrides:
      isUnsizedArray in class Type
    • getArraySize

      public int getArraySize()
      Description copied from class: Type
      For arrays, returns either the size of the array (if known) or -1 (unsized). For all other types, causes an assertion failure.
      Overrides:
      getArraySize in class Type
    • getComponents

      public int getComponents()
      Description copied from class: Type
      For type that contains scalars, returns the number of scalars. For all other types, causes an assertion failure.
      Overrides:
      getComponents in class Type
    • getElementType

      @Nonnull public Type getElementType()
      Description copied from class: Type
      For arrays, returns the base type. For matrices, returns the column vector type. For vectors, returns the scalar type. For all other types, returns the type itself.
      Overrides:
      getElementType in class Type
    • getComponentType

      @Nonnull public Type getComponentType()
      Description copied from class: Type
      For matrices and vectors, returns the scalar type of individual cells (e.g. mat2 has a component type of Float). For textures, returns the sampled type (e.g. texture2D has a component type of Float). For arrays, returns the component type of their base type. For all other types, returns the type itself.
      Overrides:
      getComponentType in class Type