public class SpvcBufferRange
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct SpvcBufferRange {
unsigned int index;
size_t offset;
size_t range;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcBufferRange.Buffer
An array of
SpvcBufferRange structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INDEX
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
RANGE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SpvcBufferRange(java.nio.ByteBuffer container)
Creates a
SpvcBufferRange instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static SpvcBufferRange |
calloc()
Returns a new
SpvcBufferRange instance allocated with memCalloc. |
static SpvcBufferRange.Buffer |
calloc(int capacity)
Returns a new
SpvcBufferRange.Buffer instance allocated with memCalloc. |
static SpvcBufferRange |
callocStack()
Returns a new
SpvcBufferRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcBufferRange.Buffer |
callocStack(int capacity)
Returns a new
SpvcBufferRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcBufferRange.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcBufferRange.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcBufferRange |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcBufferRange instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcBufferRange |
create()
Returns a new
SpvcBufferRange instance allocated with BufferUtils. |
static SpvcBufferRange.Buffer |
create(int capacity)
Returns a new
SpvcBufferRange.Buffer instance allocated with BufferUtils. |
static SpvcBufferRange |
create(long address)
Returns a new
SpvcBufferRange instance for the specified memory address. |
static SpvcBufferRange.Buffer |
create(long address,
int capacity)
Create a
SpvcBufferRange.Buffer instance at the specified memory. |
static SpvcBufferRange |
createSafe(long address)
|
static SpvcBufferRange.Buffer |
createSafe(long address,
int capacity)
|
int |
index()
Returns the value of the
index field. |
SpvcBufferRange |
index(int value)
Sets the specified value to the
index field. |
static SpvcBufferRange |
malloc()
Returns a new
SpvcBufferRange instance allocated with memAlloc. |
static SpvcBufferRange.Buffer |
malloc(int capacity)
Returns a new
SpvcBufferRange.Buffer instance allocated with memAlloc. |
static SpvcBufferRange |
mallocStack()
Returns a new
SpvcBufferRange instance allocated on the thread-local MemoryStack. |
static SpvcBufferRange.Buffer |
mallocStack(int capacity)
Returns a new
SpvcBufferRange.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcBufferRange.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcBufferRange.Buffer instance allocated on the specified MemoryStack. |
static SpvcBufferRange |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcBufferRange instance allocated on the specified MemoryStack. |
static int |
nindex(long struct)
Unsafe version of
index(). |
static void |
nindex(long struct,
int value)
Unsafe version of
index. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
static long |
nrange(long struct)
Unsafe version of
range(). |
static void |
nrange(long struct,
long value)
Unsafe version of
range. |
long |
offset()
Returns the value of the
offset field. |
SpvcBufferRange |
offset(long value)
Sets the specified value to the
offset field. |
long |
range()
Returns the value of the
range field. |
SpvcBufferRange |
range(long value)
Sets the specified value to the
range field. |
SpvcBufferRange |
set(int index,
long offset,
long range)
Initializes this struct with the specified values.
|
SpvcBufferRange |
set(SpvcBufferRange src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int INDEX
public static final int OFFSET
public static final int RANGE
public SpvcBufferRange(java.nio.ByteBuffer container)
SpvcBufferRange 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int index()
index field.public long offset()
offset field.public long range()
range field.public SpvcBufferRange index(int value)
index field.public SpvcBufferRange offset(long value)
offset field.public SpvcBufferRange range(long value)
range field.public SpvcBufferRange set(int index, long offset, long range)
public SpvcBufferRange set(SpvcBufferRange src)
src - the source structpublic static SpvcBufferRange malloc()
SpvcBufferRange instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcBufferRange calloc()
SpvcBufferRange instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcBufferRange create()
SpvcBufferRange instance allocated with BufferUtils.public static SpvcBufferRange create(long address)
SpvcBufferRange instance for the specified memory address.@Nullable public static SpvcBufferRange createSafe(long address)
public static SpvcBufferRange.Buffer malloc(int capacity)
SpvcBufferRange.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcBufferRange.Buffer calloc(int capacity)
SpvcBufferRange.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcBufferRange.Buffer create(int capacity)
SpvcBufferRange.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcBufferRange.Buffer create(long address, int capacity)
SpvcBufferRange.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcBufferRange.Buffer createSafe(long address, int capacity)
public static SpvcBufferRange mallocStack()
SpvcBufferRange instance allocated on the thread-local MemoryStack.public static SpvcBufferRange callocStack()
SpvcBufferRange instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcBufferRange mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcBufferRange instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcBufferRange callocStack(org.lwjgl.system.MemoryStack stack)
SpvcBufferRange instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcBufferRange.Buffer mallocStack(int capacity)
SpvcBufferRange.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcBufferRange.Buffer callocStack(int capacity)
SpvcBufferRange.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcBufferRange.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcBufferRange.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcBufferRange.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcBufferRange.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nindex(long struct)
index().public static long noffset(long struct)
offset().public static long nrange(long struct)
range().public static void nindex(long struct,
int value)
index.public static void noffset(long struct,
long value)
offset.public static void nrange(long struct,
long value)
range.Copyright LWJGL. All Rights Reserved. License terms.