Cloo 0.9.1
Public Member Functions | Protected Member Functions | Properties
Cloo.ComputeCommandQueue Class Reference

Represents an OpenCL command queue. More...

Inheritance diagram for Cloo.ComputeCommandQueue:
Cloo.ComputeResource Cloo.ComputeObject

List of all members.

Public Member Functions

void CopyBuffer< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source buffer to a destination buffer.
void CopyBuffer< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, long sourceOffset, long destinationOffset, long region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source buffer to a destination buffer.
void CopyBuffer< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source buffer to a destination buffer.
void CopyBuffer< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source buffer to a destination buffer.
void CopyBuffer< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, long sourceRowPitch, long destinationRowPitch, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source buffer to a destination buffer.
void CopyBuffer< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, long sourceRowPitch, long destinationRowPitch, long sourceSlicePitch, long destinationSlicePitch, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source buffer to a destination buffer.
void CopyBufferToImage< T > (ComputeBufferBase< T > source, ComputeImage destination, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a buffer to an image.
void CopyBufferToImage< T > (ComputeBufferBase< T > source, ComputeImage2D destination, long sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a buffer to an image.
void CopyBufferToImage< T > (ComputeBufferBase< T > source, ComputeImage3D destination, long sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a buffer to an image.
void CopyImage (ComputeImage source, ComputeImage destination, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source image to a destination image.
void CopyImage (ComputeImage2D source, ComputeImage2D destination, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source image to a destination image.
void CopyImage (ComputeImage2D source, ComputeImage3D destination, SysIntX2 sourceOffset, SysIntX3 destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source image to a destination image.
void CopyImage (ComputeImage3D source, ComputeImage2D destination, SysIntX3 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source image to a destination image.
void CopyImage (ComputeImage3D source, ComputeImage3D destination, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a source image to a destination image.
void CopyImageToBuffer< T > (ComputeImage source, ComputeBufferBase< T > destination, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from an image to a buffer.
void CopyImageToBuffer< T > (ComputeImage2D source, ComputeBufferBase< T > destination, SysIntX2 sourceOffset, long destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from an image to a buffer.
void CopyImageToBuffer< T > (ComputeImage3D source, ComputeBufferBase< T > destination, SysIntX3 sourceOffset, long destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from a 3D image to a buffer.
void ReadFromBuffer< T > (ComputeBufferBase< T > source, ref T[] destination, bool blocking, IList< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void ReadFromBuffer< T > (ComputeBufferBase< T > source, ref T[] destination, bool blocking, long sourceOffset, long destinationOffset, long region, IList< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void ReadFromBuffer< T > (ComputeBufferBase< T > source, ref T[,] destination, bool blocking, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, IList< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void ReadFromBuffer< T > (ComputeBufferBase< T > source, ref T[,,] destination, bool blocking, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, IList< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void ReadFromBuffer< T > (ComputeBufferBase< T > source, ref T[,] destination, bool blocking, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, long sourceRowPitch, long destinationRowPitch, IList< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void ReadFromBuffer< T > (ComputeBufferBase< T > source, ref T[,,] destination, bool blocking, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, long sourceRowPitch, long destinationRowPitch, long sourceSlicePitch, long destinationSlicePitch, IList< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void ReadFromImage (ComputeImage source, IntPtr destination, bool blocking, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from an image.
void ReadFromImage (ComputeImage2D source, IntPtr destination, bool blocking, SysIntX2 sourceOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from an image.
void ReadFromImage (ComputeImage3D source, IntPtr destination, bool blocking, SysIntX3 sourceOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from an image.
void ReadFromImage (ComputeImage2D source, IntPtr destination, bool blocking, SysIntX2 sourceOffset, SysIntX2 region, long sourceRowPitch, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from an image.
void ReadFromImage (ComputeImage3D source, IntPtr destination, bool blocking, SysIntX3 sourceOffset, SysIntX3 region, long sourceRowPitch, long sourceSlicePitch, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from an image.
void WriteToBuffer< T > (T[] source, ComputeBufferBase< T > destination, bool blocking, IList< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void WriteToBuffer< T > (T[] source, ComputeBufferBase< T > destination, bool blocking, long sourceOffset, long destinationOffset, long region, IList< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void WriteToBuffer< T > (T[,] source, ComputeBufferBase< T > destination, bool blocking, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, IList< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void WriteToBuffer< T > (T[,,] source, ComputeBufferBase< T > destination, bool blocking, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, IList< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void WriteToBuffer< T > (T[,] source, ComputeBufferBase< T > destination, bool blocking, SysIntX2 sourceOffset, SysIntX2 destinationOffset, SysIntX2 region, long sourceRowPitch, long destinationRowPitch, IList< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void WriteToBuffer< T > (T[,,] source, ComputeBufferBase< T > destination, bool blocking, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, long sourceRowPitch, long destinationRowPitch, long sourceSlicePitch, long destinationSlicePitch, IList< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void WriteToImage (IntPtr source, ComputeImage destination, bool blocking, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to an image.
void WriteToImage (IntPtr source, ComputeImage2D destination, bool blocking, SysIntX2 destinationOffset, SysIntX2 region, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to an image.
void WriteToImage (IntPtr source, ComputeImage3D destination, bool blocking, SysIntX3 destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to an image.
void WriteToImage (IntPtr source, ComputeImage2D destination, bool blocking, SysIntX2 destinationOffset, SysIntX2 region, long destinationRowPitch, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to an image.
void WriteToImage (IntPtr source, ComputeImage3D destination, bool blocking, SysIntX3 destinationOffset, SysIntX3 region, long destinationRowPitch, long destinationSlicePitch, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to an image.
 ComputeCommandQueue (ComputeContext context, ComputeDevice device, ComputeCommandQueueFlags properties)
 Creates a new ComputeCommandQueue.
void AcquireGLObjects (ICollection< ComputeMemory > memObjs, ICollection< ComputeEventBase > events)
 Enqueues a command to acquire a collection of ComputeMemorys that have been previously created from OpenGL objects.
void AddBarrier ()
 Enqueues a barrier.
ComputeEvent AddMarker ()
 Enqueues a marker.
void Copy< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, long sourceOffset, long destinationOffset, long region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data between buffers.
void Copy< T > (ComputeBufferBase< T > source, ComputeBufferBase< T > destination, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, long sourceRowPitch, long sourceSlicePitch, long destinationRowPitch, long destinationSlicePitch, ICollection< ComputeEventBase > events)
 Enqueues a command to copy a 2D or 3D region of elements between two buffers.
void Copy< T > (ComputeBufferBase< T > source, ComputeImage destination, long sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from buffer to ComputeImage.
void Copy< T > (ComputeImage source, ComputeBufferBase< T > destination, SysIntX3 sourceOffset, long destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data from ComputeImage to buffer.
void Copy (ComputeImage source, ComputeImage destination, SysIntX3 sourceOffset, SysIntX3 destinationOffset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to copy data between ComputeImages.
void ExecuteTask (ComputeKernel kernel, ICollection< ComputeEventBase > events)
 Enqueues a command to execute a single ComputeKernel.
void Execute (ComputeKernel kernel, long[] globalWorkOffset, long[] globalWorkSize, long[] localWorkSize, ICollection< ComputeEventBase > events)
 Enqueues a command to execute a range of ComputeKernels in parallel.
void Finish ()
 Blocks until all previously enqueued commands are issued to the ComputeCommandQueue.Device and have completed.
void Flush ()
 Issues all previously enqueued commands to the ComputeCommandQueue.Device.
IntPtr Map< T > (ComputeBufferBase< T > buffer, bool blocking, ComputeMemoryMappingFlags flags, long offset, long region, ICollection< ComputeEventBase > events)
 Enqueues a command to map a part of a buffer into the host address space.
IntPtr Map (ComputeImage image, bool blocking, ComputeMemoryMappingFlags flags, SysIntX3 offset, SysIntX3 region, ICollection< ComputeEventBase > events)
 Enqueues a command to map a part of a ComputeImage into the host address space.
void Read< T > (ComputeBufferBase< T > source, bool blocking, long offset, long region, IntPtr destination, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from a buffer.
void Read (ComputeImage source, bool blocking, SysIntX3 offset, SysIntX3 region, long rowPitch, long slicePitch, IntPtr destination, ICollection< ComputeEventBase > events)
 Enqueues a command to read data from a ComputeImage.
void ReleaseGLObjects (ICollection< ComputeMemory > memObjs, ICollection< ComputeEventBase > events)
 Enqueues a command to release ComputeMemorys that have been created from OpenGL objects.
void Unmap (ComputeMemory memory, ref IntPtr mappedPtr, ICollection< ComputeEventBase > events)
 Enqueues a command to unmap a buffer or a ComputeImage from the host address space.
void Wait (ICollection< ComputeEventBase > events)
 Enqueues a wait command for a collection of ComputeEvents to complete before any future commands queued in the ComputeCommandQueue are executed.
void Write< T > (ComputeBufferBase< T > destination, bool blocking, long destinationOffset, long region, IntPtr source, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to a buffer.
void Write (ComputeImage destination, bool blocking, SysIntX3 destinationOffset, SysIntX3 region, long rowPitch, long slicePitch, IntPtr source, ICollection< ComputeEventBase > events)
 Enqueues a command to write data to a ComputeImage.

Protected Member Functions

override void Dispose (bool manual)
 Releases the associated OpenCL object.

Properties

CLCommandQueueHandle Handle [get, set]
 The handle of the ComputeCommandQueue.
ComputeContext Context [get]
 Gets the ComputeContext of the ComputeCommandQueue.
ComputeDevice Device [get]
 Gets the ComputeDevice of the ComputeCommandQueue.
bool OutOfOrderExecution [get]
 Gets the out-of-order execution mode of the commands in the ComputeCommandQueue.
bool Profiling [get]
 Gets the profiling mode of the commands in the ComputeCommandQueue.

Detailed Description

Represents an OpenCL command queue.

A command queue is an object that holds commands that will be executed on a specific device. The command queue is created on a specific device in a context. Commands to a command queue are queued in-order but may be executed in-order or out-of-order.

See also:
ComputeContext, ComputeDevice

Constructor & Destructor Documentation

Cloo.ComputeCommandQueue.ComputeCommandQueue ( ComputeContext  context,
ComputeDevice  device,
ComputeCommandQueueFlags  properties 
)

Creates a new ComputeCommandQueue.

Parameters:
contextA ComputeContext.
deviceA ComputeDevice associated with the context . It can either be one of ComputeContext.Devices or have the same ComputeDeviceTypes as the device specified when the context is created.
propertiesThe properties for the ComputeCommandQueue.

Member Function Documentation

void Cloo.ComputeCommandQueue.AcquireGLObjects ( ICollection< ComputeMemory memObjs,
ICollection< ComputeEventBase events 
)

Enqueues a command to acquire a collection of ComputeMemorys that have been previously created from OpenGL objects.

Parameters:
memObjsA collection of OpenCL memory objects that correspond to OpenGL objects.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
void Cloo.ComputeCommandQueue.AddBarrier ( )

Enqueues a barrier.

A barrier ensures that all queued commands have finished execution before the next batch of commands can begin execution.

ComputeEvent Cloo.ComputeCommandQueue.AddMarker ( )

Enqueues a marker.

void Cloo.ComputeCommandQueue.Copy ( ComputeImage  source,
ComputeImage  destination,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data between ComputeImages.

Parameters:
sourceThe ComputeImage to copy from.
destinationThe ComputeImage to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
void Cloo.ComputeCommandQueue.Copy< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
long  sourceOffset,
long  destinationOffset,
long  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data between buffers.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.Copy< T > ( ComputeBufferBase< T >  source,
ComputeImage  destination,
long  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from buffer to ComputeImage.

Template Parameters:
TThe type of data in source .
Parameters:
sourceThe buffer to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.Copy< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
long  sourceRowPitch,
long  sourceSlicePitch,
long  destinationRowPitch,
long  destinationSlicePitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy a 2D or 3D region of elements between two buffers.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
sourceRowPitchThe size of the source buffer row in bytes. If set to zero then sourceRowPitch equals region.X * sizeof(T).
sourceSlicePitchThe size of the source buffer 2D slice in bytes. If set to zero then sourceSlicePitch equals region.Y * sizeof(T) * sourceRowPitch.
destinationRowPitchThe size of the destination buffer row in bytes. If set to zero then destinationRowPitch equals region.X * sizeof(T).
destinationSlicePitchThe size of the destination buffer 2D slice in bytes. If set to zero then destinationSlicePitch equals region.Y * sizeof(T) * destinationRowPitch.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

Requires OpenCL 1.1.

Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.Copy< T > ( ComputeImage  source,
ComputeBufferBase< T >  destination,
SysIntX3  sourceOffset,
long  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from ComputeImage to buffer.

Parameters:
sourceThe image to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBuffer< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source buffer to a destination buffer.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBuffer< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
long  sourceRowPitch,
long  destinationRowPitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source buffer to a destination buffer.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
sourceRowPitchThe size of a row of elements of source in bytes.
destinationRowPitchThe size of a row of elements of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBuffer< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source buffer to a destination buffer.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBuffer< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
long  sourceOffset,
long  destinationOffset,
long  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source buffer to a destination buffer.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBuffer< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source buffer to a destination buffer.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBuffer< T > ( ComputeBufferBase< T >  source,
ComputeBufferBase< T >  destination,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
long  sourceRowPitch,
long  destinationRowPitch,
long  sourceSlicePitch,
long  destinationSlicePitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source buffer to a destination buffer.

Template Parameters:
TThe type of data in the buffers.
Parameters:
sourceThe buffer to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
sourceRowPitchThe size of a row of elements of source in bytes.
destinationRowPitchThe size of a row of elements of destination in bytes.
sourceSlicePitchThe size of a 2D slice of elements of source in bytes.
destinationSlicePitchThe size of a 2D slice of elements of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBufferToImage< T > ( ComputeBufferBase< T >  source,
ComputeImage2D  destination,
long  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a buffer to an image.

Template Parameters:
TThe type of data in source .
Parameters:
sourceThe buffer to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBufferToImage< T > ( ComputeBufferBase< T >  source,
ComputeImage3D  destination,
long  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a buffer to an image.

Template Parameters:
TThe type of data in source .
Parameters:
sourceThe buffer to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyBufferToImage< T > ( ComputeBufferBase< T >  source,
ComputeImage  destination,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a buffer to an image.

Template Parameters:
TThe type of data in source .
Parameters:
sourceThe buffer to copy from.
destinationThe image to copy to.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyImage ( ComputeImage  source,
ComputeImage  destination,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source image to a destination image.

Parameters:
sourceThe image to copy from.
destinationThe image to copy to.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.CopyImage ( ComputeImage2D  source,
ComputeImage2D  destination,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source image to a destination image.

Parameters:
sourceThe image to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.CopyImage ( ComputeImage2D  source,
ComputeImage3D  destination,
SysIntX2  sourceOffset,
SysIntX3  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source image to a destination image.

Parameters:
sourceThe image to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.CopyImage ( ComputeImage3D  source,
ComputeImage2D  destination,
SysIntX3  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source image to a destination image.

Parameters:
sourceThe image to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.CopyImage ( ComputeImage3D  source,
ComputeImage3D  destination,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a source image to a destination image.

Parameters:
sourceThe image to copy from.
destinationThe image to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.CopyImageToBuffer< T > ( ComputeImage2D  source,
ComputeBufferBase< T >  destination,
SysIntX2  sourceOffset,
long  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from an image to a buffer.

Template Parameters:
TThe type of data in destination .
Parameters:
sourceThe image to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyImageToBuffer< T > ( ComputeImage3D  source,
ComputeBufferBase< T >  destination,
SysIntX3  sourceOffset,
long  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from a 3D image to a buffer.

Template Parameters:
TThe type of data in destination .
Parameters:
sourceThe image to copy from.
destinationThe buffer to copy to.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to copy.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.CopyImageToBuffer< T > ( ComputeImage  source,
ComputeBufferBase< T >  destination,
ICollection< ComputeEventBase events 
)

Enqueues a command to copy data from an image to a buffer.

Template Parameters:
TThe type of data in destination .
Parameters:
sourceThe image to copy from.
destinationThe buffer to copy to.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
override void Cloo.ComputeCommandQueue.Dispose ( bool  manual) [protected, virtual]

Releases the associated OpenCL object.

Parameters:
manualSpecifies the operation mode of this method.

manual must be true if this method is invoked directly by the application.

Implements Cloo.ComputeResource.

void Cloo.ComputeCommandQueue.Execute ( ComputeKernel  kernel,
long[]  globalWorkOffset,
long[]  globalWorkSize,
long[]  localWorkSize,
ICollection< ComputeEventBase events 
)

Enqueues a command to execute a range of ComputeKernels in parallel.

Parameters:
kernelThe ComputeKernel to execute.
globalWorkOffsetAn array of values that describe the offset used to calculate the global ID of a work-item instead of having the global IDs always start at offset (0, 0,... 0).
globalWorkSizeAn array of values that describe the number of global work-items in dimensions that will execute the kernel function. The total number of global work-items is computed as global_work_size[0] *...* global_work_size[work_dim - 1].
localWorkSizeAn array of values that describe the number of work-items that make up a work-group (also referred to as the size of the work-group) that will execute the kernel . The total number of work-items in a work-group is computed as local_work_size[0] *... * local_work_size[work_dim - 1].
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
void Cloo.ComputeCommandQueue.ExecuteTask ( ComputeKernel  kernel,
ICollection< ComputeEventBase events 
)

Enqueues a command to execute a single ComputeKernel.

Parameters:
kernelThe ComputeKernel to execute.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
void Cloo.ComputeCommandQueue.Finish ( )

Blocks until all previously enqueued commands are issued to the ComputeCommandQueue.Device and have completed.

void Cloo.ComputeCommandQueue.Flush ( )

Issues all previously enqueued commands to the ComputeCommandQueue.Device.

This method only guarantees that all previously enqueued commands get issued to the OpenCL device. There is no guarantee that they will be complete after this method returns.

IntPtr Cloo.ComputeCommandQueue.Map ( ComputeImage  image,
bool  blocking,
ComputeMemoryMappingFlags  flags,
SysIntX3  offset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to map a part of a ComputeImage into the host address space.

Parameters:
imageThe ComputeImage to map.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
flagsA list of properties for the mapping mode.
offsetThe image element position where mapping starts.
regionThe region of elements to map.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

If blocking is true this method will not return until the command completes. If blocking is false this method will return immediately after the command is enqueued.

IntPtr Cloo.ComputeCommandQueue.Map< T > ( ComputeBufferBase< T >  buffer,
bool  blocking,
ComputeMemoryMappingFlags  flags,
long  offset,
long  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to map a part of a buffer into the host address space.

Parameters:
bufferThe buffer to map.
blockingThe mode of operation of this call.
flagsA list of properties for the mapping mode.
offsetThe buffer element position where mapping starts.
regionThe region of elements to map.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

If blocking is true this method will not return until the command completes. If blocking is false this method will return immediately after the command is enqueued.

Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.Read ( ComputeImage  source,
bool  blocking,
SysIntX3  offset,
SysIntX3  region,
long  rowPitch,
long  slicePitch,
IntPtr  destination,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from a ComputeImage.

Parameters:
sourceThe ComputeImage to read from.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
offsetThe source element position where reading starts.
regionThe region of elements to read.
rowPitchThe ComputeImage.RowPitch of source or 0.
slicePitchThe ComputeImage.SlicePitch of source or 0.
destinationA pointer to a preallocated memory area to read the data into.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

If blocking is true this method will not return until the command completes. If blocking is false this method will return immediately after the command is enqueued.

void Cloo.ComputeCommandQueue.Read< T > ( ComputeBufferBase< T >  source,
bool  blocking,
long  offset,
long  region,
IntPtr  destination,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Parameters:
sourceThe buffer to read from.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
offsetThe source element position where reading starts.
regionThe region of elements to read.
destinationA pointer to a preallocated memory area to read the data into.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

If blocking is true this method will not return until the command completes. If blocking is false this method will return immediately after the command is enqueued.

Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromBuffer< T > ( ComputeBufferBase< T >  source,
ref T[]  destination,
bool  blocking,
IList< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe buffer to read from.
destinationThe array to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromBuffer< T > ( ComputeBufferBase< T >  source,
ref T[]  destination,
bool  blocking,
long  sourceOffset,
long  destinationOffset,
long  region,
IList< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe buffer to read from.
destinationThe array to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to read.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromBuffer< T > ( ComputeBufferBase< T >  source,
ref T  destination[,],
bool  blocking,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
IList< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe buffer to read from.
destinationThe array to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to read.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromBuffer< T > ( ComputeBufferBase< T >  source,
ref T  destination[,,],
bool  blocking,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
IList< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe buffer to read from.
destinationThe array to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to read.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromBuffer< T > ( ComputeBufferBase< T >  source,
ref T  destination[,],
bool  blocking,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
long  sourceRowPitch,
long  destinationRowPitch,
IList< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe buffer to read from.
destinationThe array to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to read.
sourceRowPitchThe size of a row of elements of source in bytes.
destinationRowPitchThe size of a row of elements of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromBuffer< T > ( ComputeBufferBase< T >  source,
ref T  destination[,,],
bool  blocking,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
long  sourceRowPitch,
long  destinationRowPitch,
long  sourceSlicePitch,
long  destinationSlicePitch,
IList< ComputeEventBase events 
)

Enqueues a command to read data from a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe buffer to read from.
destinationThe array to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to read.
sourceRowPitchThe size of a row of elements of source in bytes.
destinationRowPitchThe size of a row of elements of destination in bytes.
sourceSlicePitchThe size of a 2D slice of elements of source in bytes.
destinationSlicePitchThe size of a 2D slice of elements of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.ReadFromImage ( ComputeImage  source,
IntPtr  destination,
bool  blocking,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from an image.

Parameters:
sourceThe image to read from.
destinationA valid pointer to a preallocated memory area to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.ReadFromImage ( ComputeImage3D  source,
IntPtr  destination,
bool  blocking,
SysIntX3  sourceOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from an image.

Parameters:
sourceThe image to read from.
destinationA valid pointer to a preallocated memory area to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
regionThe region of elements to read.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.ReadFromImage ( ComputeImage2D  source,
IntPtr  destination,
bool  blocking,
SysIntX2  sourceOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from an image.

Parameters:
sourceThe image to read from.
destinationA valid pointer to a preallocated memory area to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
regionThe region of elements to read.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.ReadFromImage ( ComputeImage3D  source,
IntPtr  destination,
bool  blocking,
SysIntX3  sourceOffset,
SysIntX3  region,
long  sourceRowPitch,
long  sourceSlicePitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from an image.

Parameters:
sourceThe image to read from.
destinationA valid pointer to a preallocated memory area to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
regionThe region of elements to read.
sourceRowPitchThe size of a row of pixels of destination in bytes.
sourceSlicePitchThe size of a 2D slice of pixels of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.ReadFromImage ( ComputeImage2D  source,
IntPtr  destination,
bool  blocking,
SysIntX2  sourceOffset,
SysIntX2  region,
long  sourceRowPitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to read data from an image.

Parameters:
sourceThe image to read from.
destinationA valid pointer to a preallocated memory area to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
regionThe region of elements to read.
sourceRowPitchThe size of a row of pixels of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.ReleaseGLObjects ( ICollection< ComputeMemory memObjs,
ICollection< ComputeEventBase events 
)

Enqueues a command to release ComputeMemorys that have been created from OpenGL objects.

Parameters:
memObjsA collection of ComputeMemorys that correspond to OpenGL memory objects.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
void Cloo.ComputeCommandQueue.Unmap ( ComputeMemory  memory,
ref IntPtr  mappedPtr,
ICollection< ComputeEventBase events 
)

Enqueues a command to unmap a buffer or a ComputeImage from the host address space.

Parameters:
memoryThe ComputeMemory.
mappedPtrThe host address returned by a previous call to ComputeCommandQueue.Map. This pointer is IntPtr.Zero after this method returns.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.
void Cloo.ComputeCommandQueue.Wait ( ICollection< ComputeEventBase events)

Enqueues a wait command for a collection of ComputeEvents to complete before any future commands queued in the ComputeCommandQueue are executed.

Parameters:
eventsThe ComputeEvents that this command will wait for.
void Cloo.ComputeCommandQueue.Write ( ComputeImage  destination,
bool  blocking,
SysIntX3  destinationOffset,
SysIntX3  region,
long  rowPitch,
long  slicePitch,
IntPtr  source,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to a ComputeImage.

Parameters:
destinationThe ComputeImage to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
rowPitchThe ComputeImage.RowPitch of destination or 0.
slicePitchThe ComputeImage.SlicePitch of destination or 0.
sourceThe content written to the ComputeImage.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

If blocking is true this method will not return until the command completes. If blocking is false this method will return immediately after the command is enqueued.

void Cloo.ComputeCommandQueue.Write< T > ( ComputeBufferBase< T >  destination,
bool  blocking,
long  destinationOffset,
long  region,
IntPtr  source,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Parameters:
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
sourceThe data written to the buffer.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null or read-only a new ComputeEvent identifying this command is created and attached to the end of the collection.

If blocking is true this method will not return until the command completes. If blocking is false this method will return immediately after the command is enqueued.

Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToBuffer< T > ( source[,],
ComputeBufferBase< T >  destination,
bool  blocking,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
IList< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe array to read from.
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToBuffer< T > ( T[]  source,
ComputeBufferBase< T >  destination,
bool  blocking,
long  sourceOffset,
long  destinationOffset,
long  region,
IList< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe array to read from.
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToBuffer< T > ( source[,],
ComputeBufferBase< T >  destination,
bool  blocking,
SysIntX2  sourceOffset,
SysIntX2  destinationOffset,
SysIntX2  region,
long  sourceRowPitch,
long  destinationRowPitch,
IList< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe array to read from.
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
sourceRowPitchThe size of a row of elements of source in bytes.
destinationRowPitchThe size of a row of elements of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToBuffer< T > ( source[,,],
ComputeBufferBase< T >  destination,
bool  blocking,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
IList< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe array to read from.
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToBuffer< T > ( T[]  source,
ComputeBufferBase< T >  destination,
bool  blocking,
IList< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe array to read from.
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToBuffer< T > ( source[,,],
ComputeBufferBase< T >  destination,
bool  blocking,
SysIntX3  sourceOffset,
SysIntX3  destinationOffset,
SysIntX3  region,
long  sourceRowPitch,
long  destinationRowPitch,
long  sourceSlicePitch,
long  destinationSlicePitch,
IList< ComputeEventBase events 
)

Enqueues a command to write data to a buffer.

Template Parameters:
TThe type of data in the buffer.
Parameters:
sourceThe array to read from.
destinationThe buffer to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
sourceOffsetThe source element position where reading starts.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
sourceRowPitchThe size of a row of elements of source in bytes.
destinationRowPitchThe size of a row of elements of destination in bytes.
sourceSlicePitchThe size of a 2D slice of elements of source in bytes.
destinationSlicePitchThe size of a 2D slice of elements of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
Type Constraints
T :struct 
void Cloo.ComputeCommandQueue.WriteToImage ( IntPtr  source,
ComputeImage  destination,
bool  blocking,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to an image.

Parameters:
sourceA pointer to a memory area to read from.
destinationThe image to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.WriteToImage ( IntPtr  source,
ComputeImage3D  destination,
bool  blocking,
SysIntX3  destinationOffset,
SysIntX3  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to an image.

Parameters:
sourceA pointer to a memory area to read from.
destinationThe image to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.WriteToImage ( IntPtr  source,
ComputeImage3D  destination,
bool  blocking,
SysIntX3  destinationOffset,
SysIntX3  region,
long  destinationRowPitch,
long  destinationSlicePitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to an image.

Parameters:
sourceA pointer to a memory area to read from.
destinationThe image to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
destinationRowPitchThe size of a row of pixels of destination in bytes.
destinationSlicePitchThe size of a 2D slice of pixels of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.WriteToImage ( IntPtr  source,
ComputeImage2D  destination,
bool  blocking,
SysIntX2  destinationOffset,
SysIntX2  region,
long  destinationRowPitch,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to an image.

Parameters:
sourceA pointer to a memory area to read from.
destinationThe image to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
destinationRowPitchThe size of a row of pixels of destination in bytes.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.
void Cloo.ComputeCommandQueue.WriteToImage ( IntPtr  source,
ComputeImage2D  destination,
bool  blocking,
SysIntX2  destinationOffset,
SysIntX2  region,
ICollection< ComputeEventBase events 
)

Enqueues a command to write data to an image.

Parameters:
sourceA pointer to a memory area to read from.
destinationThe image to write to.
blockingThe mode of operation of this command. If true this call will not return until the command has finished execution.
destinationOffsetThe destination element position where writing starts.
regionThe region of elements to write.
eventsA collection of events that need to complete before this particular command can be executed. If events is not null a new event identifying this command is attached to the end of the collection.

Property Documentation

ComputeContext Cloo.ComputeCommandQueue.Context [get]
ComputeDevice Cloo.ComputeCommandQueue.Device [get]
CLCommandQueueHandle Cloo.ComputeCommandQueue.Handle [get, set]

The handle of the ComputeCommandQueue.

bool Cloo.ComputeCommandQueue.OutOfOrderExecution [get]

Gets the out-of-order execution mode of the commands in the ComputeCommandQueue.

Is true if ComputeCommandQueue has out-of-order execution mode enabled and false otherwise.

bool Cloo.ComputeCommandQueue.Profiling [get]

Gets the profiling mode of the commands in the ComputeCommandQueue.

Is true if ComputeCommandQueue has profiling enabled and false otherwise.


The documentation for this class was generated from the following files: