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 record
Represents a pointer to / an array ofVkAccelerationStructureGeometrySpheresDataNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final UnionLayout
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureGeometrySpheresDataNV
(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureGeometrySpheresDataNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
clone
(Arena arena, VkAccelerationStructureGeometrySpheresDataNV src) 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) 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
-
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 aVkAccelerationStructureGeometrySpheresDataNV
record class.- Parameters:
segment
- the value for thesegment
record 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
-
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 thesegment
record component.
-