Class CudaSurfObject
Cuda Surface Object
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaSurfObject : IDisposable
Constructors
| Improve this Doc View SourceCudaSurfObject(CudaResourceDesc)
Creates a surface object. ResDesc describes
the data to perform surface load/stores on. ResDesc.resType must be
Array and ResDesc.hArray
must be set to a valid CUDA array handle. ResDesc.flags must be set to zero.
Declaration
public CudaSurfObject(CudaResourceDesc resDesc)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaResourceDesc | resDesc | CudaResourceDesc |
CudaSurfObject(CudaArray1D)
Creates a surface object. ResDesc describes
the data to perform surface load/stores on. ResDesc.resType must be
Array and ResDesc.hArray
must be set to a valid CUDA array handle.
Declaration
public CudaSurfObject(CudaArray1D array)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaArray1D | array | CudaArray1D |
CudaSurfObject(CudaArray2D)
Creates a surface object. ResDesc describes
the data to perform surface load/stores on. ResDesc.resType must be
Array and ResDesc.hArray
must be set to a valid CUDA array handle.
Declaration
public CudaSurfObject(CudaArray2D array)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaArray2D | array | CudaArray2D |
CudaSurfObject(CudaArray3D)
Creates a surface object. ResDesc describes
the data to perform surface load/stores on. ResDesc.resType must be
Array and ResDesc.hArray
must be set to a valid CUDA array handle.
Declaration
public CudaSurfObject(CudaArray3D array)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaArray3D | array | CudaArray3D |
Properties
| Improve this Doc View SourceResDesc
Returns the CudaResourceDesc used to create the CudaSurfObject
Declaration
public CudaResourceDesc ResDesc { get; }
Property Value
| Type | Description |
|---|---|
| CudaResourceDesc |
SurfObject
Returns the wrapped CUsurfObject
Declaration
public CUsurfObject SurfObject { get; }
Property Value
| Type | Description |
|---|---|
| CUsurfObject |
Methods
| Improve this Doc View SourceDispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()