Record Class XrPassthroughMeshTransformInfoHTC
- All Implemented Interfaces:
IPointer,IXrPassthroughMeshTransformInfoHTC
Represents a pointer to a XrPassthroughMeshTransformInfoHTC structure in native memory.
Structure
typedef struct XrPassthroughMeshTransformInfoHTC {
XrStructureType type;
void const* next;
uint32_t vertexCount;
XrVector3f const* vertices;
uint32_t indexCount;
uint32_t const* indices;
XrSpace baseSpace;
XrTime time;
XrPosef pose;
XrVector3f scale;
} XrPassthroughMeshTransformInfoHTC;
Auto initialization
This structure has the following members that can be automatically initialized:
type = XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC
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 ofXrPassthroughMeshTransformInfoHTCstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final StructLayoutstatic final StructLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionXrPassthroughMeshTransformInfoHTC(@NotNull MemorySegment segment) Creates an instance of aXrPassthroughMeshTransformInfoHTCrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()@Nullable XrSpaceclone(Arena arena, XrPassthroughMeshTransformInfoHTC src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindexCount(int value) @Nullable IntPtrindices()Note: the returnedIntPtrdoes not have correctIntPtr.size()property.@NotNull MemorySegmentvoidindicesRaw(@NotNull MemorySegment value) @NotNull MemorySegmentnext()next(@NotNull MemorySegment value) @NotNull XrPosefpose()@NotNull XrVector3fscale()scale(@NotNull XrVector3f value) scale(Consumer<@NotNull XrVector3f> consumer) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.longtime()time(long value) final StringtoString()Returns a string representation of this record class.inttype()type(int value) intvertexCount(int value) @Nullable XrVector3fvertices()vertices(int assumedCount) vertices(@Nullable IXrVector3f value) @NotNull MemorySegmentvoidverticesRaw(@NotNull MemorySegment value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$type
-
PATH$next
-
PATH$vertexCount
-
PATH$vertices
-
PATH$indexCount
-
PATH$indices
-
PATH$baseSpace
-
PATH$time
-
PATH$pose
-
PATH$scale
-
LAYOUT$type
-
LAYOUT$next
-
LAYOUT$vertexCount
-
LAYOUT$vertices
-
LAYOUT$indexCount
-
LAYOUT$indices
-
LAYOUT$baseSpace
-
LAYOUT$time
-
LAYOUT$pose
-
LAYOUT$scale
-
SIZE$type
public static final long SIZE$type -
SIZE$next
public static final long SIZE$next -
SIZE$vertexCount
public static final long SIZE$vertexCount -
SIZE$vertices
public static final long SIZE$vertices -
SIZE$indexCount
public static final long SIZE$indexCount -
SIZE$indices
public static final long SIZE$indices -
SIZE$baseSpace
public static final long SIZE$baseSpace -
SIZE$time
public static final long SIZE$time -
SIZE$pose
public static final long SIZE$pose -
SIZE$scale
public static final long SIZE$scale -
OFFSET$type
public static final long OFFSET$type -
OFFSET$next
public static final long OFFSET$next -
OFFSET$vertexCount
public static final long OFFSET$vertexCount -
OFFSET$vertices
public static final long OFFSET$vertices -
OFFSET$indexCount
public static final long OFFSET$indexCount -
OFFSET$indices
public static final long OFFSET$indices -
OFFSET$baseSpace
public static final long OFFSET$baseSpace -
OFFSET$time
public static final long OFFSET$time -
OFFSET$pose
public static final long OFFSET$pose -
OFFSET$scale
public static final long OFFSET$scale
-
-
Constructor Details
-
XrPassthroughMeshTransformInfoHTC
Creates an instance of aXrPassthroughMeshTransformInfoHTCrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static XrPassthroughMeshTransformInfoHTC clone(Arena arena, XrPassthroughMeshTransformInfoHTC src) -
autoInit
public void autoInit() -
type
-
type
-
next
-
next
public XrPassthroughMeshTransformInfoHTC next(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
next
-
vertexCount
-
vertexCount
-
vertices
-
vertices
-
vertices
-
verticesRaw
-
verticesRaw
-
indexCount
-
indexCount
-
indices
Note: the returnedIntPtrdoes not have correctIntPtr.size()property. It's up to user to track the size of the buffer, and useIntPtr.reinterpret(long)to set the size before actually reading from or writing to the buffer. -
indices
-
indicesRaw
-
indicesRaw
-
baseSpace
-
baseSpace
-
time
-
time
-
pose
-
pose
-
pose
-
scale
-
scale
-
scale
-
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.
-