Package org.lwjgl.util.shaderc
Class SPVPosition
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spv_position_t {
size_t line;
size_t column;
size_t index;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSPVPosition(ByteBuffer container) Creates aSPVPositioninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SPVPositioncalloc()Returns a newSPVPositioninstance allocated withmemCalloc.static SPVPosition.Buffercalloc(int capacity) Returns a newSPVPosition.Bufferinstance allocated withmemCalloc.static SPVPosition.Buffercalloc(int capacity, MemoryStack stack) Returns a newSPVPosition.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SPVPositioncalloc(MemoryStack stack) Returns a newSPVPositioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.longcolumn()column(long value) Sets the specified value to thecolumnfield.static SPVPositioncreate()Returns a newSPVPositioninstance allocated withBufferUtils.static SPVPosition.Buffercreate(int capacity) Returns a newSPVPosition.Bufferinstance allocated withBufferUtils.static SPVPositioncreate(long address) Returns a newSPVPositioninstance for the specified memory address.static SPVPosition.Buffercreate(long address, int capacity) Create aSPVPosition.Bufferinstance at the specified memory.static @Nullable SPVPositioncreateSafe(long address) static @Nullable SPVPosition.BuffercreateSafe(long address, int capacity) longindex()index(long value) Sets the specified value to theindexfield.longline()line(long value) Sets the specified value to thelinefield.static SPVPositionmalloc()Returns a newSPVPositioninstance allocated withmemAlloc.static SPVPosition.Buffermalloc(int capacity) Returns a newSPVPosition.Bufferinstance allocated withmemAlloc.static SPVPosition.Buffermalloc(int capacity, MemoryStack stack) Returns a newSPVPosition.Bufferinstance allocated on the specifiedMemoryStack.static SPVPositionmalloc(MemoryStack stack) Returns a newSPVPositioninstance allocated on the specifiedMemoryStack.static longncolumn(long struct) Unsafe version ofcolumn().static voidncolumn(long struct, long value) Unsafe version ofcolumn.static longnindex(long struct) Unsafe version ofindex().static voidnindex(long struct, long value) Unsafe version ofindex.static longnline(long struct) Unsafe version ofline().static voidnline(long struct, long value) Unsafe version ofline.set(long line, long column, long index) Initializes this struct with the specified values.set(SPVPosition src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
LINE
public static final int LINEThe struct member offsets. -
COLUMN
public static final int COLUMNThe struct member offsets. -
INDEX
public static final int INDEXThe struct member offsets.
-
-
Constructor Details
-
SPVPosition
Creates aSPVPositioninstance 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<SPVPosition>
-
line
public long line()- Returns:
- the value of the
linefield.
-
column
public long column()- Returns:
- the value of the
columnfield.
-
index
public long index()- Returns:
- the value of the
indexfield.
-
line
Sets the specified value to thelinefield. -
column
Sets the specified value to thecolumnfield. -
index
Sets the specified value to theindexfield. -
set
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 newSPVPositioninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSPVPositioninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSPVPositioninstance allocated withBufferUtils. -
create
Returns a newSPVPositioninstance for the specified memory address. -
createSafe
-
malloc
Returns a newSPVPosition.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSPVPosition.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSPVPosition.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSPVPosition.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSPVPositioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSPVPositioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSPVPosition.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSPVPosition.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nline
public static long nline(long struct) Unsafe version ofline(). -
ncolumn
public static long ncolumn(long struct) Unsafe version ofcolumn(). -
nindex
public static long nindex(long struct) Unsafe version ofindex(). -
nline
public static void nline(long struct, long value) Unsafe version ofline. -
ncolumn
public static void ncolumn(long struct, long value) Unsafe version ofcolumn. -
nindex
public static void nindex(long struct, long value) Unsafe version ofindex.
-