Cloo 0.9.1

- Main Page
- Packages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

Represents an OpenCL sub-buffer. More...

Inheritance diagram for Cloo.ComputeSubBuffer< T >:

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:

  T | The type of the elements of the ComputeSubBuffer{T}. T is restricted to value types and `struct`s 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:

  buffer | The buffer to create the ComputeSubBuffer{T} from.
  flags | A bit-field that is used to specify allocation and usage information about the ComputeBuffer{T}.
  offset | The index of the element of buffer , where the ComputeSubBuffer{T} starts.
  count | The number of elements of buffer to include in the ComputeSubBuffer{T}.

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

- Cloo/Source/ComputeSubBuffer.cs