public class VkGeometryAABBNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The AABB data in memory is six 32-bit floats consisting of the minimum x, y, and z values followed by the maximum x, y, and z values.
offset must be less than the size of aabbDataoffset must be a multiple of 8stride must be a multiple of 8sType must be STRUCTURE_TYPE_GEOMETRY_AABB_NVpNext must be NULLaabbData is not NULL_HANDLE, aabbData must be a valid VkBuffer handlesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.aabbData – the buffer containing axis-aligned bounding box data.numAABBs – the number of AABBs in this geometry.stride – the stride in bytes between AABBs in aabbData.offset – the offset in bytes of the first AABB in aabbData.
struct VkGeometryAABBNV {
VkStructureType sType;
void const * pNext;
VkBuffer aabbData;
uint32_t numAABBs;
uint32_t stride;
VkDeviceSize offset;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkGeometryAABBNV.Buffer
An array of
VkGeometryAABBNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
AABBDATA
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NUMAABBS
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STRIDE
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkGeometryAABBNV(java.nio.ByteBuffer container)
Creates a
VkGeometryAABBNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
aabbData()
Returns the value of the
aabbData field. |
VkGeometryAABBNV |
aabbData(long value)
Sets the specified value to the
aabbData field. |
static VkGeometryAABBNV |
calloc()
Returns a new
VkGeometryAABBNV instance allocated with memCalloc. |
static VkGeometryAABBNV.Buffer |
calloc(int capacity)
Returns a new
VkGeometryAABBNV.Buffer instance allocated with memCalloc. |
static VkGeometryAABBNV |
callocStack()
Returns a new
VkGeometryAABBNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryAABBNV.Buffer |
callocStack(int capacity)
Returns a new
VkGeometryAABBNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryAABBNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryAABBNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGeometryAABBNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryAABBNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGeometryAABBNV |
create()
Returns a new
VkGeometryAABBNV instance allocated with BufferUtils. |
static VkGeometryAABBNV.Buffer |
create(int capacity)
Returns a new
VkGeometryAABBNV.Buffer instance allocated with BufferUtils. |
static VkGeometryAABBNV |
create(long address)
Returns a new
VkGeometryAABBNV instance for the specified memory address. |
static VkGeometryAABBNV.Buffer |
create(long address,
int capacity)
Create a
VkGeometryAABBNV.Buffer instance at the specified memory. |
static VkGeometryAABBNV |
createSafe(long address)
|
static VkGeometryAABBNV.Buffer |
createSafe(long address,
int capacity)
|
static VkGeometryAABBNV |
malloc()
Returns a new
VkGeometryAABBNV instance allocated with memAlloc. |
static VkGeometryAABBNV.Buffer |
malloc(int capacity)
Returns a new
VkGeometryAABBNV.Buffer instance allocated with memAlloc. |
static VkGeometryAABBNV |
mallocStack()
Returns a new
VkGeometryAABBNV instance allocated on the thread-local MemoryStack. |
static VkGeometryAABBNV.Buffer |
mallocStack(int capacity)
Returns a new
VkGeometryAABBNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkGeometryAABBNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryAABBNV.Buffer instance allocated on the specified MemoryStack. |
static VkGeometryAABBNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryAABBNV instance allocated on the specified MemoryStack. |
static long |
naabbData(long struct)
Unsafe version of
aabbData(). |
static void |
naabbData(long struct,
long value)
Unsafe version of
aabbData. |
static int |
nnumAABBs(long struct)
Unsafe version of
numAABBs(). |
static void |
nnumAABBs(long struct,
int value)
Unsafe version of
numAABBs. |
static long |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
long value)
Unsafe version of
offset. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nstride(long struct)
Unsafe version of
stride(). |
static void |
nstride(long struct,
int value)
Unsafe version of
stride. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
int |
numAABBs()
Returns the value of the
numAABBs field. |
VkGeometryAABBNV |
numAABBs(int value)
Sets the specified value to the
numAABBs field. |
long |
offset()
Returns the value of the
offset field. |
VkGeometryAABBNV |
offset(long value)
Sets the specified value to the
offset field. |
long |
pNext()
Returns the value of the
pNext field. |
VkGeometryAABBNV |
pNext(long value)
Sets the specified value to the
pNext field. |
VkGeometryAABBNV |
set(int sType,
long pNext,
long aabbData,
int numAABBs,
int stride,
long offset)
Initializes this struct with the specified values.
|
VkGeometryAABBNV |
set(VkGeometryAABBNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
stride()
Returns the value of the
stride field. |
VkGeometryAABBNV |
stride(int value)
Sets the specified value to the
stride field. |
int |
sType()
Returns the value of the
sType field. |
VkGeometryAABBNV |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int AABBDATA
public static final int NUMAABBS
public static final int STRIDE
public static final int OFFSET
public VkGeometryAABBNV(java.nio.ByteBuffer container)
VkGeometryAABBNV 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 sType()
sType field.public long pNext()
pNext field.public long aabbData()
aabbData field.public int numAABBs()
numAABBs field.public int stride()
stride field.public long offset()
offset field.public VkGeometryAABBNV sType(int value)
sType field.public VkGeometryAABBNV pNext(long value)
pNext field.public VkGeometryAABBNV aabbData(long value)
aabbData field.public VkGeometryAABBNV numAABBs(int value)
numAABBs field.public VkGeometryAABBNV stride(int value)
stride field.public VkGeometryAABBNV offset(long value)
offset field.public VkGeometryAABBNV set(int sType, long pNext, long aabbData, int numAABBs, int stride, long offset)
public VkGeometryAABBNV set(VkGeometryAABBNV src)
src - the source structpublic static VkGeometryAABBNV malloc()
VkGeometryAABBNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkGeometryAABBNV calloc()
VkGeometryAABBNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkGeometryAABBNV create()
VkGeometryAABBNV instance allocated with BufferUtils.public static VkGeometryAABBNV create(long address)
VkGeometryAABBNV instance for the specified memory address.@Nullable public static VkGeometryAABBNV createSafe(long address)
public static VkGeometryAABBNV.Buffer malloc(int capacity)
VkGeometryAABBNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryAABBNV.Buffer calloc(int capacity)
VkGeometryAABBNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryAABBNV.Buffer create(int capacity)
VkGeometryAABBNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkGeometryAABBNV.Buffer create(long address, int capacity)
VkGeometryAABBNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkGeometryAABBNV.Buffer createSafe(long address, int capacity)
public static VkGeometryAABBNV mallocStack()
VkGeometryAABBNV instance allocated on the thread-local MemoryStack.public static VkGeometryAABBNV callocStack()
VkGeometryAABBNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkGeometryAABBNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryAABBNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkGeometryAABBNV callocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryAABBNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkGeometryAABBNV.Buffer mallocStack(int capacity)
VkGeometryAABBNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkGeometryAABBNV.Buffer callocStack(int capacity)
VkGeometryAABBNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkGeometryAABBNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryAABBNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkGeometryAABBNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryAABBNV.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long naabbData(long struct)
aabbData().public static int nnumAABBs(long struct)
numAABBs().public static int nstride(long struct)
stride().public static long noffset(long struct)
offset().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void naabbData(long struct,
long value)
aabbData.public static void nnumAABBs(long struct,
int value)
numAABBs.public static void nstride(long struct,
int value)
stride.public static void noffset(long struct,
long value)
offset.Copyright LWJGL. All Rights Reserved. License terms.