Class 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.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new GLSLangInput.Buffer instance 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 language field.
    • stage

      public int stage()
      Returns:
      the value of the stage field.
    • client

      public int client()
      Returns:
      the value of the client field.
    • client_version

      public int client_version()
      Returns:
      the value of the client_version field.
    • target_language

      public int target_language()
      Returns:
      the value of the target_language field.
    • target_language_version

      public int target_language_version()
      Returns:
      the value of the target_language_version field.
    • code

      public @Nullable ByteBuffer code()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the code field.
    • codeString

      public @Nullable String codeString()
      Returns:
      the null-terminated string pointed to by the code field.
    • default_version

      public int default_version()
      Returns:
      the value of the default_version field.
    • default_profile

      public int default_profile()
      Returns:
      the value of the default_profile field.
    • force_default_version_and_profile

      public boolean force_default_version_and_profile()
      Returns:
      the value of the force_default_version_and_profile field.
    • forward_compatible

      public boolean forward_compatible()
      Returns:
      the value of the forward_compatible field.
    • messages

      public int messages()
      Returns:
      the value of the messages field.
    • resource

      public @Nullable GLSLangResource resource()
      Returns:
      a GLSLangResource view of the struct pointed to by the resource field.
    • callbacks

      public GLSLIncludeCallbacks callbacks()
      Returns:
      a GLSLIncludeCallbacks view of the callbacks field.
    • callbacks_ctx

      public long callbacks_ctx()
      Returns:
      the value of the callbacks_ctx field.
    • language

      public GLSLangInput.Buffer language(int value)
      Sets the specified value to the language field.
    • stage

      public GLSLangInput.Buffer stage(int value)
      Sets the specified value to the stage field.
    • client

      public GLSLangInput.Buffer client(int value)
      Sets the specified value to the client field.
    • client_version

      public GLSLangInput.Buffer client_version(int value)
      Sets the specified value to the client_version field.
    • target_language

      public GLSLangInput.Buffer target_language(int value)
      Sets the specified value to the target_language field.
    • target_language_version

      public GLSLangInput.Buffer target_language_version(int value)
      Sets the specified value to the target_language_version field.
    • code

      public GLSLangInput.Buffer code(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the code field.
    • default_version

      public GLSLangInput.Buffer default_version(int value)
      Sets the specified value to the default_version field.
    • default_profile

      public GLSLangInput.Buffer default_profile(int value)
      Sets the specified value to the default_profile field.
    • force_default_version_and_profile

      public GLSLangInput.Buffer force_default_version_and_profile(boolean value)
      Sets the specified value to the force_default_version_and_profile field.
    • forward_compatible

      public GLSLangInput.Buffer forward_compatible(boolean value)
      Sets the specified value to the forward_compatible field.
    • messages

      public GLSLangInput.Buffer messages(int value)
      Sets the specified value to the messages field.
    • resource

      public GLSLangInput.Buffer resource(@Nullable GLSLangResource value)
      Sets the address of the specified GLSLangResource to the resource field.
    • callbacks

      public GLSLangInput.Buffer callbacks(GLSLIncludeCallbacks value)
      Copies the specified GLSLIncludeCallbacks to the callbacks field.
    • callbacks

      public GLSLangInput.Buffer callbacks(Consumer<GLSLIncludeCallbacks> consumer)
      Passes the callbacks field to the specified Consumer.
    • callbacks_ctx

      public GLSLangInput.Buffer callbacks_ctx(long value)
      Sets the specified value to the callbacks_ctx field.