Class GLSLangSPVOptions

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class GLSLangSPVOptions extends Struct<GLSLangSPVOptions> implements NativeResource

 struct glslang_spv_options_t {
     bool generate_debug_info;
     bool strip_debug_info;
     bool disable_optimizer;
     bool optimize_size;
     bool disassemble;
     bool validate;
     bool emit_nonsemantic_shader_debug_info;
     bool emit_nonsemantic_shader_debug_source;
     bool compile_only;
     bool optimize_allow_expanded_id_bound;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • GENERATE_DEBUG_INFO

      public static final int GENERATE_DEBUG_INFO
      The struct member offsets.
    • STRIP_DEBUG_INFO

      public static final int STRIP_DEBUG_INFO
      The struct member offsets.
    • DISABLE_OPTIMIZER

      public static final int DISABLE_OPTIMIZER
      The struct member offsets.
    • OPTIMIZE_SIZE

      public static final int OPTIMIZE_SIZE
      The struct member offsets.
    • DISASSEMBLE

      public static final int DISASSEMBLE
      The struct member offsets.
    • VALIDATE

      public static final int VALIDATE
      The struct member offsets.
    • EMIT_NONSEMANTIC_SHADER_DEBUG_INFO

      public static final int EMIT_NONSEMANTIC_SHADER_DEBUG_INFO
      The struct member offsets.
    • EMIT_NONSEMANTIC_SHADER_DEBUG_SOURCE

      public static final int EMIT_NONSEMANTIC_SHADER_DEBUG_SOURCE
      The struct member offsets.
    • COMPILE_ONLY

      public static final int COMPILE_ONLY
      The struct member offsets.
    • OPTIMIZE_ALLOW_EXPANDED_ID_BOUND

      public static final int OPTIMIZE_ALLOW_EXPANDED_ID_BOUND
      The struct member offsets.
  • Constructor Details

    • GLSLangSPVOptions

      public GLSLangSPVOptions(ByteBuffer container)
      Creates a GLSLangSPVOptions instance at the current position of the specified ByteBuffer container. 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: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<GLSLangSPVOptions>
    • generate_debug_info

      public boolean generate_debug_info()
      Returns:
      the value of the generate_debug_info field.
    • strip_debug_info

      public boolean strip_debug_info()
      Returns:
      the value of the strip_debug_info field.
    • disable_optimizer

      public boolean disable_optimizer()
      Returns:
      the value of the disable_optimizer field.
    • optimize_size

      public boolean optimize_size()
      Returns:
      the value of the optimize_size field.
    • disassemble

      public boolean disassemble()
      Returns:
      the value of the disassemble field.
    • validate

      public boolean validate()
      Returns:
      the value of the validate field.
    • emit_nonsemantic_shader_debug_info

      public boolean emit_nonsemantic_shader_debug_info()
      Returns:
      the value of the emit_nonsemantic_shader_debug_info field.
    • emit_nonsemantic_shader_debug_source

      public boolean emit_nonsemantic_shader_debug_source()
      Returns:
      the value of the emit_nonsemantic_shader_debug_source field.
    • compile_only

      public boolean compile_only()
      Returns:
      the value of the compile_only field.
    • optimize_allow_expanded_id_bound

      public boolean optimize_allow_expanded_id_bound()
      Returns:
      the value of the optimize_allow_expanded_id_bound field.
    • generate_debug_info

      public GLSLangSPVOptions generate_debug_info(boolean value)
      Sets the specified value to the generate_debug_info field.
    • strip_debug_info

      public GLSLangSPVOptions strip_debug_info(boolean value)
      Sets the specified value to the strip_debug_info field.
    • disable_optimizer

      public GLSLangSPVOptions disable_optimizer(boolean value)
      Sets the specified value to the disable_optimizer field.
    • optimize_size

      public GLSLangSPVOptions optimize_size(boolean value)
      Sets the specified value to the optimize_size field.
    • disassemble

      public GLSLangSPVOptions disassemble(boolean value)
      Sets the specified value to the disassemble field.
    • validate

      public GLSLangSPVOptions validate(boolean value)
      Sets the specified value to the validate field.
    • emit_nonsemantic_shader_debug_info

      public GLSLangSPVOptions emit_nonsemantic_shader_debug_info(boolean value)
      Sets the specified value to the emit_nonsemantic_shader_debug_info field.
    • emit_nonsemantic_shader_debug_source

      public GLSLangSPVOptions emit_nonsemantic_shader_debug_source(boolean value)
      Sets the specified value to the emit_nonsemantic_shader_debug_source field.
    • compile_only

      public GLSLangSPVOptions compile_only(boolean value)
      Sets the specified value to the compile_only field.
    • optimize_allow_expanded_id_bound

      public GLSLangSPVOptions optimize_allow_expanded_id_bound(boolean value)
      Sets the specified value to the optimize_allow_expanded_id_bound field.
    • set

      public GLSLangSPVOptions set(boolean generate_debug_info, boolean strip_debug_info, boolean disable_optimizer, boolean optimize_size, boolean disassemble, boolean validate, boolean emit_nonsemantic_shader_debug_info, boolean emit_nonsemantic_shader_debug_source, boolean compile_only, boolean optimize_allow_expanded_id_bound)
      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

      public static GLSLangSPVOptions malloc()
      Returns a new GLSLangSPVOptions instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static GLSLangSPVOptions calloc()
      Returns a new GLSLangSPVOptions instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static GLSLangSPVOptions create()
      Returns a new GLSLangSPVOptions instance allocated with BufferUtils.
    • create

      public static GLSLangSPVOptions create(long address)
      Returns a new GLSLangSPVOptions instance for the specified memory address.
    • createSafe

      public static @Nullable GLSLangSPVOptions createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static GLSLangSPVOptions.Buffer malloc(int capacity)
      Returns a new GLSLangSPVOptions.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static GLSLangSPVOptions.Buffer calloc(int capacity)
      Returns a new GLSLangSPVOptions.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static GLSLangSPVOptions.Buffer create(int capacity)
      Returns a new GLSLangSPVOptions.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static GLSLangSPVOptions.Buffer create(long address, int capacity)
      Create a GLSLangSPVOptions.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable GLSLangSPVOptions.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static GLSLangSPVOptions malloc(MemoryStack stack)
      Returns a new GLSLangSPVOptions instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static GLSLangSPVOptions calloc(MemoryStack stack)
      Returns a new GLSLangSPVOptions instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static GLSLangSPVOptions.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new GLSLangSPVOptions.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static GLSLangSPVOptions.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new GLSLangSPVOptions.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ngenerate_debug_info

      public static boolean ngenerate_debug_info(long struct)
      Unsafe version of generate_debug_info().
    • nstrip_debug_info

      public static boolean nstrip_debug_info(long struct)
      Unsafe version of strip_debug_info().
    • ndisable_optimizer

      public static boolean ndisable_optimizer(long struct)
      Unsafe version of disable_optimizer().
    • noptimize_size

      public static boolean noptimize_size(long struct)
      Unsafe version of optimize_size().
    • ndisassemble

      public static boolean ndisassemble(long struct)
      Unsafe version of disassemble().
    • nvalidate

      public static boolean nvalidate(long struct)
      Unsafe version of validate().
    • nemit_nonsemantic_shader_debug_info

      public static boolean nemit_nonsemantic_shader_debug_info(long struct)
    • nemit_nonsemantic_shader_debug_source

      public static boolean nemit_nonsemantic_shader_debug_source(long struct)
    • ncompile_only

      public static boolean ncompile_only(long struct)
      Unsafe version of compile_only().
    • noptimize_allow_expanded_id_bound

      public static boolean noptimize_allow_expanded_id_bound(long struct)
    • ngenerate_debug_info

      public static void ngenerate_debug_info(long struct, boolean value)
      Unsafe version of generate_debug_info.
    • nstrip_debug_info

      public static void nstrip_debug_info(long struct, boolean value)
      Unsafe version of strip_debug_info.
    • ndisable_optimizer

      public static void ndisable_optimizer(long struct, boolean value)
      Unsafe version of disable_optimizer.
    • noptimize_size

      public static void noptimize_size(long struct, boolean value)
      Unsafe version of optimize_size.
    • ndisassemble

      public static void ndisassemble(long struct, boolean value)
      Unsafe version of disassemble.
    • nvalidate

      public static void nvalidate(long struct, boolean value)
      Unsafe version of validate.
    • nemit_nonsemantic_shader_debug_info

      public static void nemit_nonsemantic_shader_debug_info(long struct, boolean value)
    • nemit_nonsemantic_shader_debug_source

      public static void nemit_nonsemantic_shader_debug_source(long struct, boolean value)
    • ncompile_only

      public static void ncompile_only(long struct, boolean value)
      Unsafe version of compile_only.
    • noptimize_allow_expanded_id_bound

      public static void noptimize_allow_expanded_id_bound(long struct, boolean value)