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 recordRepresents a pointer to / an array ofVkAccelerationStructureGeometryLinearSweptSpheresDataNVstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureGeometryLinearSweptSpheresDataNV(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureGeometryLinearSweptSpheresDataNVrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()intendCapsMode(int value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull VkDeviceOrHostAddressConstKHRindexData(@NotNull VkDeviceOrHostAddressConstKHR value) indexData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) intindexingMode(int value) longindexStride(long value) intindexType(int value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @NotNull VkDeviceOrHostAddressConstKHRradiusData(@NotNull VkDeviceOrHostAddressConstKHR value) radiusData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) intradiusFormat(int value) longradiusStride(long value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) final StringtoString()Returns a string representation of this record class.@NotNull VkDeviceOrHostAddressConstKHRvertexData(@NotNull VkDeviceOrHostAddressConstKHR value) vertexData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) intvertexFormat(int value) longvertexStride(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 aVkAccelerationStructureGeometryLinearSweptSpheresDataNVrecord class.- Parameters:
segment- the value for thesegmentrecord 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
public VkAccelerationStructureGeometryLinearSweptSpheresDataNV pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
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 thesegmentrecord component.
-