Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkAabbPositionsKHR

extends Struct<VkAabbPositionsKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkAabbPositionsNV
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying two opposing corners of an axis-aligned bounding box.
Valid Usage

Layout


struct VkAabbPositionsKHR {
    float minX;
    float minY;
    float minZ;
    float maxX;
    float maxY;
    float maxZ;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MAXX

The struct member offsets.

public static final int
MAXY

The struct member offsets.

public static final int
MAXZ

The struct member offsets.

public static final int
MINX

The struct member offsets.

public static final int
MINY

The struct member offsets.

public static final int
MINZ

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkAabbPositionsKHR(long address, ByteBuffer container)

public
VkAabbPositionsKHR(ByteBuffer container)

Creates a VkAabbPositionsKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkAabbPositionsKHR
calloc()

Returns a new VkAabbPositionsKHR instance allocated with memCalloc.

public static VkAabbPositionsKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkAabbPositionsKHR.Buffer instance allocated with memCalloc.

public static VkAabbPositionsKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkAabbPositionsKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkAabbPositionsKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkAabbPositionsKHR
create()

Returns a new VkAabbPositionsKHR instance allocated with BufferUtils.

public static VkAabbPositionsKHR
create(long address)

Returns a new VkAabbPositionsKHR instance for the specified memory address.

public static VkAabbPositionsKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkAabbPositionsKHR.Buffer instance allocated with BufferUtils.

public static VkAabbPositionsKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkAabbPositionsKHR.Buffer instance at the specified memory.

public static VkAabbPositionsKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkAabbPositionsKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static VkAabbPositionsKHR
malloc()

Returns a new VkAabbPositionsKHR instance allocated with memAlloc.

public static VkAabbPositionsKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkAabbPositionsKHR.Buffer instance allocated with memAlloc.

public static VkAabbPositionsKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack.

public static VkAabbPositionsKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack.

public float
maxX()

the x position of the other opposing corner of a bounding box.

public VkAabbPositionsKHR
maxX(float value)

Sets the specified value to the maxX field.

public float
maxY()

the y position of the other opposing corner of a bounding box.

public VkAabbPositionsKHR
maxY(float value)

Sets the specified value to the maxY field.

public float
maxZ()

the z position of the other opposing corner of a bounding box.

public VkAabbPositionsKHR
maxZ(float value)

Sets the specified value to the maxZ field.

public float
minX()

the x position of one opposing corner of a bounding box.

public VkAabbPositionsKHR
minX(float value)

Sets the specified value to the minX field.

public float
minY()

the y position of one opposing corner of a bounding box.

public VkAabbPositionsKHR
minY(float value)

Sets the specified value to the minY field.

public float
minZ()

the z position of one opposing corner of a bounding box.

public VkAabbPositionsKHR
minZ(float value)

Sets the specified value to the minZ field.

public static float
nmaxX(long struct)

Unsafe version of maxX.

public static void
nmaxX(long struct, float value)

Unsafe version of maxX.

public static float
nmaxY(long struct)

Unsafe version of maxY.

public static void
nmaxY(long struct, float value)

Unsafe version of maxY.

public static float
nmaxZ(long struct)

Unsafe version of maxZ.

public static void
nmaxZ(long struct, float value)

Unsafe version of maxZ.

public static float
nminX(long struct)

Unsafe version of minX.

public static void
nminX(long struct, float value)

Unsafe version of minX.

public static float
nminY(long struct)

Unsafe version of minY.

public static void
nminY(long struct, float value)

Unsafe version of minY.

public static float
nminZ(long struct)

Unsafe version of minZ.

public static void
nminZ(long struct, float value)

Unsafe version of minZ.

public VkAabbPositionsKHR
set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)

Initializes this struct with the specified values.

public VkAabbPositionsKHR

Returns:

