Record Class VkAccelerationStructureGeometrySpheresDataNV
- All Implemented Interfaces:
IPointer,IVkAccelerationStructureGeometrySpheresDataNV
Represents a pointer to a VkAccelerationStructureGeometrySpheresDataNV structure in native memory.
Structure
typedef struct VkAccelerationStructureGeometrySpheresDataNV {
VkStructureType sType;
void const* pNext; // optional
VkFormat vertexFormat;
VkDeviceOrHostAddressConstKHR vertexData;
VkDeviceSize vertexStride;
VkFormat radiusFormat;
VkDeviceOrHostAddressConstKHR radiusData;
VkDeviceSize radiusStride;
VkIndexType indexType;
VkDeviceOrHostAddressConstKHR indexData;
VkDeviceSize indexStride;
} VkAccelerationStructureGeometrySpheresDataNV;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_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 ofVkAccelerationStructureGeometrySpheresDataNVstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final UnionLayoutstatic 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 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 long -
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureGeometrySpheresDataNV(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureGeometrySpheresDataNVrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()clone(Arena arena, VkAccelerationStructureGeometrySpheresDataNV src) 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) 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
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$vertexFormat
-
LAYOUT$vertexData
-
LAYOUT$vertexStride
-
LAYOUT$radiusFormat
-
LAYOUT$radiusData
-
LAYOUT$radiusStride
-
LAYOUT$indexType
-
LAYOUT$indexData
-
LAYOUT$indexStride
-
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 -
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
-
-
Constructor Details
-
VkAccelerationStructureGeometrySpheresDataNV
Creates an instance of aVkAccelerationStructureGeometrySpheresDataNVrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkAccelerationStructureGeometrySpheresDataNV clone(Arena arena, VkAccelerationStructureGeometrySpheresDataNV src) -
autoInit
public void autoInit() -
sType
-
sType
public VkAccelerationStructureGeometrySpheresDataNV sType(@EnumType(VkStructureType.class) int value) -
pNext
-
pNext
public VkAccelerationStructureGeometrySpheresDataNV pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
vertexFormat
-
vertexFormat
public VkAccelerationStructureGeometrySpheresDataNV vertexFormat(@EnumType(VkFormat.class) int value) -
vertexData
-
vertexData
public VkAccelerationStructureGeometrySpheresDataNV vertexData(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
vertexData
public VkAccelerationStructureGeometrySpheresDataNV vertexData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
vertexStride
-
vertexStride
public VkAccelerationStructureGeometrySpheresDataNV vertexStride(@NativeType("VkDeviceSize") @Unsigned long value) -
radiusFormat
-
radiusFormat
public VkAccelerationStructureGeometrySpheresDataNV radiusFormat(@EnumType(VkFormat.class) int value) -
radiusData
-
radiusData
public VkAccelerationStructureGeometrySpheresDataNV radiusData(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
radiusData
public VkAccelerationStructureGeometrySpheresDataNV radiusData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
radiusStride
-
radiusStride
public VkAccelerationStructureGeometrySpheresDataNV radiusStride(@NativeType("VkDeviceSize") @Unsigned long value) -
indexType
-
indexType
public VkAccelerationStructureGeometrySpheresDataNV indexType(@EnumType(VkIndexType.class) int value) -
indexData
-
indexData
public VkAccelerationStructureGeometrySpheresDataNV indexData(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
indexData
public VkAccelerationStructureGeometrySpheresDataNV indexData(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
indexStride
-
indexStride
public VkAccelerationStructureGeometrySpheresDataNV indexStride(@NativeType("VkDeviceSize") @Unsigned long 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.
-