Package org.lwjgl.util.shaderc
Class GLSLangInput
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct glslang_input_t {
glslang_source_t language;
glslang_stage_t stage;
glslang_client_t client;
glslang_target_client_version_t client_version;
glslang_target_language_t target_language;
glslang_target_language_version_t target_language_version;
char const * code;
int default_version;
glslang_profile_t default_profile;
int force_default_version_and_profile;
int forward_compatible;
glslang_messages_t messages;
glslang_resource_t const * resource;
glsl_include_callbacks_t callbacks;
void * callbacks_ctx;
}-
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 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.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionGLSLangInput(ByteBuffer container) Creates aGLSLangInputinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncallbacks(Consumer<GLSLIncludeCallbacks> consumer) Passes thecallbacksfield to the specifiedConsumer.callbacks(GLSLIncludeCallbacks value) Copies the specifiedGLSLIncludeCallbacksto thecallbacksfield.longcallbacks_ctx(long value) Sets the specified value to thecallbacks_ctxfield.static GLSLangInputcalloc()Returns a newGLSLangInputinstance allocated withmemCalloc.static GLSLangInput.Buffercalloc(int capacity) Returns a newGLSLangInput.Bufferinstance allocated withmemCalloc.static GLSLangInput.Buffercalloc(int capacity, MemoryStack stack) Returns a newGLSLangInput.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLangInputcalloc(MemoryStack stack) Returns a newGLSLangInputinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclient()client(int value) Sets the specified value to theclientfield.intclient_version(int value) Sets the specified value to theclient_versionfield.@Nullable ByteBuffercode()code(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thecodefield.@Nullable Stringstatic GLSLangInputcreate()Returns a newGLSLangInputinstance allocated withBufferUtils.static GLSLangInput.Buffercreate(int capacity) Returns a newGLSLangInput.Bufferinstance allocated withBufferUtils.static GLSLangInputcreate(long address) Returns a newGLSLangInputinstance for the specified memory address.static GLSLangInput.Buffercreate(long address, int capacity) Create aGLSLangInput.Bufferinstance at the specified memory.static @Nullable GLSLangInputcreateSafe(long address) static @Nullable GLSLangInput.BuffercreateSafe(long address, int capacity) intdefault_profile(int value) Sets the specified value to thedefault_profilefield.intdefault_version(int value) Sets the specified value to thedefault_versionfield.booleanforce_default_version_and_profile(boolean value) Sets the specified value to theforce_default_version_and_profilefield.booleanforward_compatible(boolean value) Sets the specified value to theforward_compatiblefield.intlanguage()language(int value) Sets the specified value to thelanguagefield.static GLSLangInputmalloc()Returns a newGLSLangInputinstance allocated withmemAlloc.static GLSLangInput.Buffermalloc(int capacity) Returns a newGLSLangInput.Bufferinstance allocated withmemAlloc.static GLSLangInput.Buffermalloc(int capacity, MemoryStack stack) Returns a newGLSLangInput.Bufferinstance allocated on the specifiedMemoryStack.static GLSLangInputmalloc(MemoryStack stack) Returns a newGLSLangInputinstance allocated on the specifiedMemoryStack.intmessages()messages(int value) Sets the specified value to themessagesfield.static GLSLIncludeCallbacksncallbacks(long struct) Unsafe version ofcallbacks().static voidncallbacks(long struct, GLSLIncludeCallbacks value) Unsafe version ofcallbacks.static longncallbacks_ctx(long struct) Unsafe version ofcallbacks_ctx().static voidncallbacks_ctx(long struct, long value) Unsafe version ofcallbacks_ctx.static intnclient(long struct) Unsafe version ofclient().static voidnclient(long struct, int value) Unsafe version ofclient.static intnclient_version(long struct) Unsafe version ofclient_version().static voidnclient_version(long struct, int value) Unsafe version ofclient_version.static @Nullable ByteBufferncode(long struct) Unsafe version ofcode().static voidncode(long struct, @Nullable ByteBuffer value) Unsafe version ofcode.static @Nullable StringncodeString(long struct) Unsafe version ofcodeString().static intndefault_profile(long struct) Unsafe version ofdefault_profile().static voidndefault_profile(long struct, int value) Unsafe version ofdefault_profile.static intndefault_version(long struct) Unsafe version ofdefault_version().static voidndefault_version(long struct, int value) Unsafe version ofdefault_version.static intnforce_default_version_and_profile(long struct) Unsafe version offorce_default_version_and_profile().static voidnforce_default_version_and_profile(long struct, int value) Unsafe version offorce_default_version_and_profile.static intnforward_compatible(long struct) Unsafe version offorward_compatible().static voidnforward_compatible(long struct, int value) Unsafe version offorward_compatible.static intnlanguage(long struct) Unsafe version oflanguage().static voidnlanguage(long struct, int value) Unsafe version oflanguage.static intnmessages(long struct) Unsafe version ofmessages().static voidnmessages(long struct, int value) Unsafe version ofmessages.static @Nullable GLSLangResourcenresource(long struct) Unsafe version ofresource().static voidnresource(long struct, @Nullable GLSLangResource value) Unsafe version ofresource.static intnstage(long struct) Unsafe version ofstage().static voidnstage(long struct, int value) Unsafe version ofstage.static intntarget_language(long struct) Unsafe version oftarget_language().static voidntarget_language(long struct, int value) Unsafe version oftarget_language.static intntarget_language_version(long struct) Unsafe version oftarget_language_version().static voidntarget_language_version(long struct, int value) Unsafe version oftarget_language_version.@Nullable GLSLangResourceresource()resource(@Nullable GLSLangResource value) Sets the address of the specifiedGLSLangResourceto theresourcefield.set(int language, int stage, int client, int client_version, int target_language, int target_language_version, @Nullable ByteBuffer code, int default_version, int default_profile, boolean force_default_version_and_profile, boolean forward_compatible, int messages, @Nullable GLSLangResource resource, GLSLIncludeCallbacks callbacks, long callbacks_ctx) Initializes this struct with the specified values.set(GLSLangInput src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intstage()stage(int value) Sets the specified value to thestagefield.inttarget_language(int value) Sets the specified value to thetarget_languagefield.inttarget_language_version(int value) Sets the specified value to thetarget_language_versionfield.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. -
LANGUAGE
public static final int LANGUAGEThe struct member offsets. -
STAGE
public static final int STAGEThe struct member offsets. -
CLIENT
public static final int CLIENTThe struct member offsets. -
CLIENT_VERSION
public static final int CLIENT_VERSIONThe struct member offsets. -
TARGET_LANGUAGE
public static final int TARGET_LANGUAGEThe struct member offsets. -
TARGET_LANGUAGE_VERSION
public static final int TARGET_LANGUAGE_VERSIONThe struct member offsets. -
CODE
public static final int CODEThe struct member offsets. -
DEFAULT_VERSION
public static final int DEFAULT_VERSIONThe struct member offsets. -
DEFAULT_PROFILE
public static final int DEFAULT_PROFILEThe struct member offsets. -
FORCE_DEFAULT_VERSION_AND_PROFILE
public static final int FORCE_DEFAULT_VERSION_AND_PROFILEThe struct member offsets. -
FORWARD_COMPATIBLE
public static final int FORWARD_COMPATIBLEThe struct member offsets. -
MESSAGES
public static final int MESSAGESThe struct member offsets. -
RESOURCE
public static final int RESOURCEThe struct member offsets. -
CALLBACKS
public static final int CALLBACKSThe struct member offsets. -
CALLBACKS_CTX
public static final int CALLBACKS_CTXThe struct member offsets.
-
-
Constructor Details
-
GLSLangInput
Creates aGLSLangInputinstance 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<GLSLangInput>
-
language
public int language()- Returns:
- the value of the
languagefield.
-
stage
public int stage()- Returns:
- the value of the
stagefield.
-
client
public int client()- Returns:
- the value of the
clientfield.
-
client_version
public int client_version()- Returns:
- the value of the
client_versionfield.
-
target_language
public int target_language()- Returns:
- the value of the
target_languagefield.
-
target_language_version
public int target_language_version()- Returns:
- the value of the
target_language_versionfield.
-
code
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thecodefield.
-
codeString
- Returns:
- the null-terminated string pointed to by the
codefield.
-
default_version
public int default_version()- Returns:
- the value of the
default_versionfield.
-
default_profile
public int default_profile()- Returns:
- the value of the
default_profilefield.
-
force_default_version_and_profile
public boolean force_default_version_and_profile()- Returns:
- the value of the
force_default_version_and_profilefield.
-
forward_compatible
public boolean forward_compatible()- Returns:
- the value of the
forward_compatiblefield.
-
messages
public int messages()- Returns:
- the value of the
messagesfield.
-
resource
- Returns:
- a
GLSLangResourceview of the struct pointed to by theresourcefield.
-
callbacks
- Returns:
- a
GLSLIncludeCallbacksview of thecallbacksfield.
-
callbacks_ctx
public long callbacks_ctx()- Returns:
- the value of the
callbacks_ctxfield.
-
language
Sets the specified value to thelanguagefield. -
stage
Sets the specified value to thestagefield. -
client
Sets the specified value to theclientfield. -
client_version
Sets the specified value to theclient_versionfield. -
target_language
Sets the specified value to thetarget_languagefield. -
target_language_version
Sets the specified value to thetarget_language_versionfield. -
code
Sets the address of the specified encoded string to thecodefield. -
default_version
Sets the specified value to thedefault_versionfield. -
default_profile
Sets the specified value to thedefault_profilefield. -
force_default_version_and_profile
Sets the specified value to theforce_default_version_and_profilefield. -
forward_compatible
Sets the specified value to theforward_compatiblefield. -
messages
Sets the specified value to themessagesfield. -
resource
Sets the address of the specifiedGLSLangResourceto theresourcefield. -
callbacks
Copies the specifiedGLSLIncludeCallbacksto thecallbacksfield. -
callbacks
Passes thecallbacksfield to the specifiedConsumer. -
callbacks_ctx
Sets the specified value to thecallbacks_ctxfield. -
set
public GLSLangInput set(int language, int stage, int client, int client_version, int target_language, int target_language_version, @Nullable ByteBuffer code, int default_version, int default_profile, boolean force_default_version_and_profile, boolean forward_compatible, int messages, @Nullable GLSLangResource resource, GLSLIncludeCallbacks callbacks, long callbacks_ctx) 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 newGLSLangInputinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newGLSLangInputinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newGLSLangInputinstance allocated withBufferUtils. -
create
Returns a newGLSLangInputinstance for the specified memory address. -
createSafe
-
malloc
Returns a newGLSLangInput.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newGLSLangInput.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newGLSLangInput.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aGLSLangInput.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newGLSLangInputinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newGLSLangInputinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newGLSLangInput.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newGLSLangInput.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nlanguage
public static int nlanguage(long struct) Unsafe version oflanguage(). -
nstage
public static int nstage(long struct) Unsafe version ofstage(). -
nclient
public static int nclient(long struct) Unsafe version ofclient(). -
nclient_version
public static int nclient_version(long struct) Unsafe version ofclient_version(). -
ntarget_language
public static int ntarget_language(long struct) Unsafe version oftarget_language(). -
ntarget_language_version
public static int ntarget_language_version(long struct) Unsafe version oftarget_language_version(). -
ncode
Unsafe version ofcode(). -
ncodeString
Unsafe version ofcodeString(). -
ndefault_version
public static int ndefault_version(long struct) Unsafe version ofdefault_version(). -
ndefault_profile
public static int ndefault_profile(long struct) Unsafe version ofdefault_profile(). -
nforce_default_version_and_profile
public static int nforce_default_version_and_profile(long struct) Unsafe version offorce_default_version_and_profile(). -
nforward_compatible
public static int nforward_compatible(long struct) Unsafe version offorward_compatible(). -
nmessages
public static int nmessages(long struct) Unsafe version ofmessages(). -
nresource
Unsafe version ofresource(). -
ncallbacks
Unsafe version ofcallbacks(). -
ncallbacks_ctx
public static long ncallbacks_ctx(long struct) Unsafe version ofcallbacks_ctx(). -
nlanguage
public static void nlanguage(long struct, int value) Unsafe version oflanguage. -
nstage
public static void nstage(long struct, int value) Unsafe version ofstage. -
nclient
public static void nclient(long struct, int value) Unsafe version ofclient. -
nclient_version
public static void nclient_version(long struct, int value) Unsafe version ofclient_version. -
ntarget_language
public static void ntarget_language(long struct, int value) Unsafe version oftarget_language. -
ntarget_language_version
public static void ntarget_language_version(long struct, int value) Unsafe version oftarget_language_version. -
ncode
Unsafe version ofcode. -
ndefault_version
public static void ndefault_version(long struct, int value) Unsafe version ofdefault_version. -
ndefault_profile
public static void ndefault_profile(long struct, int value) Unsafe version ofdefault_profile. -
nforce_default_version_and_profile
public static void nforce_default_version_and_profile(long struct, int value) Unsafe version offorce_default_version_and_profile. -
nforward_compatible
public static void nforward_compatible(long struct, int value) Unsafe version offorward_compatible. -
nmessages
public static void nmessages(long struct, int value) Unsafe version ofmessages. -
nresource
Unsafe version ofresource. -
ncallbacks
Unsafe version ofcallbacks. -
ncallbacks_ctx
public static void ncallbacks_ctx(long struct, long value) Unsafe version ofcallbacks_ctx.
-