Record Class VkAccelerationStructureGeometryLinearSweptSpheresDataNV
- All Implemented Interfaces:
IPointer
,IVkAccelerationStructureGeometryLinearSweptSpheresDataNV
Represents a pointer to a VkAccelerationStructureGeometryLinearSweptSpheresDataNV
structure in native memory.
Structure
typedef struct VkAccelerationStructureGeometryLinearSweptSpheresDataNV {
VkStructureType
sType
;
void const* pNext
; // optional
VkFormat
vertexFormat
;
VkDeviceOrHostAddressConstKHR
vertexData
;
VkDeviceSize vertexStride
;
VkFormat
radiusFormat
;
VkDeviceOrHostAddressConstKHR
radiusData
;
VkDeviceSize radiusStride
;
VkIndexType
indexType
;
VkDeviceOrHostAddressConstKHR
indexData
;
VkDeviceSize indexStride
;
VkRayTracingLssIndexingModeNV
indexingMode
;
VkRayTracingLssPrimitiveEndCapsModeNV
endCapsMode
;
} VkAccelerationStructureGeometryLinearSweptSpheresDataNV;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_LINEAR_SWEPT_SPHERES_DATA_NV
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkAccelerationStructureGeometryLinearSweptSpheresDataNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final UnionLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final AddressLayout
static final UnionLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final UnionLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureGeometryLinearSweptSpheresDataNV
(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureGeometryLinearSweptSpheresDataNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
int
endCapsMode
(int value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull VkDeviceOrHostAddressConstKHR
indexData
(@NotNull VkDeviceOrHostAddressConstKHR value) indexData
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) int
indexingMode
(int value) long
indexStride
(long value) int
indexType
(int value) pNext()
void
pNext
(MemorySegment value) @NotNull VkDeviceOrHostAddressConstKHR
radiusData
(@NotNull VkDeviceOrHostAddressConstKHR value) radiusData
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) int
radiusFormat
(int value) long
radiusStride
(long value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.@NotNull VkDeviceOrHostAddressConstKHR
vertexData
(@NotNull VkDeviceOrHostAddressConstKHR value) vertexData
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) int
vertexFormat
(int value) long
vertexStride
(long value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$vertexFormat
-
PATH$vertexData
-
PATH$vertexStride
-
PATH$radiusFormat
-
PATH$radiusData
-
PATH$radiusStride
-
PATH$indexType
-
PATH$indexData
-
PATH$indexStride
-
PATH$indexingMode
-
PATH$endCapsMode
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$vertexFormat
-
LAYOUT$vertexData
-
LAYOUT$vertexStride
-
LAYOUT$radiusFormat
-
LAYOUT$radiusData
-
LAYOUT$radiusStride
-
LAYOUT$indexType
-
LAYOUT$indexData
-
LAYOUT$indexStride
-
LAYOUT$indexingMode
-
LAYOUT$endCapsMode
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$vertexFormat
public static final long SIZE$vertexFormat -
SIZE$vertexData
public static final long SIZE$vertexData -
SIZE$vertexStride
public static final long SIZE$vertexStride -
SIZE$radiusFormat
public static final long SIZE$radiusFormat -
SIZE$radiusData
public static final long SIZE$radiusData -
SIZE$radiusStride
public static final long SIZE$radiusStride -
SIZE$indexType
public static final long SIZE$indexType -
SIZE$indexData
public static final long SIZE$indexData -
SIZE$indexStride
public static final long SIZE$indexStride -
SIZE$indexingMode
public static final long SIZE$indexingMode -
SIZE$endCapsMode
public static final long SIZE$endCapsMode -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$vertexFormat
public static final long OFFSET$vertexFormat -
OFFSET$vertexData
public static final long OFFSET$vertexData -
OFFSET$vertexStride
public static final long OFFSET$vertexStride -
OFFSET$radiusFormat
public static final long OFFSET$radiusFormat -
OFFSET$radiusData
public static final long OFFSET$radiusData -
OFFSET$radiusStride
public static final long OFFSET$radiusStride -
OFFSET$indexType
public static final long OFFSET$indexType -
OFFSET$indexData
public static final long OFFSET$indexData -
OFFSET$indexStride
public static final long OFFSET$indexStride -
OFFSET$indexingMode
public static final long OFFSET$indexingMode -
OFFSET$endCapsMode
public static final long OFFSET$endCapsMode
-
-
Constructor Details
-
VkAccelerationStructureGeometryLinearSweptSpheresDataNV
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV(@NotNull @NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureGeometryLinearSweptSpheresDataNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
public static VkAccelerationStructureGeometryLinearSweptSpheresDataNV.Ptr allocate(Arena arena, long count) -
clone
public static VkAccelerationStructureGeometryLinearSweptSpheresDataNV clone(Arena arena, VkAccelerationStructureGeometryLinearSweptSpheresDataNV src) -
autoInit
public void autoInit() -
sType
-
sType
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV sType(@EnumType(VkStructureType.class) int value) -
pNext
-
pNext
-
pNext
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV pNext(@Nullable @Nullable IPointer pointer) -
vertexFormat
-
vertexFormat
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV vertexFormat(@EnumType(VkFormat.class) int value) -
vertexData
-
vertexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV vertexData(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
vertexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV vertexData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
vertexStride
-
vertexStride
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV vertexStride(@NativeType("VkDeviceSize") @Unsigned long value) -
radiusFormat
-
radiusFormat
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV radiusFormat(@EnumType(VkFormat.class) int value) -
radiusData
-
radiusData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV radiusData(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
radiusData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV radiusData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
radiusStride
-
radiusStride
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV radiusStride(@NativeType("VkDeviceSize") @Unsigned long value) -
indexType
-
indexType
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexType(@EnumType(VkIndexType.class) int value) -
indexData
-
indexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexData(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
indexData
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
indexStride
-
indexStride
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexStride(@NativeType("VkDeviceSize") @Unsigned long value) -
indexingMode
-
indexingMode
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV indexingMode(@EnumType(VkRayTracingLssIndexingModeNV.class) int value) -
endCapsMode
-
endCapsMode
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV endCapsMode(@EnumType(VkRayTracingLssPrimitiveEndCapsModeNV.class) int value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-