Record Class XrSceneBoundsMSFT
java.lang.Object
java.lang.Record
club.doki7.openxr.datatype.XrSceneBoundsMSFT
- All Implemented Interfaces:
IPointer,IXrSceneBoundsMSFT
@ValueBasedCandidate
@UnsafeConstructor
public record XrSceneBoundsMSFT(@NotNull MemorySegment segment)
extends Record
implements IXrSceneBoundsMSFT
Represents a pointer to a XrSceneBoundsMSFT structure in native memory.
Structure
typedef struct XrSceneBoundsMSFT {
XrSpace space;
XrTime time;
uint32_t sphereCount; // optional
XrSceneSphereBoundMSFT const* spheres; // optional
uint32_t boxCount; // optional
XrSceneOrientedBoxBoundMSFT const* boxes; // optional
uint32_t frustumCount; // optional
XrSceneFrustumBoundMSFT const* frustums; // optional
} XrSceneBoundsMSFT;
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 ofXrSceneBoundsMSFTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final ValueLayout.OfLongstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneBoundsMSFT(@NotNull MemorySegment segment) Creates an instance of aXrSceneBoundsMSFTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneBoundsMSFTstatic XrSceneBoundsMSFT.PtrintboxCount()boxCount(int value) @Nullable XrSceneOrientedBoxBoundMSFTboxes()boxes(int assumedCount) boxes(@Nullable IXrSceneOrientedBoxBoundMSFT value) @NotNull MemorySegmentboxesRaw()voidboxesRaw(@NotNull MemorySegment value) static XrSceneBoundsMSFTclone(Arena arena, XrSceneBoundsMSFT src) final booleanIndicates whether some other object is "equal to" this one.intfrustumCount(int value) @Nullable XrSceneFrustumBoundMSFTfrustums()frustums(int assumedCount) frustums(@Nullable IXrSceneFrustumBoundMSFT value) @NotNull MemorySegmentvoidfrustumsRaw(@NotNull MemorySegment value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.@Nullable XrSpacespace()intsphereCount(int value) @Nullable XrSceneSphereBoundMSFTspheres()spheres(int assumedCount) spheres(@Nullable IXrSceneSphereBoundMSFT value) @NotNull MemorySegmentvoidspheresRaw(@NotNull MemorySegment value) longtime()time(long value) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$space
-
PATH$time
-
PATH$sphereCount
-
PATH$spheres
-
PATH$boxCount
-
PATH$boxes
-
PATH$frustumCount
-
PATH$frustums
-
LAYOUT$space
-
LAYOUT$time
-
LAYOUT$sphereCount
-
LAYOUT$spheres
-
LAYOUT$boxCount
-
LAYOUT$boxes
-
LAYOUT$frustumCount
-
LAYOUT$frustums
-
SIZE$space
public static final long SIZE$space -
SIZE$time
public static final long SIZE$time -
SIZE$sphereCount
public static final long SIZE$sphereCount -
SIZE$spheres
public static final long SIZE$spheres -
SIZE$boxCount
public static final long SIZE$boxCount -
SIZE$boxes
public static final long SIZE$boxes -
SIZE$frustumCount
public static final long SIZE$frustumCount -
SIZE$frustums
public static final long SIZE$frustums -
OFFSET$space
public static final long OFFSET$space -
OFFSET$time
public static final long OFFSET$time -
OFFSET$sphereCount
public static final long OFFSET$sphereCount -
OFFSET$spheres
public static final long OFFSET$spheres -
OFFSET$boxCount
public static final long OFFSET$boxCount -
OFFSET$boxes
public static final long OFFSET$boxes -
OFFSET$frustumCount
public static final long OFFSET$frustumCount -
OFFSET$frustums
public static final long OFFSET$frustums
-
-
Constructor Details
-
XrSceneBoundsMSFT
Creates an instance of aXrSceneBoundsMSFTrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
space
-
space
-
time
-
time
-
sphereCount
-
sphereCount
-
spheres
-
spheres
-
spheres
-
spheresRaw
-
spheresRaw
public void spheresRaw(@Pointer(target=XrSceneSphereBoundMSFT.class) @NotNull @NotNull MemorySegment value) -
boxCount
-
boxCount
-
boxes
-
boxes
-
boxes
-
boxesRaw
@Pointer(target=XrSceneOrientedBoxBoundMSFT.class) @NotNull public @NotNull MemorySegment boxesRaw() -
boxesRaw
public void boxesRaw(@Pointer(target=XrSceneOrientedBoxBoundMSFT.class) @NotNull @NotNull MemorySegment value) -
frustumCount
-
frustumCount
-
frustums
-
frustums
-
frustums
-
frustumsRaw
-
frustumsRaw
public void frustumsRaw(@Pointer(target=XrSceneFrustumBoundMSFT.class) @NotNull @NotNull MemorySegment 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.
-