Package org.lwjgl.util.shaderc
Class GLSLangSPVOptions
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionGLSLangSPVOptions(ByteBuffer container) Creates aGLSLangSPVOptionsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic GLSLangSPVOptionscalloc()Returns a newGLSLangSPVOptionsinstance allocated withmemCalloc.static GLSLangSPVOptions.Buffercalloc(int capacity) Returns a newGLSLangSPVOptions.Bufferinstance allocated withmemCalloc.static GLSLangSPVOptions.Buffercalloc(int capacity, MemoryStack stack) Returns a newGLSLangSPVOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static GLSLangSPVOptionscalloc(MemoryStack stack) Returns a newGLSLangSPVOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancompile_only(boolean value) Sets the specified value to thecompile_onlyfield.static GLSLangSPVOptionscreate()Returns a newGLSLangSPVOptionsinstance allocated withBufferUtils.static GLSLangSPVOptions.Buffercreate(int capacity) Returns a newGLSLangSPVOptions.Bufferinstance allocated withBufferUtils.static GLSLangSPVOptionscreate(long address) Returns a newGLSLangSPVOptionsinstance for the specified memory address.static GLSLangSPVOptions.Buffercreate(long address, int capacity) Create aGLSLangSPVOptions.Bufferinstance at the specified memory.static @Nullable GLSLangSPVOptionscreateSafe(long address) static @Nullable GLSLangSPVOptions.BuffercreateSafe(long address, int capacity) booleandisable_optimizer(boolean value) Sets the specified value to thedisable_optimizerfield.booleandisassemble(boolean value) Sets the specified value to thedisassemblefield.booleanemit_nonsemantic_shader_debug_info(boolean value) Sets the specified value to theemit_nonsemantic_shader_debug_infofield.booleanemit_nonsemantic_shader_debug_source(boolean value) Sets the specified value to theemit_nonsemantic_shader_debug_sourcefield.booleangenerate_debug_info(boolean value) Sets the specified value to thegenerate_debug_infofield.static GLSLangSPVOptionsmalloc()Returns a newGLSLangSPVOptionsinstance allocated withmemAlloc.static GLSLangSPVOptions.Buffermalloc(int capacity) Returns a newGLSLangSPVOptions.Bufferinstance allocated withmemAlloc.static GLSLangSPVOptions.Buffermalloc(int capacity, MemoryStack stack) Returns a newGLSLangSPVOptions.Bufferinstance allocated on the specifiedMemoryStack.static GLSLangSPVOptionsmalloc(MemoryStack stack) Returns a newGLSLangSPVOptionsinstance allocated on the specifiedMemoryStack.static booleanncompile_only(long struct) Unsafe version ofcompile_only().static voidncompile_only(long struct, boolean value) Unsafe version ofcompile_only.static booleanndisable_optimizer(long struct) Unsafe version ofdisable_optimizer().static voidndisable_optimizer(long struct, boolean value) Unsafe version ofdisable_optimizer.static booleanndisassemble(long struct) Unsafe version ofdisassemble().static voidndisassemble(long struct, boolean value) Unsafe version ofdisassemble.static booleannemit_nonsemantic_shader_debug_info(long struct) Unsafe version ofemit_nonsemantic_shader_debug_info().static voidnemit_nonsemantic_shader_debug_info(long struct, boolean value) Unsafe version ofemit_nonsemantic_shader_debug_info.static booleannemit_nonsemantic_shader_debug_source(long struct) Unsafe version ofemit_nonsemantic_shader_debug_source().static voidnemit_nonsemantic_shader_debug_source(long struct, boolean value) Unsafe version ofemit_nonsemantic_shader_debug_source.static booleanngenerate_debug_info(long struct) Unsafe version ofgenerate_debug_info().static voidngenerate_debug_info(long struct, boolean value) Unsafe version ofgenerate_debug_info.static booleannoptimize_allow_expanded_id_bound(long struct) Unsafe version ofoptimize_allow_expanded_id_bound().static voidnoptimize_allow_expanded_id_bound(long struct, boolean value) Unsafe version ofoptimize_allow_expanded_id_bound.static booleannoptimize_size(long struct) Unsafe version ofoptimize_size().static voidnoptimize_size(long struct, boolean value) Unsafe version ofoptimize_size.static booleannstrip_debug_info(long struct) Unsafe version ofstrip_debug_info().static voidnstrip_debug_info(long struct, boolean value) Unsafe version ofstrip_debug_info.static booleannvalidate(long struct) Unsafe version ofvalidate().static voidnvalidate(long struct, boolean value) Unsafe version ofvalidate.booleanoptimize_allow_expanded_id_bound(boolean value) Sets the specified value to theoptimize_allow_expanded_id_boundfield.booleanoptimize_size(boolean value) Sets the specified value to theoptimize_sizefield.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(GLSLangSPVOptions src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).booleanstrip_debug_info(boolean value) Sets the specified value to thestrip_debug_infofield.booleanvalidate()validate(boolean value) Sets the specified value to thevalidatefield.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. -
GENERATE_DEBUG_INFO
public static final int GENERATE_DEBUG_INFOThe struct member offsets. -
STRIP_DEBUG_INFO
public static final int STRIP_DEBUG_INFOThe struct member offsets. -
DISABLE_OPTIMIZER
public static final int DISABLE_OPTIMIZERThe struct member offsets. -
OPTIMIZE_SIZE
public static final int OPTIMIZE_SIZEThe struct member offsets. -
DISASSEMBLE
public static final int DISASSEMBLEThe struct member offsets. -
VALIDATE
public static final int VALIDATEThe struct member offsets. -
EMIT_NONSEMANTIC_SHADER_DEBUG_INFO
public static final int EMIT_NONSEMANTIC_SHADER_DEBUG_INFOThe struct member offsets. -
EMIT_NONSEMANTIC_SHADER_DEBUG_SOURCE
public static final int EMIT_NONSEMANTIC_SHADER_DEBUG_SOURCEThe struct member offsets. -
COMPILE_ONLY
public static final int COMPILE_ONLYThe struct member offsets. -
OPTIMIZE_ALLOW_EXPANDED_ID_BOUND
public static final int OPTIMIZE_ALLOW_EXPANDED_ID_BOUNDThe struct member offsets.
-
-
Constructor Details
-
GLSLangSPVOptions
Creates aGLSLangSPVOptionsinstance 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<GLSLangSPVOptions>
-
generate_debug_info
public boolean generate_debug_info()- Returns:
- the value of the
generate_debug_infofield.
-
strip_debug_info
public boolean strip_debug_info()- Returns:
- the value of the
strip_debug_infofield.
-
disable_optimizer
public boolean disable_optimizer()- Returns:
- the value of the
disable_optimizerfield.
-
optimize_size
public boolean optimize_size()- Returns:
- the value of the
optimize_sizefield.
-
disassemble
public boolean disassemble()- Returns:
- the value of the
disassemblefield.
-
validate
public boolean validate()- Returns:
- the value of the
validatefield.
-
emit_nonsemantic_shader_debug_info
public boolean emit_nonsemantic_shader_debug_info()- Returns:
- the value of the
emit_nonsemantic_shader_debug_infofield.
-
emit_nonsemantic_shader_debug_source
public boolean emit_nonsemantic_shader_debug_source()- Returns:
- the value of the
emit_nonsemantic_shader_debug_sourcefield.
-
compile_only
public boolean compile_only()- Returns:
- the value of the
compile_onlyfield.
-
optimize_allow_expanded_id_bound
public boolean optimize_allow_expanded_id_bound()- Returns:
- the value of the
optimize_allow_expanded_id_boundfield.
-
generate_debug_info
Sets the specified value to thegenerate_debug_infofield. -
strip_debug_info
Sets the specified value to thestrip_debug_infofield. -
disable_optimizer
Sets the specified value to thedisable_optimizerfield. -
optimize_size
Sets the specified value to theoptimize_sizefield. -
disassemble
Sets the specified value to thedisassemblefield. -
validate
Sets the specified value to thevalidatefield. -
emit_nonsemantic_shader_debug_info
Sets the specified value to theemit_nonsemantic_shader_debug_infofield. -
emit_nonsemantic_shader_debug_source
Sets the specified value to theemit_nonsemantic_shader_debug_sourcefield. -
compile_only
Sets the specified value to thecompile_onlyfield. -
optimize_allow_expanded_id_bound
Sets the specified value to theoptimize_allow_expanded_id_boundfield. -
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
Returns a newGLSLangSPVOptionsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newGLSLangSPVOptionsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newGLSLangSPVOptionsinstance allocated withBufferUtils. -
create
Returns a newGLSLangSPVOptionsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newGLSLangSPVOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newGLSLangSPVOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newGLSLangSPVOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aGLSLangSPVOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newGLSLangSPVOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newGLSLangSPVOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newGLSLangSPVOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newGLSLangSPVOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ngenerate_debug_info
public static boolean ngenerate_debug_info(long struct) Unsafe version ofgenerate_debug_info(). -
nstrip_debug_info
public static boolean nstrip_debug_info(long struct) Unsafe version ofstrip_debug_info(). -
ndisable_optimizer
public static boolean ndisable_optimizer(long struct) Unsafe version ofdisable_optimizer(). -
noptimize_size
public static boolean noptimize_size(long struct) Unsafe version ofoptimize_size(). -
ndisassemble
public static boolean ndisassemble(long struct) Unsafe version ofdisassemble(). -
nvalidate
public static boolean nvalidate(long struct) Unsafe version ofvalidate(). -
nemit_nonsemantic_shader_debug_info
public static boolean nemit_nonsemantic_shader_debug_info(long struct) Unsafe version ofemit_nonsemantic_shader_debug_info(). -
nemit_nonsemantic_shader_debug_source
public static boolean nemit_nonsemantic_shader_debug_source(long struct) Unsafe version ofemit_nonsemantic_shader_debug_source(). -
ncompile_only
public static boolean ncompile_only(long struct) Unsafe version ofcompile_only(). -
noptimize_allow_expanded_id_bound
public static boolean noptimize_allow_expanded_id_bound(long struct) Unsafe version ofoptimize_allow_expanded_id_bound(). -
ngenerate_debug_info
public static void ngenerate_debug_info(long struct, boolean value) Unsafe version ofgenerate_debug_info. -
nstrip_debug_info
public static void nstrip_debug_info(long struct, boolean value) Unsafe version ofstrip_debug_info. -
ndisable_optimizer
public static void ndisable_optimizer(long struct, boolean value) Unsafe version ofdisable_optimizer. -
noptimize_size
public static void noptimize_size(long struct, boolean value) Unsafe version ofoptimize_size. -
ndisassemble
public static void ndisassemble(long struct, boolean value) Unsafe version ofdisassemble. -
nvalidate
public static void nvalidate(long struct, boolean value) Unsafe version ofvalidate. -
nemit_nonsemantic_shader_debug_info
public static void nemit_nonsemantic_shader_debug_info(long struct, boolean value) Unsafe version ofemit_nonsemantic_shader_debug_info. -
nemit_nonsemantic_shader_debug_source
public static void nemit_nonsemantic_shader_debug_source(long struct, boolean value) Unsafe version ofemit_nonsemantic_shader_debug_source. -
ncompile_only
public static void ncompile_only(long struct, boolean value) Unsafe version ofcompile_only. -
noptimize_allow_expanded_id_bound
public static void noptimize_allow_expanded_id_bound(long struct, boolean value) Unsafe version ofoptimize_allow_expanded_id_bound.
-