this struct
set
(VkAabbPositionsKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

MAXXback to summary
public static final int MAXX

The struct member offsets.

MAXYback to summary
public static final int MAXY

The struct member offsets.

MAXZback to summary
public static final int MAXZ

The struct member offsets.

MINXback to summary
public static final int MINX

The struct member offsets.

MINYback to summary
public static final int MINY

The struct member offsets.

MINZback to summary
public static final int MINZ

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

Constructor Detail

VkAabbPositionsKHRback to summary
protected VkAabbPositionsKHR(long address, ByteBuffer container)
VkAabbPositionsKHRback to summary
public VkAabbPositionsKHR(ByteBuffer container)

Creates a VkAabbPositionsKHR 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.

Method Detail

callocback to summary
public static VkAabbPositionsKHR calloc()

Returns a new VkAabbPositionsKHR instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static VkAabbPositionsKHR.Buffer calloc(int capacity)

Returns a new VkAabbPositionsKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static VkAabbPositionsKHR calloc(MemoryStack stack)

Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static VkAabbPositionsKHR.Buffer calloc(int capacity, MemoryStack stack)

Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected VkAabbPositionsKHR create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static VkAabbPositionsKHR create()

Returns a new VkAabbPositionsKHR instance allocated with BufferUtils.

createback to summary
public static VkAabbPositionsKHR create(long address)

Returns a new VkAabbPositionsKHR instance for the specified memory address.

createback to summary
public static VkAabbPositionsKHR.Buffer create(int capacity)

Returns a new VkAabbPositionsKHR.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static VkAabbPositionsKHR.Buffer create(long address, int capacity)

Create a VkAabbPositionsKHR.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static VkAabbPositionsKHR createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static VkAabbPositionsKHR.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
mallocback to summary
public static VkAabbPositionsKHR malloc()

Returns a new VkAabbPositionsKHR instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static VkAabbPositionsKHR.Buffer malloc(int capacity)

Returns a new VkAabbPositionsKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static VkAabbPositionsKHR malloc(MemoryStack stack)

Returns a new VkAabbPositionsKHR instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static VkAabbPositionsKHR.Buffer malloc(int capacity, MemoryStack stack)

Returns a new VkAabbPositionsKHR.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

maxXback to summary
public float maxX()

the x position of the other opposing corner of a bounding box.

maxXback to summary
public VkAabbPositionsKHR maxX(float value)

Sets the specified value to the maxX field.

maxYback to summary
public float maxY()

the y position of the other opposing corner of a bounding box.

maxYback to summary
public VkAabbPositionsKHR maxY(float value)

Sets the specified value to the maxY field.

maxZback to summary
public float maxZ()

the z position of the other opposing corner of a bounding box.

maxZback to summary
public VkAabbPositionsKHR maxZ(float value)

Sets the specified value to the maxZ field.

minXback to summary
public float minX()

the x position of one opposing corner of a bounding box.

minXback to summary
public VkAabbPositionsKHR minX(float value)

Sets the specified value to the minX field.

minYback to summary
public float minY()

the y position of one opposing corner of a bounding box.

minYback to summary
public VkAabbPositionsKHR minY(float value)

Sets the specified value to the minY field.

minZback to summary
public float minZ()

the z position of one opposing corner of a bounding box.

minZback to summary
public VkAabbPositionsKHR minZ(float value)

Sets the specified value to the minZ field.

nmaxXback to summary
public static float nmaxX(long struct)

Unsafe version of maxX.

nmaxXback to summary
public static void nmaxX(long struct, float value)

Unsafe version of maxX.

nmaxYback to summary
public static float nmaxY(long struct)

Unsafe version of maxY.

nmaxYback to summary
public static void nmaxY(long struct, float value)

Unsafe version of maxY.

nmaxZback to summary
public static float nmaxZ(long struct)

Unsafe version of maxZ.

nmaxZback to summary
public static void nmaxZ(long struct, float value)

Unsafe version of maxZ.

nminXback to summary
public static float nminX(long struct)

Unsafe version of minX.

nminXback to summary
public static void nminX(long struct, float value)

Unsafe version of minX.

nminYback to summary
public static float nminY(long struct)

Unsafe version of minY.

nminYback to summary
public static void nminY(long struct, float value)

Unsafe version of minY.

nminZback to summary
public static float nminZ(long struct)

Unsafe version of minZ.

nminZback to summary
public static void nminZ(long struct, float value)

Unsafe version of minZ.

setback to summary
public VkAabbPositionsKHR set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)

