method Constructor(Context as CLContextMBS, Flags as UInt64, ImageFormat as CLImageFormatMBS, Width as Integer, Height as Integer, Depth as Integer, RowPitch as Integer, SlicePitch as Integer, HostPtr as Memoryblock = nil)
method Constructor(Context as CLContextMBS, Flags as UInt64, ImageFormat as CLImageFormatMBS, Width as Integer, Height as Integer, RowPitch as Integer, HostPtr as Memoryblock = nil)
method Constructor(Context as CLContextMBS, Flags as UInt64, Size as Integer, HostPtr as Memoryblock = nil)
This flags specifies that the memory object will be written but not read by a kernel.
Reading from a buffer or image object created with kMemoryWriteOnly inside a kernel is undefined.
Memory object types.
Constant
Value
Description
kMemoryTypeBuffer
&h10F0
A normal memory buffer.
kMemoryTypeImage2D
&h10F1
2D Image
kMemoryTypeImage3D
&h10F2
3D Image
This class has no sub classes.
Some methods using this class:
CLCommandQueueMBS.EnqueueCopyBuffer(sourceBuffer as CLMemMBS, destBuffer as CLMemMBS, sourceOffset as Integer, destOffset as Integer, size as Integer)
CLCommandQueueMBS.EnqueueCopyBufferToImage(SourceBuffer as CLMemMBS, destImage as CLMemMBS, sourceOffset as Integer, destOriginX as Integer, destOriginY as Integer, destOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
CLCommandQueueMBS.EnqueueCopyImageToBuffer(sourceImage as CLMemMBS, destBuffer as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, destOffset as Integer, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
CLCommandQueueMBS.EnqueueReadImage(image as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, RowPitch as Integer, SlicePitch as Integer, mem as Memoryblock)
CLCommandQueueMBS.EnqueueReadPicture(image as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, RegionWidth as Integer, RegionHeight as Integer, pic as picture)
CLCommandQueueMBS.EnqueueWriteImage(image as CLMemMBS, BlockingWrite as boolean, sourceOriginX as Integer, sourceOriginY as Integer, sourceOriginZ as Integer, RegionWidth as Integer, RegionHeight as Integer, RegionDepth as Integer, RowPitch as Integer, SlicePitch as Integer, mem as Memoryblock, EventWaitList() as CLEventMBS, byref outEvent as CLEventMBS)
CLCommandQueueMBS.EnqueueWritePicture(image as CLMemMBS, sourceOriginX as Integer, sourceOriginY as Integer, RegionWidth as Integer, RegionHeight as Integer, pic as picture)