Package org.lwjgl.util.shaderc
Class GLSLangInput.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<GLSLangInput.Buffer>
org.lwjgl.system.StructBuffer<GLSLangInput,GLSLangInput.Buffer>
org.lwjgl.util.shaderc.GLSLangInput.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<GLSLangInput>,NativeResource,Pointer
- Enclosing class:
GLSLangInput
public static class GLSLangInput.Buffer
extends StructBuffer<GLSLangInput,GLSLangInput.Buffer>
implements NativeResource
An array of
GLSLangInput structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newGLSLangInput.Bufferinstance backed by the specified container. -
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.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 Stringintdefault_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.intmessages()messages(int value) Sets the specified value to themessagesfield.@Nullable GLSLangResourceresource()resource(@Nullable GLSLangResource value) Sets the address of the specifiedGLSLangResourceto theresourcefield.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.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newGLSLangInput.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
GLSLangInput.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
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.
-