Buffer to manage GPU memory. Should only be created on the CPU.  
 More...
 | 
| int  | Dimensions [get, private set] | 
|   | The number of dimensions in the array.  More...
  | 
|   | 
| ArrayView1D< T, Stride1D.Dense >  | View [get] | 
|   | Get the view of the memory for the GPU.  More...
  | 
|   | 
| ValueTuple< int, int >  | Strides [get] | 
|   | Gets the Y and Z strides of the array.  More...
  | 
|   | 
Buffer to manage GPU memory. Should only be created on the CPU. 
 
◆ Behavior
Specifies the behavior of the buffer. 
| Enumerator | 
|---|
| To  | Specifies that data should be transfered to the GPU, but not from it.  
 | 
| From  | Specifies that data should be transfered from the GPU, but not to it.  
 | 
| ToFrom  | Specifies that data should be transfered both to and from the GPU.  
 | 
| NoCopy  | Specifies that the data shouldn't be transfered to or from the GPU. For internal use.  
 | 
 
 
◆ Buffer() [1/3]
Constructor for buffer object. Allocates a 1D array on the GPU and makes it available for the next GPU kernel. 
- Parameters
 - 
  
    | data | The data to allocate on the GPU. | 
    | behavior | The behavior of the data, see Behavior. | 
  
   
 
 
◆ Buffer() [2/3]
Constructor for buffer object. Allocates a 2D array on the GPU and makes it available for the next GPU kernel. 
- Parameters
 - 
  
    | data | The data to allocate on the GPU. | 
    | behavior | The behavior of the data, see Behavior. | 
  
   
 
 
◆ Buffer() [3/3]
Constructor for buffer object. Allocates a 3D array on the GPU and makes it available for the next GPU kernel. 
- Parameters
 - 
  
    | data | The data to allocate on the GPU. | 
    | behavior | The behavior of the data, see Behavior. | 
  
   
 
 
◆ Dispose()
Dispose of the buffer, freeing GPU memory and copying any relevant data back to the CPU. 
 
 
◆ behavior
Behavior of the data, as specified by Behavior. 
 
 
◆ buf
The ILGPU buffer for arrays. 
 
 
◆ data1d
The CPU 1D array, so that we can copy the data back. 
 
 
◆ data2d
The CPU 2D array, so that we can copy the data back. 
 
 
◆ data3d
The CPU 3D array, so that we can copy the data back. 
 
 
◆ stride_y
◆ stride_z
◆ Dimensions
The number of dimensions in the array. 
 
 
◆ Strides
Gets the Y and Z strides of the array. 
 
 
◆ View
Get the view of the memory for the GPU. 
 
 
The documentation for this class was generated from the following file: