Cloo 0.9.1
Public Member Functions
Cloo.ComputeSubBuffer< T > Class Template Reference

Represents an OpenCL sub-buffer. More...

Inheritance diagram for Cloo.ComputeSubBuffer< T >:
Cloo.ComputeBufferBase< T > Cloo.ComputeMemory Cloo.ComputeResource Cloo.ComputeObject

List of all members.

Public Member Functions

 ComputeSubBuffer (ComputeBuffer< T > buffer, ComputeMemoryFlags flags, long offset, long count)
 Creates a new ComputeSubBuffer{T} from a specified ComputeBuffer{T}.

Detailed Description

template<T>
class Cloo::ComputeSubBuffer< T >

Represents an OpenCL sub-buffer.

Template Parameters:
TThe type of the elements of the ComputeSubBuffer{T}. T is restricted to value types and structs containing such types.

A sub-buffer is created from a standard buffer and represents all or part of its data content.
Requires OpenCL 1.1.

Type Constraints
T :struct 

Member Function Documentation

template<T >
Cloo.ComputeSubBuffer< T >.ComputeSubBuffer ( ComputeBuffer< T >  buffer,
ComputeMemoryFlags  flags,
long  offset,
long  count 
)

Creates a new ComputeSubBuffer{T} from a specified ComputeBuffer{T}.

Parameters:
bufferThe buffer to create the ComputeSubBuffer{T} from.
flagsA bit-field that is used to specify allocation and usage information about the ComputeBuffer{T}.
offsetThe index of the element of buffer , where the ComputeSubBuffer{T} starts.
countThe number of elements of buffer to include in the ComputeSubBuffer{T}.

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