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; // optional
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 recordRepresents a pointer to / an array ofVkAccelerationStructureBuildGeometryInfoKHRstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final UnionLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic 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
ConstructorsConstructorDescriptionVkAccelerationStructureBuildGeometryInfoKHR(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureBuildGeometryInfoKHRrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()clone(Arena arena, VkAccelerationStructureBuildGeometryInfoKHR src) @Nullable VkAccelerationStructureKHRdstAccelerationStructure(@Nullable VkAccelerationStructureKHR value) final booleanIndicates whether some other object is "equal to" this one.intflags()flags(int value) intgeometryCount(int value) final inthashCode()Returns a hash code value for this object.intmode()mode(int value) @Nullable VkAccelerationStructureGeometryKHRpGeometries(int assumedCount) pGeometries(@Nullable IVkAccelerationStructureGeometryKHR value) @NotNull MemorySegmentvoidpGeometriesRaw(@NotNull MemorySegment value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @Nullable PointerPtrNote: the returnedPointerPtrdoes not have correctPointerPtr.size()property.ppGeometries(@Nullable PointerPtr value) @NotNull MemorySegmentvoidppGeometriesRaw(@NotNull MemorySegment value) @NotNull VkDeviceOrHostAddressKHRscratchData(@NotNull VkDeviceOrHostAddressKHR value) scratchData(Consumer<@NotNull VkDeviceOrHostAddressKHR> consumer) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.@Nullable VkAccelerationStructureKHRsrcAccelerationStructure(@Nullable VkAccelerationStructureKHR value) intsType()sType(int value) final StringtoString()Returns a string representation of this record class.inttype()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 aVkAccelerationStructureBuildGeometryInfoKHRrecord class.- Parameters:
segment- the value for thesegmentrecord 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
public VkAccelerationStructureBuildGeometryInfoKHR pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
type
-
type
public VkAccelerationStructureBuildGeometryInfoKHR type(@EnumType(VkAccelerationStructureTypeKHR.class) int value) -
flags
-
flags
public VkAccelerationStructureBuildGeometryInfoKHR flags(@Bitmask(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
@Pointer(target=VkAccelerationStructureGeometryKHR.class) @NotNull public @NotNull MemorySegment pGeometriesRaw() -
pGeometriesRaw
public void pGeometriesRaw(@Pointer(target=VkAccelerationStructureGeometryKHR.class) @NotNull @NotNull MemorySegment value) -
ppGeometries
Note: the returnedPointerPtrdoes 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 thesegmentrecord component.
-