Record Class WGPUCompilationMessage
java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUCompilationMessage
- All Implemented Interfaces:
IPointer,IWGPUCompilationMessage
@ValueBasedCandidate
@UnsafeConstructor
public record WGPUCompilationMessage(@NotNull MemorySegment segment)
extends Record
implements IWGPUCompilationMessage
Represents a pointer to a WGPUCompilationMessage structure in native memory.
Structure
typedef struct WGPUCompilationMessage {
WGPUChainedStruct const* nextInChain; // optional
WGPUStringView message;
WGPUCompilationMessageType type;
uint64_t lineNum;
uint64_t linePos;
uint64_t offset;
uint64_t length;
} WGPUCompilationMessage;
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfLongstatic final ValueLayout.OfLongstatic final StructLayoutstatic final AddressLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionWGPUCompilationMessage(@NotNull MemorySegment segment) Creates an instance of aWGPUCompilationMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WGPUCompilationMessagestatic WGPUCompilationMessage.Ptrstatic WGPUCompilationMessageclone(Arena arena, WGPUCompilationMessage src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlength()length(long value) longlineNum()lineNum(long value) longlinePos()linePos(long value) @NotNull WGPUStringViewmessage()message(@NotNull WGPUStringView value) message(Consumer<@NotNull WGPUStringView> consumer) @Nullable WGPUChainedStructnextInChain(int assumedCount) nextInChain(@Nullable IWGPUChainedStruct value) @NotNull MemorySegmentvoidnextInChainRaw(@NotNull MemorySegment value) longoffset()offset(long value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.inttype()type(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$nextInChain
-
PATH$message
-
PATH$type
-
PATH$lineNum
-
PATH$linePos
-
PATH$offset
-
PATH$length
-
LAYOUT$nextInChain
-
LAYOUT$message
-
LAYOUT$type
-
LAYOUT$lineNum
-
LAYOUT$linePos
-
LAYOUT$offset
-
LAYOUT$length
-
SIZE$nextInChain
public static final long SIZE$nextInChain -
SIZE$message
public static final long SIZE$message -
SIZE$type
public static final long SIZE$type -
SIZE$lineNum
public static final long SIZE$lineNum -
SIZE$linePos
public static final long SIZE$linePos -
SIZE$offset
public static final long SIZE$offset -
SIZE$length
public static final long SIZE$length -
OFFSET$nextInChain
public static final long OFFSET$nextInChain -
OFFSET$message
public static final long OFFSET$message -
OFFSET$type
public static final long OFFSET$type -
OFFSET$lineNum
public static final long OFFSET$lineNum -
OFFSET$linePos
public static final long OFFSET$linePos -
OFFSET$offset
public static final long OFFSET$offset -
OFFSET$length
public static final long OFFSET$length
-
-
Constructor Details
-
WGPUCompilationMessage
Creates an instance of aWGPUCompilationMessagerecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
nextInChain
-
nextInChain
-
nextInChain
-
nextInChainRaw
-
nextInChainRaw
public void nextInChainRaw(@Pointer(target=WGPUChainedStruct.class) @NotNull @NotNull MemorySegment value) -
message
-
message
-
message
-
type
-
type
-
lineNum
-
lineNum
-
linePos
-
linePos
-
offset
-
offset
-
length
-
length
-
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.
-