java.lang.Object
java.lang.Record
club.doki7.opencl.datatype.CLImageDesc
- All Implemented Interfaces:
club.doki7.ffm.IPointer,ICLImageDesc
@ValueBasedCandidate
@UnsafeConstructor
public record CLImageDesc(@NotNull MemorySegment segment)
extends Record
implements ICLImageDesc
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic 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
ConstructorsConstructorDescriptionCLImageDesc(@NotNull MemorySegment segment) Creates an instance of aCLImageDescrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLImageDescstatic CLImageDesc.Ptr@NotNull CLImageDescBufferOrMemObjectbufferOrMemObject(@NotNull CLImageDescBufferOrMemObject value) bufferOrMemObject(Consumer<@NotNull CLImageDescBufferOrMemObject> consumer) static CLImageDescclone(Arena arena, CLImageDesc src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longimageArraySize(long value) longimageDepth(long value) longimageHeight(long value) longimageRowPitch(long value) longimageSlicePitch(long value) intimageType(int value) longimageWidth(long value) intnumMipLevels(int value) intnumSamples(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$imageType
-
PATH$imageWidth
-
PATH$imageHeight
-
PATH$imageDepth
-
PATH$imageArraySize
-
PATH$imageRowPitch
-
PATH$imageSlicePitch
-
PATH$numMipLevels
-
PATH$numSamples
-
PATH$bufferOrMemObject
-
LAYOUT$imageType
-
LAYOUT$numMipLevels
-
LAYOUT$numSamples
-
LAYOUT$bufferOrMemObject
-
SIZE$imageType
public static final long SIZE$imageType -
SIZE$imageWidth
public static final long SIZE$imageWidth -
SIZE$imageHeight
public static final long SIZE$imageHeight -
SIZE$imageDepth
public static final long SIZE$imageDepth -
SIZE$imageArraySize
public static final long SIZE$imageArraySize -
SIZE$imageRowPitch
public static final long SIZE$imageRowPitch -
SIZE$imageSlicePitch
public static final long SIZE$imageSlicePitch -
SIZE$numMipLevels
public static final long SIZE$numMipLevels -
SIZE$numSamples
public static final long SIZE$numSamples -
SIZE$bufferOrMemObject
public static final long SIZE$bufferOrMemObject -
OFFSET$imageType
public static final long OFFSET$imageType -
OFFSET$imageWidth
public static final long OFFSET$imageWidth -
OFFSET$imageHeight
public static final long OFFSET$imageHeight -
OFFSET$imageDepth
public static final long OFFSET$imageDepth -
OFFSET$imageArraySize
public static final long OFFSET$imageArraySize -
OFFSET$imageRowPitch
public static final long OFFSET$imageRowPitch -
OFFSET$imageSlicePitch
public static final long OFFSET$imageSlicePitch -
OFFSET$numMipLevels
public static final long OFFSET$numMipLevels -
OFFSET$numSamples
public static final long OFFSET$numSamples -
OFFSET$bufferOrMemObject
public static final long OFFSET$bufferOrMemObject
-
-
Constructor Details
-
CLImageDesc
Creates an instance of aCLImageDescrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
imageType
@NativeType("cl_mem_object_type") @Unsigned public int imageType() -
imageType
-
imageWidth
@Unsigned public long imageWidth() -
imageWidth
-
imageHeight
@Unsigned public long imageHeight() -
imageHeight
-
imageDepth
@Unsigned public long imageDepth() -
imageDepth
-
imageArraySize
@Unsigned public long imageArraySize() -
imageArraySize
-
imageRowPitch
@Unsigned public long imageRowPitch() -
imageRowPitch
-
imageSlicePitch
@Unsigned public long imageSlicePitch() -
imageSlicePitch
-
numMipLevels
@NativeType("cl_uint") @Unsigned public int numMipLevels() -
numMipLevels
-
numSamples
@NativeType("cl_uint") @Unsigned public int numSamples() -
numSamples
-
bufferOrMemObject
-
bufferOrMemObject
-
bufferOrMemObject
-
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
-