Initializes this struct with the specified values.

setback to summary
public VkAabbPositionsKHR set(VkAabbPositionsKHR src)

Copies the specified struct data to this struct.

Parameters
src:VkAabbPositionsKHR

the source struct

Returns:VkAabbPositionsKHR

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
org.lwjgl.vulkan back to summary

public Class VkAabbPositionsKHR.Buffer

extends StructBuffer<VkAabbPositionsKHR, VkAabbPositionsKHR.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkAabbPositionsNV.Buffer

An array of VkAabbPositionsKHR structs.

Field Summary

Modifier and TypeField and Description
private static final VkAabbPositionsKHR

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new VkAabbPositionsKHR.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
protected VkAabbPositionsKHR
public float

Returns:

the value of the VkAabbPositionsKHR#maxX field.
maxX
()

public VkAabbPositionsKHR.Buffer
maxX(float value)

Sets the specified value to the VkAabbPositionsKHR#maxX field.

public float

Returns:

the value of the VkAabbPositionsKHR#maxY field.
maxY
()

public VkAabbPositionsKHR.Buffer
maxY(float value)

Sets the specified value to the VkAabbPositionsKHR#maxY field.

public float

Returns:

the value of the VkAabbPositionsKHR#maxZ field.
maxZ
()

public VkAabbPositionsKHR.Buffer
maxZ(float value)

Sets the specified value to the VkAabbPositionsKHR#maxZ field.

public float

Returns:

the value of the VkAabbPositionsKHR#minX field.
minX
()

public VkAabbPositionsKHR.Buffer
minX(float value)

Sets the specified value to the VkAabbPositionsKHR#minX field.

public float

Returns:

the value of the VkAabbPositionsKHR#minY field.
minY
()

public VkAabbPositionsKHR.Buffer
minY(float value)

Sets the specified value to the VkAabbPositionsKHR#minY field.

public float

Returns:

the value of the VkAabbPositionsKHR#minZ field.
minZ
()

public VkAabbPositionsKHR.Buffer
minZ(float value)

Sets the specified value to the VkAabbPositionsKHR#minZ field.

protected VkAabbPositionsKHR.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final VkAabbPositionsKHR ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new VkAabbPositionsKHR.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VkAabbPositionsKHR#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

getElementFactoryback to summary
protected VkAabbPositionsKHR getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
maxXback to summary
public float maxX()
Returns:float

the value of the VkAabbPositionsKHR#maxX field.

maxXback to summary
public VkAabbPositionsKHR.Buffer maxX(float value)

Sets the specified value to the VkAabbPositionsKHR#maxX field.

maxYback to summary
public float maxY()
Returns:float

the value of the VkAabbPositionsKHR#maxY field.

maxYback to summary
public VkAabbPositionsKHR.Buffer maxY(float value)

Sets the specified value to the VkAabbPositionsKHR#maxY field.

maxZback to summary
public float maxZ()
Returns:float

the value of the VkAabbPositionsKHR#maxZ field.

maxZback to summary
public VkAabbPositionsKHR.Buffer maxZ(float value)

Sets the specified value to the VkAabbPositionsKHR#maxZ field.

minXback to summary
public float minX()
Returns:float

the value of the VkAabbPositionsKHR#minX field.

minXback to summary
public VkAabbPositionsKHR.Buffer minX(float value)

Sets the specified value to the VkAabbPositionsKHR#minX field.

minYback to summary
public float minY()
Returns:float

the value of the VkAabbPositionsKHR#minY field.

minYback to summary
public VkAabbPositionsKHR.Buffer minY(float value)

Sets the specified value to the VkAabbPositionsKHR#minY field.

minZback to summary
public float minZ()
Returns:float

the value of the VkAabbPositionsKHR#minZ field.

minZback to summary
public VkAabbPositionsKHR.Buffer minZ(float value)

Sets the specified value to the VkAabbPositionsKHR#minZ field.

selfback to summary
protected VkAabbPositionsKHR.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override