Record Class VkAccelerationStructureBuildGeometryInfoKHR
- All Implemented Interfaces:
IPointer
,IVkAccelerationStructureBuildGeometryInfoKHR
Represents a pointer to a VkAccelerationStructureBuildGeometryInfoKHR
structure in native memory.
Structure
typedef struct VkAccelerationStructureBuildGeometryInfoKHR {
VkStructureType
sType
;
void const* pNext
; // optional
VkAccelerationStructureTypeKHR
type
;
VkBuildAccelerationStructureFlagsKHR
flags
; // optional
VkBuildAccelerationStructureModeKHR
mode
;
VkAccelerationStructureKHR
srcAccelerationStructure
; // optional
VkAccelerationStructureKHR
dstAccelerationStructure
; // optional
uint32_t geometryCount
; // optional
VkAccelerationStructureGeometryKHR
const* pGeometries
; // optional
VkAccelerationStructureGeometryKHR
const* const* ppGeometries
;
VkDeviceOrHostAddressKHR
scratchData
;
} VkAccelerationStructureBuildGeometryInfoKHR;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_BUILD_GEOMETRY_INFO_KHR
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 ofVkAccelerationStructureBuildGeometryInfoKHR
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final UnionLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
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
ConstructorsConstructorDescriptionVkAccelerationStructureBuildGeometryInfoKHR
(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureBuildGeometryInfoKHR
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
clone
(Arena arena, VkAccelerationStructureBuildGeometryInfoKHR src) @Nullable VkAccelerationStructureKHR
dstAccelerationStructure
(@Nullable VkAccelerationStructureKHR value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) int
geometryCount
(int value) final int
hashCode()
Returns a hash code value for this object.int
mode()
mode
(int value) @Nullable VkAccelerationStructureGeometryKHR
pGeometries
(int assumedCount) pGeometries
(@Nullable IVkAccelerationStructureGeometryKHR value) void
pGeometriesRaw
(MemorySegment value) pNext()
void
pNext
(MemorySegment value) @Nullable PointerPtr
Note: the returnedPointerPtr
does not have correctPointerPtr.size()
property.ppGeometries
(@Nullable PointerPtr value) void
ppGeometriesRaw
(MemorySegment value) @NotNull VkDeviceOrHostAddressKHR
scratchData
(@NotNull VkDeviceOrHostAddressKHR value) scratchData
(Consumer<@NotNull VkDeviceOrHostAddressKHR> consumer) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.@Nullable VkAccelerationStructureKHR
srcAccelerationStructure
(@Nullable VkAccelerationStructureKHR value) int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.int
type()
type
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$type
-
PATH$flags
-
PATH$mode
-
PATH$srcAccelerationStructure
-
PATH$dstAccelerationStructure
-
PATH$geometryCount
-
PATH$pGeometries
-
PATH$ppGeometries
-
PATH$scratchData
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$type
-
LAYOUT$flags
-
LAYOUT$mode
-
LAYOUT$srcAccelerationStructure
-
LAYOUT$dstAccelerationStructure
-
LAYOUT$geometryCount
-
LAYOUT$pGeometries
-
LAYOUT$ppGeometries
-
LAYOUT$scratchData
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$type
public static final long SIZE$type -
SIZE$flags
public static final long SIZE$flags -
SIZE$mode
public static final long SIZE$mode -
SIZE$srcAccelerationStructure
public static final long SIZE$srcAccelerationStructure -
SIZE$dstAccelerationStructure
public static final long SIZE$dstAccelerationStructure -
SIZE$geometryCount
public static final long SIZE$geometryCount -
SIZE$pGeometries
public static final long SIZE$pGeometries -
SIZE$ppGeometries
public static final long SIZE$ppGeometries -
SIZE$scratchData
public static final long SIZE$scratchData -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$type
public static final long OFFSET$type -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$mode
public static final long OFFSET$mode -
OFFSET$srcAccelerationStructure
public static final long OFFSET$srcAccelerationStructure -
OFFSET$dstAccelerationStructure
public static final long OFFSET$dstAccelerationStructure -
OFFSET$geometryCount
public static final long OFFSET$geometryCount -
OFFSET$pGeometries
public static final long OFFSET$pGeometries -
OFFSET$ppGeometries
public static final long OFFSET$ppGeometries -
OFFSET$scratchData
public static final long OFFSET$scratchData
-
-
Constructor Details
-
VkAccelerationStructureBuildGeometryInfoKHR
Creates an instance of aVkAccelerationStructureBuildGeometryInfoKHR
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkAccelerationStructureBuildGeometryInfoKHR clone(Arena arena, VkAccelerationStructureBuildGeometryInfoKHR src) -
autoInit
public void autoInit() -
sType
-
sType
public VkAccelerationStructureBuildGeometryInfoKHR sType(@EnumType(VkStructureType.class) int value) -
pNext
-
pNext
-
pNext
-
type
-
type
public VkAccelerationStructureBuildGeometryInfoKHR type(@EnumType(VkAccelerationStructureTypeKHR.class) int value) -
flags
-
flags
public VkAccelerationStructureBuildGeometryInfoKHR flags(@EnumType(VkBuildAccelerationStructureFlagsKHR.class) int value) -
mode
-
mode
public VkAccelerationStructureBuildGeometryInfoKHR mode(@EnumType(VkBuildAccelerationStructureModeKHR.class) int value) -
srcAccelerationStructure
-
srcAccelerationStructure
public VkAccelerationStructureBuildGeometryInfoKHR srcAccelerationStructure(@Nullable @Nullable VkAccelerationStructureKHR value) -
dstAccelerationStructure
-
dstAccelerationStructure
public VkAccelerationStructureBuildGeometryInfoKHR dstAccelerationStructure(@Nullable @Nullable VkAccelerationStructureKHR value) -
geometryCount
-
geometryCount
-
pGeometries
public VkAccelerationStructureBuildGeometryInfoKHR pGeometries(@Nullable @Nullable IVkAccelerationStructureGeometryKHR value) -
pGeometries
-
pGeometries
-
pGeometriesRaw
-
pGeometriesRaw
public void pGeometriesRaw(@Pointer(target=VkAccelerationStructureGeometryKHR.class) MemorySegment value) -
ppGeometries
Note: the returnedPointerPtr
does not have correctPointerPtr.size()
property. It's up to user to track the size of the buffer, and usePointerPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
ppGeometries
public VkAccelerationStructureBuildGeometryInfoKHR ppGeometries(@Nullable @Nullable PointerPtr value) -
ppGeometriesRaw
-
ppGeometriesRaw
-
scratchData
-
scratchData
public VkAccelerationStructureBuildGeometryInfoKHR scratchData(@NotNull @NotNull VkDeviceOrHostAddressKHR value) -
scratchData
public VkAccelerationStructureBuildGeometryInfoKHR scratchData(Consumer<@NotNull VkDeviceOrHostAddressKHR> consumer) -
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.
-