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 record
Represents a pointer to / an array ofXrSceneBoundsMSFT
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfInt
static final AddressLayout
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionXrSceneBoundsMSFT
(@NotNull MemorySegment segment) Creates an instance of aXrSceneBoundsMSFT
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneBoundsMSFT
static XrSceneBoundsMSFT.Ptr
int
boxCount()
boxCount
(int value) @Nullable XrSceneOrientedBoxBoundMSFT
boxes()
boxes
(int assumedCount) boxes
(@Nullable IXrSceneOrientedBoxBoundMSFT value) @NotNull MemorySegment
boxesRaw()
void
boxesRaw
(@NotNull MemorySegment value) static XrSceneBoundsMSFT
clone
(Arena arena, XrSceneBoundsMSFT src) final boolean
Indicates whether some other object is "equal to" this one.int
frustumCount
(int value) @Nullable XrSceneFrustumBoundMSFT
frustums()
frustums
(int assumedCount) frustums
(@Nullable IXrSceneFrustumBoundMSFT value) @NotNull MemorySegment
void
frustumsRaw
(@NotNull MemorySegment value) final int
hashCode()
Returns a hash code value for this object.@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.@Nullable XrSpace
space()
int
sphereCount
(int value) @Nullable XrSceneSphereBoundMSFT
spheres()
spheres
(int assumedCount) spheres
(@Nullable IXrSceneSphereBoundMSFT value) @NotNull MemorySegment
void
spheresRaw
(@NotNull MemorySegment value) long
time()
time
(long value) final String
toString()
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 aXrSceneBoundsMSFT
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-