Package org.lwjgl.util.shaderc
Class GLSLIncludeCallbacks
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct glsl_include_callbacks_t {
glsl_include_system_func include_system;
glsl_include_local_func include_local;
glsl_free_include_result_func free_include_result;
}-
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
ConstructorsConstructorDescriptionGLSLIncludeCallbacks(ByteBuffer container) Creates aGLSLIncludeCallbacksinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLSLIncludeCallbackscalloc()Returns a newGLSLIncludeCallbacksinstance allocated withmemCalloc.static GLSLIncludeCallbacks.Buffercalloc(int capacity) Returns a newGLSLIncludeCallbacks.Bufferinstance allocated withmemCalloc.static GLSLIncludeCallbacks.Buffercalloc(int capacity, MemoryStack stack) Returns a newGLSLIncludeCallbacks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLIncludeCallbackscalloc(MemoryStack stack) Returns a newGLSLIncludeCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLIncludeCallbackscreate()Returns a newGLSLIncludeCallbacksinstance allocated withBufferUtils.static GLSLIncludeCallbacks.Buffercreate(int capacity) Returns a newGLSLIncludeCallbacks.Bufferinstance allocated withBufferUtils.static GLSLIncludeCallbackscreate(long address) Returns a newGLSLIncludeCallbacksinstance for the specified memory address.static GLSLIncludeCallbacks.Buffercreate(long address, int capacity) Create aGLSLIncludeCallbacks.Bufferinstance at the specified memory.static @Nullable GLSLIncludeCallbackscreateSafe(long address) static @Nullable GLSLIncludeCallbacks.BuffercreateSafe(long address, int capacity) @Nullable GLSLFreeIncludeResultFuncfree_include_result(@Nullable GLSLFreeIncludeResultFuncI value) Sets the specified value to thefree_include_resultfield.@Nullable GLSLIncludeLocalFuncinclude_local(@Nullable GLSLIncludeLocalFuncI value) Sets the specified value to theinclude_localfield.@Nullable GLSLIncludeSystemFuncinclude_system(@Nullable GLSLIncludeSystemFuncI value) Sets the specified value to theinclude_systemfield.static GLSLIncludeCallbacksmalloc()Returns a newGLSLIncludeCallbacksinstance allocated withmemAlloc.static GLSLIncludeCallbacks.Buffermalloc(int capacity) Returns a newGLSLIncludeCallbacks.Bufferinstance allocated withmemAlloc.static GLSLIncludeCallbacks.Buffermalloc(int capacity, MemoryStack stack) Returns a newGLSLIncludeCallbacks.Bufferinstance allocated on the specifiedMemoryStack.static GLSLIncludeCallbacksmalloc(MemoryStack stack) Returns a newGLSLIncludeCallbacksinstance allocated on the specifiedMemoryStack.static @Nullable GLSLFreeIncludeResultFuncnfree_include_result(long struct) Unsafe version offree_include_result().static voidnfree_include_result(long struct, @Nullable GLSLFreeIncludeResultFuncI value) Unsafe version offree_include_result.static @Nullable GLSLIncludeLocalFuncninclude_local(long struct) Unsafe version ofinclude_local().static voidninclude_local(long struct, @Nullable GLSLIncludeLocalFuncI value) Unsafe version ofinclude_local.static @Nullable GLSLIncludeSystemFuncninclude_system(long struct) Unsafe version ofinclude_system().static voidninclude_system(long struct, @Nullable GLSLIncludeSystemFuncI value) Unsafe version ofinclude_system.set(GLSLIncludeCallbacks src) Copies the specified struct data to this struct.set(GLSLIncludeSystemFuncI include_system, GLSLIncludeLocalFuncI include_local, GLSLFreeIncludeResultFuncI free_include_result) Initializes this struct with the specified values.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. -
INCLUDE_SYSTEM
public static final int INCLUDE_SYSTEMThe struct member offsets. -
INCLUDE_LOCAL
public static final int INCLUDE_LOCALThe struct member offsets. -
FREE_INCLUDE_RESULT
public static final int FREE_INCLUDE_RESULTThe struct member offsets.
-
-
Constructor Details
-
GLSLIncludeCallbacks
Creates aGLSLIncludeCallbacksinstance 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<GLSLIncludeCallbacks>
-
include_system
- Returns:
- the value of the
include_systemfield.
-
include_local
- Returns:
- the value of the
include_localfield.
-
free_include_result
- Returns:
- the value of the
free_include_resultfield.
-
include_system
Sets the specified value to theinclude_systemfield. -
include_local
Sets the specified value to theinclude_localfield. -
free_include_result
Sets the specified value to thefree_include_resultfield. -
set
public GLSLIncludeCallbacks set(GLSLIncludeSystemFuncI include_system, GLSLIncludeLocalFuncI include_local, GLSLFreeIncludeResultFuncI free_include_result) 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 newGLSLIncludeCallbacksinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newGLSLIncludeCallbacksinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newGLSLIncludeCallbacksinstance allocated withBufferUtils. -
create
Returns a newGLSLIncludeCallbacksinstance for the specified memory address. -
createSafe
-
malloc
Returns a newGLSLIncludeCallbacks.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newGLSLIncludeCallbacks.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newGLSLIncludeCallbacks.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aGLSLIncludeCallbacks.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newGLSLIncludeCallbacksinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newGLSLIncludeCallbacksinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newGLSLIncludeCallbacks.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newGLSLIncludeCallbacks.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ninclude_system
Unsafe version ofinclude_system(). -
ninclude_local
Unsafe version ofinclude_local(). -
nfree_include_result
Unsafe version offree_include_result(). -
ninclude_system
Unsafe version ofinclude_system. -
ninclude_local
Unsafe version ofinclude_local. -
nfree_include_result
Unsafe version offree_include_result.
-