Package org.lwjgl.util.shaderc
Class GLSLangLimits
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionGLSLangLimits(ByteBuffer container) Creates aGLSLangLimitsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLSLangLimitscalloc()Returns a newGLSLangLimitsinstance allocated withmemCalloc.static GLSLangLimits.Buffercalloc(int capacity) Returns a newGLSLangLimits.Bufferinstance allocated withmemCalloc.static GLSLangLimits.Buffercalloc(int capacity, MemoryStack stack) Returns a newGLSLangLimits.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLangLimitscalloc(MemoryStack stack) Returns a newGLSLangLimitsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLangLimitscreate()Returns a newGLSLangLimitsinstance allocated withBufferUtils.static GLSLangLimits.Buffercreate(int capacity) Returns a newGLSLangLimits.Bufferinstance allocated withBufferUtils.static GLSLangLimitscreate(long address) Returns a newGLSLangLimitsinstance for the specified memory address.static GLSLangLimits.Buffercreate(long address, int capacity) Create aGLSLangLimits.Bufferinstance at the specified memory.static @Nullable GLSLangLimitscreateSafe(long address) static @Nullable GLSLangLimits.BuffercreateSafe(long address, int capacity) booleando_while_loops(boolean value) Sets the specified value to thedo_while_loopsfield.booleangeneral_attribute_matrix_vector_indexing(boolean value) Sets the specified value to thegeneral_attribute_matrix_vector_indexingfield.booleangeneral_constant_matrix_vector_indexing(boolean value) Sets the specified value to thegeneral_constant_matrix_vector_indexingfield.booleangeneral_sampler_indexing(boolean value) Sets the specified value to thegeneral_sampler_indexingfield.booleangeneral_uniform_indexing(boolean value) Sets the specified value to thegeneral_uniform_indexingfield.booleangeneral_variable_indexing(boolean value) Sets the specified value to thegeneral_variable_indexingfield.booleangeneral_varying_indexing(boolean value) Sets the specified value to thegeneral_varying_indexingfield.static GLSLangLimitsmalloc()Returns a newGLSLangLimitsinstance allocated withmemAlloc.static GLSLangLimits.Buffermalloc(int capacity) Returns a newGLSLangLimits.Bufferinstance allocated withmemAlloc.static GLSLangLimits.Buffermalloc(int capacity, MemoryStack stack) Returns a newGLSLangLimits.Bufferinstance allocated on the specifiedMemoryStack.static GLSLangLimitsmalloc(MemoryStack stack) Returns a newGLSLangLimitsinstance allocated on the specifiedMemoryStack.static booleanndo_while_loops(long struct) Unsafe version ofdo_while_loops().static voidndo_while_loops(long struct, boolean value) Unsafe version ofdo_while_loops.static booleanngeneral_attribute_matrix_vector_indexing(long struct) Unsafe version ofgeneral_attribute_matrix_vector_indexing().static voidngeneral_attribute_matrix_vector_indexing(long struct, boolean value) Unsafe version ofgeneral_attribute_matrix_vector_indexing.static booleanngeneral_constant_matrix_vector_indexing(long struct) Unsafe version ofgeneral_constant_matrix_vector_indexing().static voidngeneral_constant_matrix_vector_indexing(long struct, boolean value) Unsafe version ofgeneral_constant_matrix_vector_indexing.static booleanngeneral_sampler_indexing(long struct) Unsafe version ofgeneral_sampler_indexing().static voidngeneral_sampler_indexing(long struct, boolean value) Unsafe version ofgeneral_sampler_indexing.static booleanngeneral_uniform_indexing(long struct) Unsafe version ofgeneral_uniform_indexing().static voidngeneral_uniform_indexing(long struct, boolean value) Unsafe version ofgeneral_uniform_indexing.static booleanngeneral_variable_indexing(long struct) Unsafe version ofgeneral_variable_indexing().static voidngeneral_variable_indexing(long struct, boolean value) Unsafe version ofgeneral_variable_indexing.static booleanngeneral_varying_indexing(long struct) Unsafe version ofgeneral_varying_indexing().static voidngeneral_varying_indexing(long struct, boolean value) Unsafe version ofgeneral_varying_indexing.static booleannnon_inductive_for_loops(long struct) Unsafe version ofnon_inductive_for_loops().static voidnnon_inductive_for_loops(long struct, boolean value) Unsafe version ofnon_inductive_for_loops.booleannon_inductive_for_loops(boolean value) Sets the specified value to thenon_inductive_for_loopsfield.static booleannwhile_loops(long struct) Unsafe version ofwhile_loops().static voidnwhile_loops(long struct, boolean value) Unsafe version ofwhile_loops.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(GLSLangLimits src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).booleanwhile_loops(boolean value) Sets the specified value to thewhile_loopsfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NON_INDUCTIVE_FOR_LOOPS
public static final int NON_INDUCTIVE_FOR_LOOPSThe struct member offsets. -
WHILE_LOOPS
public static final int WHILE_LOOPSThe struct member offsets. -
DO_WHILE_LOOPS
public static final int DO_WHILE_LOOPSThe struct member offsets. -
GENERAL_UNIFORM_INDEXING
public static final int GENERAL_UNIFORM_INDEXINGThe struct member offsets. -
GENERAL_ATTRIBUTE_MATRIX_VECTOR_INDEXING
public static final int GENERAL_ATTRIBUTE_MATRIX_VECTOR_INDEXINGThe struct member offsets. -
GENERAL_VARYING_INDEXING
public static final int GENERAL_VARYING_INDEXINGThe struct member offsets. -
GENERAL_SAMPLER_INDEXING
public static final int GENERAL_SAMPLER_INDEXINGThe struct member offsets. -
GENERAL_VARIABLE_INDEXING
public static final int GENERAL_VARIABLE_INDEXINGThe struct member offsets. -
GENERAL_CONSTANT_MATRIX_VECTOR_INDEXING
public static final int GENERAL_CONSTANT_MATRIX_VECTOR_INDEXINGThe struct member offsets.
-
-
Constructor Details
-
GLSLangLimits
Creates aGLSLangLimitsinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<GLSLangLimits>
-
non_inductive_for_loops
public boolean non_inductive_for_loops()- Returns:
- the value of the
non_inductive_for_loopsfield.
-
while_loops
public boolean while_loops()- Returns:
- the value of the
while_loopsfield.
-
do_while_loops
public boolean do_while_loops()- Returns:
- the value of the
do_while_loopsfield.
-
general_uniform_indexing
public boolean general_uniform_indexing()- Returns:
- the value of the
general_uniform_indexingfield.
-
general_attribute_matrix_vector_indexing
public boolean general_attribute_matrix_vector_indexing()- Returns:
- the value of the
general_attribute_matrix_vector_indexingfield.
-
general_varying_indexing
public boolean general_varying_indexing()- Returns:
- the value of the
general_varying_indexingfield.
-
general_sampler_indexing
public boolean general_sampler_indexing()- Returns:
- the value of the
general_sampler_indexingfield.
-
general_variable_indexing
public boolean general_variable_indexing()- Returns:
- the value of the
general_variable_indexingfield.
-
general_constant_matrix_vector_indexing
public boolean general_constant_matrix_vector_indexing()- Returns:
- the value of the
general_constant_matrix_vector_indexingfield.
-
non_inductive_for_loops
Sets the specified value to thenon_inductive_for_loopsfield. -
while_loops
Sets the specified value to thewhile_loopsfield. -
do_while_loops
Sets the specified value to thedo_while_loopsfield. -
general_uniform_indexing
Sets the specified value to thegeneral_uniform_indexingfield. -
general_attribute_matrix_vector_indexing
Sets the specified value to thegeneral_attribute_matrix_vector_indexingfield. -
general_varying_indexing
Sets the specified value to thegeneral_varying_indexingfield. -
general_sampler_indexing
Sets the specified value to thegeneral_sampler_indexingfield. -
general_variable_indexing
Sets the specified value to thegeneral_variable_indexingfield. -
general_constant_matrix_vector_indexing
Sets the specified value to thegeneral_constant_matrix_vector_indexingfield. -
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newGLSLangLimitsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newGLSLangLimitsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newGLSLangLimitsinstance allocated withBufferUtils. -
create
Returns a newGLSLangLimitsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newGLSLangLimits.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newGLSLangLimits.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newGLSLangLimits.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aGLSLangLimits.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newGLSLangLimitsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newGLSLangLimitsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newGLSLangLimits.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newGLSLangLimits.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnon_inductive_for_loops
public static boolean nnon_inductive_for_loops(long struct) Unsafe version ofnon_inductive_for_loops(). -
nwhile_loops
public static boolean nwhile_loops(long struct) Unsafe version ofwhile_loops(). -
ndo_while_loops
public static boolean ndo_while_loops(long struct) Unsafe version ofdo_while_loops(). -
ngeneral_uniform_indexing
public static boolean ngeneral_uniform_indexing(long struct) Unsafe version ofgeneral_uniform_indexing(). -
ngeneral_attribute_matrix_vector_indexing
public static boolean ngeneral_attribute_matrix_vector_indexing(long struct) Unsafe version ofgeneral_attribute_matrix_vector_indexing(). -
ngeneral_varying_indexing
public static boolean ngeneral_varying_indexing(long struct) Unsafe version ofgeneral_varying_indexing(). -
ngeneral_sampler_indexing
public static boolean ngeneral_sampler_indexing(long struct) Unsafe version ofgeneral_sampler_indexing(). -
ngeneral_variable_indexing
public static boolean ngeneral_variable_indexing(long struct) Unsafe version ofgeneral_variable_indexing(). -
ngeneral_constant_matrix_vector_indexing
public static boolean ngeneral_constant_matrix_vector_indexing(long struct) Unsafe version ofgeneral_constant_matrix_vector_indexing(). -
nnon_inductive_for_loops
public static void nnon_inductive_for_loops(long struct, boolean value) Unsafe version ofnon_inductive_for_loops. -
nwhile_loops
public static void nwhile_loops(long struct, boolean value) Unsafe version ofwhile_loops. -
ndo_while_loops
public static void ndo_while_loops(long struct, boolean value) Unsafe version ofdo_while_loops. -
ngeneral_uniform_indexing
public static void ngeneral_uniform_indexing(long struct, boolean value) Unsafe version ofgeneral_uniform_indexing. -
ngeneral_attribute_matrix_vector_indexing
public static void ngeneral_attribute_matrix_vector_indexing(long struct, boolean value) Unsafe version ofgeneral_attribute_matrix_vector_indexing. -
ngeneral_varying_indexing
public static void ngeneral_varying_indexing(long struct, boolean value) Unsafe version ofgeneral_varying_indexing. -
ngeneral_sampler_indexing
public static void ngeneral_sampler_indexing(long struct, boolean value) Unsafe version ofgeneral_sampler_indexing. -
ngeneral_variable_indexing
public static void ngeneral_variable_indexing(long struct, boolean value) Unsafe version ofgeneral_variable_indexing. -
ngeneral_constant_matrix_vector_indexing
public static void ngeneral_constant_matrix_vector_indexing(long struct, boolean value) Unsafe version ofgeneral_constant_matrix_vector_indexing.
-