Package org.lwjgl.util.shaderc
Class SPVParsedOperand
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spv_parsed_operand_t {
uint16_t offset;
uint16_t num_words;
spv_operand_type_t type;
spv_number_kind_t number_kind;
uint32_t number_bit_width;
spv_fp_encoding_t fp_encoding;
}-
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 size in bytes.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
ConstructorsConstructorDescriptionSPVParsedOperand(ByteBuffer container) Creates aSPVParsedOperandinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SPVParsedOperandcalloc()Returns a newSPVParsedOperandinstance allocated withmemCalloc.static SPVParsedOperand.Buffercalloc(int capacity) Returns a newSPVParsedOperand.Bufferinstance allocated withmemCalloc.static SPVParsedOperand.Buffercalloc(int capacity, MemoryStack stack) Returns a newSPVParsedOperand.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SPVParsedOperandcalloc(MemoryStack stack) Returns a newSPVParsedOperandinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SPVParsedOperandcreate()Returns a newSPVParsedOperandinstance allocated withBufferUtils.static SPVParsedOperand.Buffercreate(int capacity) Returns a newSPVParsedOperand.Bufferinstance allocated withBufferUtils.static SPVParsedOperandcreate(long address) Returns a newSPVParsedOperandinstance for the specified memory address.static SPVParsedOperand.Buffercreate(long address, int capacity) Create aSPVParsedOperand.Bufferinstance at the specified memory.static @Nullable SPVParsedOperandcreateSafe(long address) static @Nullable SPVParsedOperand.BuffercreateSafe(long address, int capacity) intfp_encoding(int value) Sets the specified value to thefp_encodingfield.static SPVParsedOperandmalloc()Returns a newSPVParsedOperandinstance allocated withmemAlloc.static SPVParsedOperand.Buffermalloc(int capacity) Returns a newSPVParsedOperand.Bufferinstance allocated withmemAlloc.static SPVParsedOperand.Buffermalloc(int capacity, MemoryStack stack) Returns a newSPVParsedOperand.Bufferinstance allocated on the specifiedMemoryStack.static SPVParsedOperandmalloc(MemoryStack stack) Returns a newSPVParsedOperandinstance allocated on the specifiedMemoryStack.static intnfp_encoding(long struct) Unsafe version offp_encoding().static voidnfp_encoding(long struct, int value) Unsafe version offp_encoding.static shortnnum_words(long struct) Unsafe version ofnum_words().static voidnnum_words(long struct, short value) Unsafe version ofnum_words.static intnnumber_bit_width(long struct) Unsafe version ofnumber_bit_width().static voidnnumber_bit_width(long struct, int value) Unsafe version ofnumber_bit_width.static intnnumber_kind(long struct) Unsafe version ofnumber_kind().static voidnnumber_kind(long struct, int value) Unsafe version ofnumber_kind.static shortnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, short value) Unsafe version ofoffset.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.shortnum_words(short value) Sets the specified value to thenum_wordsfield.intnumber_bit_width(int value) Sets the specified value to thenumber_bit_widthfield.intnumber_kind(int value) Sets the specified value to thenumber_kindfield.shortoffset()offset(short value) Sets the specified value to theoffsetfield.set(short offset, short num_words, int type, int number_kind, int number_bit_width, int fp_encoding) Initializes this struct with the specified values.set(SPVParsedOperand src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.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. -
OFFSET
public static final int OFFSETThe struct member offsets. -
NUM_WORDS
public static final int NUM_WORDSThe struct member offsets. -
TYPE
public static final int TYPEThe struct member offsets. -
NUMBER_KIND
public static final int NUMBER_KINDThe struct member offsets. -
NUMBER_BIT_WIDTH
public static final int NUMBER_BIT_WIDTHThe struct member offsets. -
FP_ENCODING
public static final int FP_ENCODINGThe struct member offsets.
-
-
Constructor Details
-
SPVParsedOperand
Creates aSPVParsedOperandinstance 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<SPVParsedOperand>
-
offset
public short offset()- Returns:
- the value of the
offsetfield.
-
num_words
public short num_words()- Returns:
- the value of the
num_wordsfield.
-
type
public int type()- Returns:
- the value of the
typefield.
-
number_kind
public int number_kind()- Returns:
- the value of the
number_kindfield.
-
number_bit_width
public int number_bit_width()- Returns:
- the value of the
number_bit_widthfield.
-
fp_encoding
public int fp_encoding()- Returns:
- the value of the
fp_encodingfield.
-
offset
Sets the specified value to theoffsetfield. -
num_words
Sets the specified value to thenum_wordsfield. -
type
Sets the specified value to thetypefield. -
number_kind
Sets the specified value to thenumber_kindfield. -
number_bit_width
Sets the specified value to thenumber_bit_widthfield. -
fp_encoding
Sets the specified value to thefp_encodingfield. -
set
public SPVParsedOperand set(short offset, short num_words, int type, int number_kind, int number_bit_width, int fp_encoding) 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 newSPVParsedOperandinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSPVParsedOperandinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSPVParsedOperandinstance allocated withBufferUtils. -
create
Returns a newSPVParsedOperandinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSPVParsedOperand.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSPVParsedOperand.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSPVParsedOperand.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSPVParsedOperand.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSPVParsedOperandinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSPVParsedOperandinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSPVParsedOperand.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSPVParsedOperand.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
noffset
public static short noffset(long struct) Unsafe version ofoffset(). -
nnum_words
public static short nnum_words(long struct) Unsafe version ofnum_words(). -
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnumber_kind
public static int nnumber_kind(long struct) Unsafe version ofnumber_kind(). -
nnumber_bit_width
public static int nnumber_bit_width(long struct) Unsafe version ofnumber_bit_width(). -
nfp_encoding
public static int nfp_encoding(long struct) Unsafe version offp_encoding(). -
noffset
public static void noffset(long struct, short value) Unsafe version ofoffset. -
nnum_words
public static void nnum_words(long struct, short value) Unsafe version ofnum_words. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnumber_kind
public static void nnumber_kind(long struct, int value) Unsafe version ofnumber_kind. -
nnumber_bit_width
public static void nnumber_bit_width(long struct, int value) Unsafe version ofnumber_bit_width. -
nfp_encoding
public static void nfp_encoding(long struct, int value) Unsafe version offp_encoding.
-