Package org.lwjgl.util.shaderc
Class GLSLIncludeResult
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct glsl_include_result_t {
char const * header_name;
char const * header_data;
size_t header_length;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionGLSLIncludeResult(ByteBuffer container) Creates aGLSLIncludeResultinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLSLIncludeResultcalloc()Returns a newGLSLIncludeResultinstance allocated withmemCalloc.static GLSLIncludeResult.Buffercalloc(int capacity) Returns a newGLSLIncludeResult.Bufferinstance allocated withmemCalloc.static GLSLIncludeResult.Buffercalloc(int capacity, MemoryStack stack) Returns a newGLSLIncludeResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLIncludeResultcalloc(MemoryStack stack) Returns a newGLSLIncludeResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLIncludeResultcreate()Returns a newGLSLIncludeResultinstance allocated withBufferUtils.static GLSLIncludeResult.Buffercreate(int capacity) Returns a newGLSLIncludeResult.Bufferinstance allocated withBufferUtils.static GLSLIncludeResultcreate(long address) Returns a newGLSLIncludeResultinstance for the specified memory address.static GLSLIncludeResult.Buffercreate(long address, int capacity) Create aGLSLIncludeResult.Bufferinstance at the specified memory.static @Nullable GLSLIncludeResultcreateSafe(long address) static @Nullable GLSLIncludeResult.BuffercreateSafe(long address, int capacity) @Nullable ByteBufferheader_data(@Nullable ByteBuffer value) Sets the address of the specifiedByteBufferto theheader_datafield.longheader_length(long value) Sets the specified value to theheader_lengthfield.@Nullable ByteBufferheader_name(@Nullable ByteBuffer value) Sets the address of the specified encoded string to theheader_namefield.@Nullable Stringstatic GLSLIncludeResultmalloc()Returns a newGLSLIncludeResultinstance allocated withmemAlloc.static GLSLIncludeResult.Buffermalloc(int capacity) Returns a newGLSLIncludeResult.Bufferinstance allocated withmemAlloc.static GLSLIncludeResult.Buffermalloc(int capacity, MemoryStack stack) Returns a newGLSLIncludeResult.Bufferinstance allocated on the specifiedMemoryStack.static GLSLIncludeResultmalloc(MemoryStack stack) Returns a newGLSLIncludeResultinstance allocated on the specifiedMemoryStack.static @Nullable ByteBuffernheader_data(long struct) Unsafe version ofheader_data.static voidnheader_data(long struct, @Nullable ByteBuffer value) Unsafe version ofheader_data.static longnheader_length(long struct) Unsafe version ofheader_length().static voidnheader_length(long struct, long value) Sets the specified value to theheader_lengthfield of the specifiedstruct.static @Nullable ByteBuffernheader_name(long struct) Unsafe version ofheader_name().static voidnheader_name(long struct, @Nullable ByteBuffer value) Unsafe version ofheader_name.static @Nullable Stringnheader_nameString(long struct) Unsafe version ofheader_nameString().set(@Nullable ByteBuffer header_name, @Nullable ByteBuffer header_data, long header_length) Initializes this struct with the specified values.set(GLSLIncludeResult src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
HEADER_NAME
public static final int HEADER_NAMEThe struct member offsets. -
HEADER_DATA
public static final int HEADER_DATAThe struct member offsets. -
HEADER_LENGTH
public static final int HEADER_LENGTHThe struct member offsets.
-
-
Constructor Details
-
GLSLIncludeResult
Creates aGLSLIncludeResultinstance 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<GLSLIncludeResult>
-
header_name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by theheader_namefield.
-
header_nameString
- Returns:
- the null-terminated string pointed to by the
header_namefield.
-
header_data
- Returns:
- a
ByteBufferview of the data pointed to by theheader_datafield.
-
header_length
public long header_length()- Returns:
- the value of the
header_lengthfield.
-
header_name
Sets the address of the specified encoded string to theheader_namefield. -
header_data
Sets the address of the specifiedByteBufferto theheader_datafield. -
header_length
Sets the specified value to theheader_lengthfield. -
set
public GLSLIncludeResult set(@Nullable ByteBuffer header_name, @Nullable ByteBuffer header_data, long header_length) 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 newGLSLIncludeResultinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newGLSLIncludeResultinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newGLSLIncludeResultinstance allocated withBufferUtils. -
create
Returns a newGLSLIncludeResultinstance for the specified memory address. -
createSafe
-
malloc
Returns a newGLSLIncludeResult.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newGLSLIncludeResult.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newGLSLIncludeResult.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aGLSLIncludeResult.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newGLSLIncludeResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newGLSLIncludeResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newGLSLIncludeResult.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newGLSLIncludeResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nheader_name
Unsafe version ofheader_name(). -
nheader_nameString
Unsafe version ofheader_nameString(). -
nheader_data
Unsafe version ofheader_data. -
nheader_length
public static long nheader_length(long struct) Unsafe version ofheader_length(). -
nheader_name
Unsafe version ofheader_name. -
nheader_data
Unsafe version ofheader_data. -
nheader_length
public static void nheader_length(long struct, long value) Sets the specified value to theheader_lengthfield of the specifiedstruct.
-