Package org.lwjgl.vulkan
Class VkAccelerationStructureGeometrySpheresDataNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureGeometrySpheresDataNV>
org.lwjgl.vulkan.VkAccelerationStructureGeometrySpheresDataNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkAccelerationStructureGeometrySpheresDataNV
extends Struct<VkAccelerationStructureGeometrySpheresDataNV>
implements NativeResource
struct VkAccelerationStructureGeometrySpheresDataNV {
VkStructureType sType;
void const * pNext;
VkFormat vertexFormat;
VkDeviceOrHostAddressConstKHR vertexData;
VkDeviceSize vertexStride;
VkFormat radiusFormat;
VkDeviceOrHostAddressConstKHR radiusData;
VkDeviceSize radiusStride;
VkIndexType indexType;
VkDeviceOrHostAddressConstKHR indexData;
VkDeviceSize indexStride;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkAccelerationStructureGeometrySpheresDataNVstructs.Nested 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 member offsets.static final intThe struct size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkAccelerationStructureGeometrySpheresDataNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance for the specified memory address.create(long address, int capacity) Create aVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance at the specified memory.static @Nullable VkAccelerationStructureGeometrySpheresDataNVcreateSafe(long address) static @Nullable VkAccelerationStructureGeometrySpheresDataNV.BuffercreateSafe(long address, int capacity) indexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto theindexDatafield.longindexStride(long value) Sets the specified value to theindexStridefield.intindexType(int value) Sets the specified value to theindexTypefield.malloc()Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated on the specifiedMemoryStack.nindexData(long struct) Unsafe version ofindexData().static voidnindexData(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofindexData.static longnindexStride(long struct) Unsafe version ofindexStride().static voidnindexStride(long struct, long value) Unsafe version ofindexStride.static intnindexType(long struct) Unsafe version ofindexType().static voidnindexType(long struct, int value) Unsafe version ofindexType.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.nradiusData(long struct) Unsafe version ofradiusData().static voidnradiusData(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofradiusData.static intnradiusFormat(long struct) Unsafe version ofradiusFormat().static voidnradiusFormat(long struct, int value) Unsafe version ofradiusFormat.static longnradiusStride(long struct) Unsafe version ofradiusStride().static voidnradiusStride(long struct, long value) Unsafe version ofradiusStride.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.nvertexData(long struct) Unsafe version ofvertexData().static voidnvertexData(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofvertexData.static intnvertexFormat(long struct) Unsafe version ofvertexFormat().static voidnvertexFormat(long struct, int value) Unsafe version ofvertexFormat.static longnvertexStride(long struct) Unsafe version ofvertexStride().static voidnvertexStride(long struct, long value) Unsafe version ofvertexStride.longpNext()pNext(long value) Sets the specified value to thepNextfield.radiusData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theradiusDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto theradiusDatafield.intradiusFormat(int value) Sets the specified value to theradiusFormatfield.longradiusStride(long value) Sets the specified value to theradiusStridefield.set(int sType, long pNext, int vertexFormat, VkDeviceOrHostAddressConstKHR vertexData, long vertexStride, int radiusFormat, VkDeviceOrHostAddressConstKHR radiusData, long radiusStride, int indexType, VkDeviceOrHostAddressConstKHR indexData, long indexStride) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_SPHERES_DATA_NVvalue to thesTypefield.vertexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thevertexDatafield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstKHRto thevertexDatafield.intvertexFormat(int value) Sets the specified value to thevertexFormatfield.longvertexStride(long value) Sets the specified value to thevertexStridefield.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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
VERTEXFORMAT
public static final int VERTEXFORMATThe struct member offsets. -
VERTEXDATA
public static final int VERTEXDATAThe struct member offsets. -
VERTEXSTRIDE
public static final int VERTEXSTRIDEThe struct member offsets. -
RADIUSFORMAT
public static final int RADIUSFORMATThe struct member offsets. -
RADIUSDATA
public static final int RADIUSDATAThe struct member offsets. -
RADIUSSTRIDE
public static final int RADIUSSTRIDEThe struct member offsets. -
INDEXTYPE
public static final int INDEXTYPEThe struct member offsets. -
INDEXDATA
public static final int INDEXDATAThe struct member offsets. -
INDEXSTRIDE
public static final int INDEXSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureGeometrySpheresDataNV
Creates aVkAccelerationStructureGeometrySpheresDataNVinstance 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<VkAccelerationStructureGeometrySpheresDataNV>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormatfield.
-
vertexData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of thevertexDatafield.
-
vertexStride
public long vertexStride()- Returns:
- the value of the
vertexStridefield.
-
radiusFormat
public int radiusFormat()- Returns:
- the value of the
radiusFormatfield.
-
radiusData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of theradiusDatafield.
-
radiusStride
public long radiusStride()- Returns:
- the value of the
radiusStridefield.
-
indexType
public int indexType()- Returns:
- the value of the
indexTypefield.
-
indexData
- Returns:
- a
VkDeviceOrHostAddressConstKHRview of theindexDatafield.
-
indexStride
public long indexStride()- Returns:
- the value of the
indexStridefield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_SPHERES_DATA_NVvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
vertexFormat
Sets the specified value to thevertexFormatfield. -
vertexData
Copies the specifiedVkDeviceOrHostAddressConstKHRto thevertexDatafield. -
vertexData
public VkAccelerationStructureGeometrySpheresDataNV vertexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thevertexDatafield to the specifiedConsumer. -
vertexStride
Sets the specified value to thevertexStridefield. -
radiusFormat
Sets the specified value to theradiusFormatfield. -
radiusData
Copies the specifiedVkDeviceOrHostAddressConstKHRto theradiusDatafield. -
radiusData
public VkAccelerationStructureGeometrySpheresDataNV radiusData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theradiusDatafield to the specifiedConsumer. -
radiusStride
Sets the specified value to theradiusStridefield. -
indexType
Sets the specified value to theindexTypefield. -
indexData
Copies the specifiedVkDeviceOrHostAddressConstKHRto theindexDatafield. -
indexData
public VkAccelerationStructureGeometrySpheresDataNV indexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexDatafield to the specifiedConsumer. -
indexStride
Sets the specified value to theindexStridefield. -
set
public VkAccelerationStructureGeometrySpheresDataNV set(int sType, long pNext, int vertexFormat, VkDeviceOrHostAddressConstKHR vertexData, long vertexStride, int radiusFormat, VkDeviceOrHostAddressConstKHR radiusData, long radiusStride, int indexType, VkDeviceOrHostAddressConstKHR indexData, long indexStride) Initializes this struct with the specified values. -
set
public VkAccelerationStructureGeometrySpheresDataNV set(VkAccelerationStructureGeometrySpheresDataNV src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated withBufferUtils. -
create
Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAccelerationStructureGeometrySpheresDataNV.Buffer create(long address, int capacity) Create aVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureGeometrySpheresDataNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureGeometrySpheresDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureGeometrySpheresDataNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureGeometrySpheresDataNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometrySpheresDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nvertexFormat
public static int nvertexFormat(long struct) Unsafe version ofvertexFormat(). -
nvertexData
Unsafe version ofvertexData(). -
nvertexStride
public static long nvertexStride(long struct) Unsafe version ofvertexStride(). -
nradiusFormat
public static int nradiusFormat(long struct) Unsafe version ofradiusFormat(). -
nradiusData
Unsafe version ofradiusData(). -
nradiusStride
public static long nradiusStride(long struct) Unsafe version ofradiusStride(). -
nindexType
public static int nindexType(long struct) Unsafe version ofindexType(). -
nindexData
Unsafe version ofindexData(). -
nindexStride
public static long nindexStride(long struct) Unsafe version ofindexStride(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nvertexFormat
public static void nvertexFormat(long struct, int value) Unsafe version ofvertexFormat. -
nvertexData
Unsafe version ofvertexData. -
nvertexStride
public static void nvertexStride(long struct, long value) Unsafe version ofvertexStride. -
nradiusFormat
public static void nradiusFormat(long struct, int value) Unsafe version ofradiusFormat. -
nradiusData
Unsafe version ofradiusData. -
nradiusStride
public static void nradiusStride(long struct, long value) Unsafe version ofradiusStride. -
nindexType
public static void nindexType(long struct, int value) Unsafe version ofindexType. -
nindexData
Unsafe version ofindexData. -
nindexStride
public static void nindexStride(long struct, long value) Unsafe version ofindexStride.
-