Class CudaSurface
CudaSurface3D
Inheritance
System.Object
CudaSurface
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaSurface : IDisposable
Constructors
| Improve this Doc View SourceCudaSurface(CudaKernel, String, CUSurfRefSetFlags, CUArrayFormat, SizeT, SizeT, SizeT, CudaArray3DNumChannels, CUDAArray3DFlags)
Creates a new surface from array memory. Allocates new array.
Declaration
public CudaSurface(CudaKernel kernel, string surfName, CUSurfRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, SizeT depth, CudaArray3DNumChannels numChannels, CUDAArray3DFlags arrayFlags)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaKernel | kernel | |
| System.String | surfName | |
| CUSurfRefSetFlags | flags | |
| CUArrayFormat | format | |
| SizeT | width | In elements |
| SizeT | height | In elements |
| SizeT | depth | In elements |
| CudaArray3DNumChannels | numChannels | |
| CUDAArray3DFlags | arrayFlags |
CudaSurface(CudaKernel, String, CUSurfRefSetFlags, CudaArray3D)
Creates a new surface from array memory.
Declaration
public CudaSurface(CudaKernel kernel, string surfName, CUSurfRefSetFlags flags, CudaArray3D array)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaKernel | kernel | |
| System.String | surfName | |
| CUSurfRefSetFlags | flags | |
| CudaArray3D | array |
Properties
| Improve this Doc View SourceArray
Array
Declaration
public CudaArray3D Array { get; }
Property Value
| Type | Description |
|---|---|
| CudaArray3D |
ChannelSize
ChannelSize
Declaration
public uint ChannelSize { get; }
Property Value
| Type | Description |
|---|---|
| System.UInt32 |
CUFuntion
CUFuntion
Declaration
public CUfunction CUFuntion { get; }
Property Value
| Type | Description |
|---|---|
| CUfunction |
Flags
Flags
Declaration
public CUSurfRefSetFlags Flags { get; }
Property Value
| Type | Description |
|---|---|
| CUSurfRefSetFlags |
Format
Format
Declaration
public CUArrayFormat Format { get; }
Property Value
| Type | Description |
|---|---|
| CUArrayFormat |
Height
Height
Declaration
public SizeT Height { get; }
Property Value
| Type | Description |
|---|---|
| SizeT |
Module
Module
Declaration
public CUmodule Module { get; }
Property Value
| Type | Description |
|---|---|
| CUmodule |
Name
Name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
NumChannels
NumChannels
Declaration
public int NumChannels { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SurfaceReference
SurfaceReference
Declaration
public CUsurfref SurfaceReference { get; }
Property Value
| Type | Description |
|---|---|
| CUsurfref |
TotalSizeInBytes
TotalSizeInBytes
Declaration
public SizeT TotalSizeInBytes { get; }
Property Value
| Type | Description |
|---|---|
| SizeT |
Width
Width
Declaration
public SizeT Width { get; }
Property Value
| Type | Description |
|---|---|
| SizeT |
Methods
| Improve this Doc View SourceBindArray(CudaKernel, String, CUSurfRefSetFlags, CUArrayFormat, SizeT, SizeT, SizeT, CudaArray3DNumChannels, CUDAArray3DFlags)
Create a new CudaArray3D and bind it to a surface reference.
Declaration
public static CudaArray3D BindArray(CudaKernel kernel, string surfName, CUSurfRefSetFlags flags, CUArrayFormat format, SizeT width, SizeT height, SizeT depth, CudaArray3DNumChannels numChannels, CUDAArray3DFlags arrayFlags)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaKernel | kernel | |
| System.String | surfName | |
| CUSurfRefSetFlags | flags | |
| CUArrayFormat | format | |
| SizeT | width | In elements |
| SizeT | height | In elements |
| SizeT | depth | In elements |
| CudaArray3DNumChannels | numChannels | |
| CUDAArray3DFlags | arrayFlags |
Returns
| Type | Description |
|---|---|
| CudaArray3D |
BindArray(CudaKernel, String, CUSurfRefSetFlags, CudaArray3D)
Bind a CudaArray3D to a surface reference.
Declaration
public static void BindArray(CudaKernel kernel, string surfName, CUSurfRefSetFlags flags, CudaArray3D array)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaKernel | kernel | |
| System.String | surfName | |
| CUSurfRefSetFlags | flags | |
| CudaArray3D | array |
Dispose()
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()
Implements
System.IDisposable