Package org.lwjgl.vulkan
Class VkAccelerationStructureGeometryLinearSweptSpheresDataNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureGeometryLinearSweptSpheresDataNV>
org.lwjgl.vulkan.VkAccelerationStructureGeometryLinearSweptSpheresDataNV
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkAccelerationStructureGeometryLinearSweptSpheresDataNV
extends Struct<VkAccelerationStructureGeometryLinearSweptSpheresDataNV>
implements NativeResource
struct VkAccelerationStructureGeometryLinearSweptSpheresDataNV {
VkStructureType sType;
void const * pNext;
VkFormat vertexFormat;
{@link VkDeviceOrHostAddressConstKHR VkDeviceOrHostAddressConstKHR} vertexData;
VkDeviceSize vertexStride;
VkFormat radiusFormat;
{@link VkDeviceOrHostAddressConstKHR VkDeviceOrHostAddressConstKHR} radiusData;
VkDeviceSize radiusStride;
VkIndexType indexType;
{@link VkDeviceOrHostAddressConstKHR VkDeviceOrHostAddressConstKHR} indexData;
VkDeviceSize indexStride;
VkRayTracingLssIndexingModeNV indexingMode;
VkRayTracingLssPrimitiveEndCapsModeNV endCapsMode;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkAccelerationStructureGeometryLinearSweptSpheresDataNV
structs.Nested 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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance for the specified memory address.create
(long address, int capacity) Create aVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance at the specified memory.static @Nullable VkAccelerationStructureGeometryLinearSweptSpheresDataNV
createSafe
(long address) static @Nullable VkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
createSafe
(long address, int capacity) int
endCapsMode
(int value) Sets the specified value to theendCapsMode
field.indexData
(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexData
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to theindexData
field.int
indexingMode
(int value) Sets the specified value to theindexingMode
field.long
indexStride
(long value) Sets the specified value to theindexStride
field.int
indexType
(int value) Sets the specified value to theindexType
field.malloc()
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated on the specifiedMemoryStack
.static int
nendCapsMode
(long struct) Unsafe version ofendCapsMode()
.static void
nendCapsMode
(long struct, int value) Unsafe version ofendCapsMode
.nindexData
(long struct) Unsafe version ofindexData()
.static void
nindexData
(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofindexData
.static int
nindexingMode
(long struct) Unsafe version ofindexingMode()
.static void
nindexingMode
(long struct, int value) Unsafe version ofindexingMode
.static long
nindexStride
(long struct) Unsafe version ofindexStride()
.static void
nindexStride
(long struct, long value) Unsafe version ofindexStride
.static int
nindexType
(long struct) Unsafe version ofindexType()
.static void
nindexType
(long struct, int value) Unsafe version ofindexType
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.nradiusData
(long struct) Unsafe version ofradiusData()
.static void
nradiusData
(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofradiusData
.static int
nradiusFormat
(long struct) Unsafe version ofradiusFormat()
.static void
nradiusFormat
(long struct, int value) Unsafe version ofradiusFormat
.static long
nradiusStride
(long struct) Unsafe version ofradiusStride()
.static void
nradiusStride
(long struct, long value) Unsafe version ofradiusStride
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.nvertexData
(long struct) Unsafe version ofvertexData()
.static void
nvertexData
(long struct, VkDeviceOrHostAddressConstKHR value) Unsafe version ofvertexData
.static int
nvertexFormat
(long struct) Unsafe version ofvertexFormat()
.static void
nvertexFormat
(long struct, int value) Unsafe version ofvertexFormat
.static long
nvertexStride
(long struct) Unsafe version ofvertexStride()
.static void
nvertexStride
(long struct, long value) Unsafe version ofvertexStride
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.radiusData
(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theradiusData
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to theradiusData
field.int
radiusFormat
(int value) Sets the specified value to theradiusFormat
field.long
radiusStride
(long value) Sets the specified value to theradiusStride
field.set
(int sType, long pNext, int vertexFormat, VkDeviceOrHostAddressConstKHR vertexData, long vertexStride, int radiusFormat, VkDeviceOrHostAddressConstKHR radiusData, long radiusStride, int indexType, VkDeviceOrHostAddressConstKHR indexData, long indexStride, int indexingMode, int endCapsMode) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_LINEAR_SWEPT_SPHERES_DATA_NV
value to thesType
field.vertexData
(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thevertexData
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstKHR
to thevertexData
field.int
vertexFormat
(int value) Sets the specified value to thevertexFormat
field.long
vertexStride
(long value) Sets the specified value to thevertexStride
field.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. -
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. -
INDEXINGMODE
public static final int INDEXINGMODEThe struct member offsets. -
ENDCAPSMODE
public static final int ENDCAPSMODEThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureGeometryLinearSweptSpheresDataNV
Creates aVkAccelerationStructureGeometryLinearSweptSpheresDataNV
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<VkAccelerationStructureGeometryLinearSweptSpheresDataNV>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormat
field.
-
vertexData
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of thevertexData
field.
-
vertexStride
public long vertexStride()- Returns:
- the value of the
vertexStride
field.
-
radiusFormat
public int radiusFormat()- Returns:
- the value of the
radiusFormat
field.
-
radiusData
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of theradiusData
field.
-
radiusStride
public long radiusStride()- Returns:
- the value of the
radiusStride
field.
-
indexType
public int indexType()- Returns:
- the value of the
indexType
field.
-
indexData
- Returns:
- a
VkDeviceOrHostAddressConstKHR
view of theindexData
field.
-
indexStride
public long indexStride()- Returns:
- the value of the
indexStride
field.
-
indexingMode
public int indexingMode()- Returns:
- the value of the
indexingMode
field.
-
endCapsMode
public int endCapsMode()- Returns:
- the value of the
endCapsMode
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_LINEAR_SWEPT_SPHERES_DATA_NV
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
vertexFormat
Sets the specified value to thevertexFormat
field. -
vertexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV vertexData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to thevertexData
field. -
vertexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV vertexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes thevertexData
field to the specifiedConsumer
. -
vertexStride
Sets the specified value to thevertexStride
field. -
radiusFormat
Sets the specified value to theradiusFormat
field. -
radiusData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV radiusData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to theradiusData
field. -
radiusData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV radiusData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theradiusData
field to the specifiedConsumer
. -
radiusStride
Sets the specified value to theradiusStride
field. -
indexType
Sets the specified value to theindexType
field. -
indexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexData(VkDeviceOrHostAddressConstKHR value) Copies the specifiedVkDeviceOrHostAddressConstKHR
to theindexData
field. -
indexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexData(Consumer<VkDeviceOrHostAddressConstKHR> consumer) Passes theindexData
field to the specifiedConsumer
. -
indexStride
Sets the specified value to theindexStride
field. -
indexingMode
Sets the specified value to theindexingMode
field. -
endCapsMode
Sets the specified value to theendCapsMode
field. -
set
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV set(int sType, long pNext, int vertexFormat, VkDeviceOrHostAddressConstKHR vertexData, long vertexStride, int radiusFormat, VkDeviceOrHostAddressConstKHR radiusData, long radiusStride, int indexType, VkDeviceOrHostAddressConstKHR indexData, long indexStride, int indexingMode, int endCapsMode) Initializes this struct with the specified values. -
set
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV set(VkAccelerationStructureGeometryLinearSweptSpheresDataNV src) Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated withBufferUtils
. -
create
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance for the specified memory address. -
createSafe
public static @Nullable VkAccelerationStructureGeometryLinearSweptSpheresDataNV createSafe(long address) -
malloc
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer create(long address, int capacity) Create aVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static VkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static VkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureGeometryLinearSweptSpheresDataNV.Buffer
instance allocated on the specifiedMemoryStack
and 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()
. -
nindexingMode
public static int nindexingMode(long struct) Unsafe version ofindexingMode()
. -
nendCapsMode
public static int nendCapsMode(long struct) Unsafe version ofendCapsMode()
. -
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
. -
nindexingMode
public static void nindexingMode(long struct, int value) Unsafe version ofindexingMode
. -
nendCapsMode
public static void nendCapsMode(long struct, int value) Unsafe version ofendCapsMode
.
-