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.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 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
ConstructorsConstructorDescriptionVkAabbPositionsKHR(ByteBuffer container) Creates aVkAabbPositionsKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAabbPositionsKHRcalloc()Returns a newVkAabbPositionsKHRinstance allocated withmemCalloc.static VkAabbPositionsKHR.Buffercalloc(int capacity) Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemCalloc.static VkAabbPositionsKHR.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAabbPositionsKHRcalloc(MemoryStack stack) Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAabbPositionsKHRcreate()Returns a newVkAabbPositionsKHRinstance allocated withBufferUtils.static VkAabbPositionsKHR.Buffercreate(int capacity) Returns a newVkAabbPositionsKHR.Bufferinstance allocated withBufferUtils.static VkAabbPositionsKHRcreate(long address) Returns a newVkAabbPositionsKHRinstance for the specified memory address.static VkAabbPositionsKHR.Buffercreate(long address, int capacity) Create aVkAabbPositionsKHR.Bufferinstance at the specified memory.static @Nullable VkAabbPositionsKHRcreateSafe(long address) static @Nullable VkAabbPositionsKHR.BuffercreateSafe(long address, int capacity) static VkAabbPositionsKHRmalloc()Returns a newVkAabbPositionsKHRinstance allocated withmemAlloc.static VkAabbPositionsKHR.Buffermalloc(int capacity) Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemAlloc.static VkAabbPositionsKHR.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAabbPositionsKHRmalloc(MemoryStack stack) Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStack.floatmaxX()maxX(float value) Sets the specified value to themaxXfield.floatmaxY()maxY(float value) Sets the specified value to themaxYfield.floatmaxZ()maxZ(float value) Sets the specified value to themaxZfield.floatminX()minX(float value) Sets the specified value to theminXfield.floatminY()minY(float value) Sets the specified value to theminYfield.floatminZ()minZ(float value) Sets the specified value to theminZfield.static floatnmaxX(long struct) Unsafe version ofmaxX().static voidnmaxX(long struct, float value) Unsafe version ofmaxX.static floatnmaxY(long struct) Unsafe version ofmaxY().static voidnmaxY(long struct, float value) Unsafe version ofmaxY.static floatnmaxZ(long struct) Unsafe version ofmaxZ().static voidnmaxZ(long struct, float value) Unsafe version ofmaxZ.static floatnminX(long struct) Unsafe version ofminX().static voidnminX(long struct, float value) Unsafe version ofminX.static floatnminY(long struct) Unsafe version ofminY().static voidnminY(long struct, float value) Unsafe version ofminY.static floatnminZ(long struct) Unsafe version ofminZ().static voidnminZ(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.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. -
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 aVkAabbPositionsKHRinstance 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<VkAabbPositionsKHR>
-
minX
public float minX()- Returns:
- the value of the
minXfield.
-
minY
public float minY()- Returns:
- the value of the
minYfield.
-
minZ
public float minZ()- Returns:
- the value of the
minZfield.
-
maxX
public float maxX()- Returns:
- the value of the
maxXfield.
-
maxY
public float maxY()- Returns:
- the value of the
maxYfield.
-
maxZ
public float maxZ()- Returns:
- the value of the
maxZfield.
-
minX
Sets the specified value to theminXfield. -
minY
Sets the specified value to theminYfield. -
minZ
Sets the specified value to theminZfield. -
maxX
Sets the specified value to themaxXfield. -
maxY
Sets the specified value to themaxYfield. -
maxZ
Sets the specified value to themaxZfield. -
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 newVkAabbPositionsKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAabbPositionsKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAabbPositionsKHRinstance allocated withBufferUtils. -
create
Returns a newVkAabbPositionsKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAabbPositionsKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAabbPositionsKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAabbPositionsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkAabbPositionsKHR.Bufferinstance allocated on the specifiedMemoryStackand 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.
-