java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.CLImageFormat
- All Implemented Interfaces:
club.doki7.ffm.IPointer,ICLImageFormat
@ValueBasedCandidate
@UnsafeConstructor
public record CLImageFormat(@NotNull MemorySegment segment)
extends Record
implements ICLImageFormat
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionCLImageFormat(@NotNull MemorySegment segment) Creates an instance of aCLImageFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLImageFormatstatic CLImageFormat.Ptrstatic CLImageFormatclone(Arena arena, CLImageFormat src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intimageChannelDataType(int value) intimageChannelOrder(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$imageChannelOrder
-
PATH$imageChannelDataType
-
LAYOUT$imageChannelOrder
-
LAYOUT$imageChannelDataType
-
SIZE$imageChannelOrder
public static final long SIZE$imageChannelOrder -
SIZE$imageChannelDataType
public static final long SIZE$imageChannelDataType -
OFFSET$imageChannelOrder
public static final long OFFSET$imageChannelOrder -
OFFSET$imageChannelDataType
public static final long OFFSET$imageChannelDataType
-
-
Constructor Details
-
CLImageFormat
Creates an instance of aCLImageFormatrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
imageChannelOrder
@NativeType("cl_channel_order") @Unsigned public int imageChannelOrder() -
imageChannelOrder
-
imageChannelDataType
@NativeType("cl_channel_type") @Unsigned public int imageChannelDataType() -
imageChannelDataType
-
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.- Specified by:
segmentin interfaceclub.doki7.ffm.IPointer- Returns:
- the value of the
segmentrecord component
-