Package org.lwjgl.vulkan
Class VkAabbPositionsKHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
- Direct Known Subclasses:
VkAabbPositionsNV
struct VkAabbPositionsKHR {
float minX;
float minY;
float minZ;
float maxX;
float maxY;
float maxZ;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkAabbPositionsKHR
(ByteBuffer container) Creates aVkAabbPositionsKHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAabbPositionsKHR
calloc()
Returns a newVkAabbPositionsKHR
instance allocated withmemCalloc
.static VkAabbPositionsKHR.Buffer
calloc
(int capacity) Returns a newVkAabbPositionsKHR.Buffer
instance allocated withmemCalloc
.static VkAabbPositionsKHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkAabbPositionsKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAabbPositionsKHR
calloc
(MemoryStack stack) Returns a newVkAabbPositionsKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkAabbPositionsKHR
create()
Returns a newVkAabbPositionsKHR
instance allocated withBufferUtils
.static VkAabbPositionsKHR.Buffer
create
(int capacity) Returns a newVkAabbPositionsKHR.Buffer
instance allocated withBufferUtils
.static VkAabbPositionsKHR
create
(long address) Returns a newVkAabbPositionsKHR
instance for the specified memory address.static VkAabbPositionsKHR.Buffer
create
(long address, int capacity) Create aVkAabbPositionsKHR.Buffer
instance at the specified memory.static @Nullable VkAabbPositionsKHR
createSafe
(long address) static @Nullable VkAabbPositionsKHR.Buffer
createSafe
(long address, int capacity) static VkAabbPositionsKHR
malloc()
Returns a newVkAabbPositionsKHR
instance allocated withmemAlloc
.static VkAabbPositionsKHR.Buffer
malloc
(int capacity) Returns a newVkAabbPositionsKHR.Buffer
instance allocated withmemAlloc
.static VkAabbPositionsKHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkAabbPositionsKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkAabbPositionsKHR
malloc
(MemoryStack stack) Returns a newVkAabbPositionsKHR
instance allocated on the specifiedMemoryStack
.float
maxX()
maxX
(float value) Sets the specified value to themaxX
field.float
maxY()
maxY
(float value) Sets the specified value to themaxY
field.float
maxZ()
maxZ
(float value) Sets the specified value to themaxZ
field.float
minX()
minX
(float value) Sets the specified value to theminX
field.float
minY()
minY
(float value) Sets the specified value to theminY
field.float
minZ()
minZ
(float value) Sets the specified value to theminZ
field.static float
nmaxX
(long struct) Unsafe version ofmaxX()
.static void
nmaxX
(long struct, float value) Unsafe version ofmaxX
.static float
nmaxY
(long struct) Unsafe version ofmaxY()
.static void
nmaxY
(long struct, float value) Unsafe version ofmaxY
.static float
nmaxZ
(long struct) Unsafe version ofmaxZ()
.static void
nmaxZ
(long struct, float value) Unsafe version ofmaxZ
.static float
nminX
(long struct) Unsafe version ofminX()
.static void
nminX
(long struct, float value) Unsafe version ofminX
.static float
nminY
(long struct) Unsafe version ofminY()
.static void
nminY
(long struct, float value) Unsafe version ofminY
.static float
nminZ
(long struct) Unsafe version ofminZ()
.static void
nminZ
(long struct, float value) Unsafe version ofminZ
.set
(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Initializes this struct with the specified values.set
(VkAabbPositionsKHR src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
MINX
public static final int MINXThe struct member offsets. -
MINY
public static final int MINYThe struct member offsets. -
MINZ
public static final int MINZThe struct member offsets. -
MAXX
public static final int MAXXThe struct member offsets. -
MAXY
public static final int MAXYThe struct member offsets. -
MAXZ
public static final int MAXZThe struct member offsets.
-
-
Constructor Details
-
VkAabbPositionsKHR
Creates aVkAabbPositionsKHR
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkAabbPositionsKHR>
-
minX
public float minX()- Returns:
- the value of the
minX
field.
-
minY
public float minY()- Returns:
- the value of the
minY
field.
-
minZ
public float minZ()- Returns:
- the value of the
minZ
field.
-
maxX
public float maxX()- Returns:
- the value of the
maxX
field.
-
maxY
public float maxY()- Returns:
- the value of the
maxY
field.
-
maxZ
public float maxZ()- Returns:
- the value of the
maxZ
field.
-
minX
Sets the specified value to theminX
field. -
minY
Sets the specified value to theminY
field. -
minZ
Sets the specified value to theminZ
field. -
maxX
Sets the specified value to themaxX
field. -
maxY
Sets the specified value to themaxY
field. -
maxZ
Sets the specified value to themaxZ
field. -
set
public VkAabbPositionsKHR set(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) 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 newVkAabbPositionsKHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAabbPositionsKHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAabbPositionsKHR
instance allocated withBufferUtils
. -
create
Returns a newVkAabbPositionsKHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAabbPositionsKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAabbPositionsKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAabbPositionsKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkAabbPositionsKHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkAabbPositionsKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAabbPositionsKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkAabbPositionsKHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkAabbPositionsKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nminX
public static float nminX(long struct) Unsafe version ofminX()
. -
nminY
public static float nminY(long struct) Unsafe version ofminY()
. -
nminZ
public static float nminZ(long struct) Unsafe version ofminZ()
. -
nmaxX
public static float nmaxX(long struct) Unsafe version ofmaxX()
. -
nmaxY
public static float nmaxY(long struct) Unsafe version ofmaxY()
. -
nmaxZ
public static float nmaxZ(long struct) Unsafe version ofmaxZ()
. -
nminX
public static void nminX(long struct, float value) Unsafe version ofminX
. -
nminY
public static void nminY(long struct, float value) Unsafe version ofminY
. -
nminZ
public static void nminZ(long struct, float value) Unsafe version ofminZ
. -
nmaxX
public static void nmaxX(long struct, float value) Unsafe version ofmaxX
. -
nmaxY
public static void nmaxY(long struct, float value) Unsafe version ofmaxY
. -
nmaxZ
public static void nmaxZ(long struct, float value) Unsafe version ofmaxZ
.
-