Class GLSLangLimits

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class GLSLangLimits extends Struct<GLSLangLimits> implements NativeResource

 struct glslang_limits_t {
     bool non_inductive_for_loops;
     bool while_loops;
     bool do_while_loops;
     bool general_uniform_indexing;
     bool general_attribute_matrix_vector_indexing;
     bool general_varying_indexing;
     bool general_sampler_indexing;
     bool general_variable_indexing;
     bool general_constant_matrix_vector_indexing;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NON_INDUCTIVE_FOR_LOOPS

      public static final int NON_INDUCTIVE_FOR_LOOPS
      The struct member offsets.
    • WHILE_LOOPS

      public static final int WHILE_LOOPS
      The struct member offsets.
    • DO_WHILE_LOOPS

      public static final int DO_WHILE_LOOPS
      The struct member offsets.
    • GENERAL_UNIFORM_INDEXING

      public static final int GENERAL_UNIFORM_INDEXING
      The struct member offsets.
    • GENERAL_ATTRIBUTE_MATRIX_VECTOR_INDEXING

      public static final int GENERAL_ATTRIBUTE_MATRIX_VECTOR_INDEXING
      The struct member offsets.
    • GENERAL_VARYING_INDEXING

      public static final int GENERAL_VARYING_INDEXING
      The struct member offsets.
    • GENERAL_SAMPLER_INDEXING

      public static final int GENERAL_SAMPLER_INDEXING
      The struct member offsets.
    • GENERAL_VARIABLE_INDEXING

      public static final int GENERAL_VARIABLE_INDEXING
      The struct member offsets.
    • GENERAL_CONSTANT_MATRIX_VECTOR_INDEXING

      public static final int GENERAL_CONSTANT_MATRIX_VECTOR_INDEXING
      The struct member offsets.
  • Constructor Details

    • GLSLangLimits

      public GLSLangLimits(ByteBuffer container)
      Creates a GLSLangLimits instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<GLSLangLimits>
    • non_inductive_for_loops

      public boolean non_inductive_for_loops()
      Returns:
      the value of the non_inductive_for_loops field.
    • while_loops

      public boolean while_loops()
      Returns:
      the value of the while_loops field.
    • do_while_loops

      public boolean do_while_loops()
      Returns:
      the value of the do_while_loops field.
    • general_uniform_indexing

      public boolean general_uniform_indexing()
      Returns:
      the value of the general_uniform_indexing field.
    • general_attribute_matrix_vector_indexing

      public boolean general_attribute_matrix_vector_indexing()
      Returns:
      the value of the general_attribute_matrix_vector_indexing field.
    • general_varying_indexing

      public boolean general_varying_indexing()
      Returns:
      the value of the general_varying_indexing field.
    • general_sampler_indexing

      public boolean general_sampler_indexing()
      Returns:
      the value of the general_sampler_indexing field.
    • general_variable_indexing

      public boolean general_variable_indexing()
      Returns:
      the value of the general_variable_indexing field.
    • general_constant_matrix_vector_indexing

      public boolean general_constant_matrix_vector_indexing()
      Returns:
      the value of the general_constant_matrix_vector_indexing field.
    • non_inductive_for_loops

      public GLSLangLimits non_inductive_for_loops(boolean value)
      Sets the specified value to the non_inductive_for_loops field.
    • while_loops

      public GLSLangLimits while_loops(boolean value)
      Sets the specified value to the while_loops field.
    • do_while_loops

      public GLSLangLimits do_while_loops(boolean value)
      Sets the specified value to the do_while_loops field.
    • general_uniform_indexing

      public GLSLangLimits general_uniform_indexing(boolean value)
      Sets the specified value to the general_uniform_indexing field.
    • general_attribute_matrix_vector_indexing

      public GLSLangLimits general_attribute_matrix_vector_indexing(boolean value)
      Sets the specified value to the general_attribute_matrix_vector_indexing field.
    • general_varying_indexing

      public GLSLangLimits general_varying_indexing(boolean value)
      Sets the specified value to the general_varying_indexing field.
    • general_sampler_indexing

      public GLSLangLimits general_sampler_indexing(boolean value)
      Sets the specified value to the general_sampler_indexing field.
    • general_variable_indexing

      public GLSLangLimits general_variable_indexing(boolean value)
      Sets the specified value to the general_variable_indexing field.
    • general_constant_matrix_vector_indexing

      public GLSLangLimits general_constant_matrix_vector_indexing(boolean value)
      Sets the specified value to the general_constant_matrix_vector_indexing field.
    • set

      public GLSLangLimits set(boolean non_inductive_for_loops, boolean while_loops, boolean do_while_loops, boolean general_uniform_indexing, boolean general_attribute_matrix_vector_indexing, boolean general_varying_indexing, boolean general_sampler_indexing, boolean general_variable_indexing, boolean general_constant_matrix_vector_indexing)
      Initializes this struct with the specified values.
    • set

      public GLSLangLimits set(GLSLangLimits src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static GLSLangLimits malloc()
      Returns a new GLSLangLimits instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static GLSLangLimits calloc()
      Returns a new GLSLangLimits instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static GLSLangLimits create()
      Returns a new GLSLangLimits instance allocated with BufferUtils.
    • create

      public static GLSLangLimits create(long address)
      Returns a new GLSLangLimits instance for the specified memory address.
    • createSafe

      public static @Nullable GLSLangLimits createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static GLSLangLimits.Buffer malloc(int capacity)
      Returns a new GLSLangLimits.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static GLSLangLimits.Buffer calloc(int capacity)
      Returns a new GLSLangLimits.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static GLSLangLimits.Buffer create(int capacity)
      Returns a new GLSLangLimits.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static GLSLangLimits.Buffer create(long address, int capacity)
      Create a GLSLangLimits.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable GLSLangLimits.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static GLSLangLimits malloc(MemoryStack stack)
      Returns a new GLSLangLimits instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static GLSLangLimits calloc(MemoryStack stack)
      Returns a new GLSLangLimits instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static GLSLangLimits.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new GLSLangLimits.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static GLSLangLimits.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new GLSLangLimits.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nnon_inductive_for_loops

      public static boolean nnon_inductive_for_loops(long struct)
      Unsafe version of non_inductive_for_loops().
    • nwhile_loops

      public static boolean nwhile_loops(long struct)
      Unsafe version of while_loops().
    • ndo_while_loops

      public static boolean ndo_while_loops(long struct)
      Unsafe version of do_while_loops().
    • ngeneral_uniform_indexing

      public static boolean ngeneral_uniform_indexing(long struct)
      Unsafe version of general_uniform_indexing().
    • ngeneral_attribute_matrix_vector_indexing

      public static boolean ngeneral_attribute_matrix_vector_indexing(long struct)
    • ngeneral_varying_indexing

      public static boolean ngeneral_varying_indexing(long struct)
      Unsafe version of general_varying_indexing().
    • ngeneral_sampler_indexing

      public static boolean ngeneral_sampler_indexing(long struct)
      Unsafe version of general_sampler_indexing().
    • ngeneral_variable_indexing

      public static boolean ngeneral_variable_indexing(long struct)
      Unsafe version of general_variable_indexing().
    • ngeneral_constant_matrix_vector_indexing

      public static boolean ngeneral_constant_matrix_vector_indexing(long struct)
    • nnon_inductive_for_loops

      public static void nnon_inductive_for_loops(long struct, boolean value)
      Unsafe version of non_inductive_for_loops.
    • nwhile_loops

      public static void nwhile_loops(long struct, boolean value)
      Unsafe version of while_loops.
    • ndo_while_loops

      public static void ndo_while_loops(long struct, boolean value)
      Unsafe version of do_while_loops.
    • ngeneral_uniform_indexing

      public static void ngeneral_uniform_indexing(long struct, boolean value)
      Unsafe version of general_uniform_indexing.
    • ngeneral_attribute_matrix_vector_indexing

      public static void ngeneral_attribute_matrix_vector_indexing(long struct, boolean value)
    • ngeneral_varying_indexing

      public static void ngeneral_varying_indexing(long struct, boolean value)
      Unsafe version of general_varying_indexing.
    • ngeneral_sampler_indexing

      public static void ngeneral_sampler_indexing(long struct, boolean value)
      Unsafe version of general_sampler_indexing.
    • ngeneral_variable_indexing

      public static void ngeneral_variable_indexing(long struct, boolean value)
      Unsafe version of general_variable_indexing.
    • ngeneral_constant_matrix_vector_indexing

      public static void ngeneral_constant_matrix_vector_indexing(long struct, boolean value)