Show / Hide Table of Contents

    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 Source

    CudaSurface(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
    | Improve this Doc View Source

    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 Source

    Array

    Array

    Declaration
    public CudaArray3D Array { get; }
    Property Value
    Type Description
    CudaArray3D
    | Improve this Doc View Source

    ChannelSize

    ChannelSize

    Declaration
    public uint ChannelSize { get; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    CUFuntion

    CUFuntion

    Declaration
    public CUfunction CUFuntion { get; }
    Property Value
    Type Description
    CUfunction
    | Improve this Doc View Source

    Flags

    Flags

    Declaration
    public CUSurfRefSetFlags Flags { get; }
    Property Value
    Type Description
    CUSurfRefSetFlags
    | Improve this Doc View Source

    Format

    Format

    Declaration
    public CUArrayFormat Format { get; }
    Property Value
    Type Description
    CUArrayFormat
    | Improve this Doc View Source

    Height

    Height

    Declaration
    public SizeT Height { get; }
    Property Value
    Type Description
    SizeT
    | Improve this Doc View Source

    Module

    Module

    Declaration
    public CUmodule Module { get; }
    Property Value
    Type Description
    CUmodule
    | Improve this Doc View Source

    Name

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    NumChannels

    NumChannels

    Declaration
    public int NumChannels { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    SurfaceReference

    SurfaceReference

    Declaration
    public CUsurfref SurfaceReference { get; }
    Property Value
    Type Description
    CUsurfref
    | Improve this Doc View Source

    TotalSizeInBytes

    TotalSizeInBytes

    Declaration
    public SizeT TotalSizeInBytes { get; }
    Property Value
    Type Description
    SizeT
    | Improve this Doc View Source

    Width

    Width

    Declaration
    public SizeT Width { get; }
    Property Value
    Type Description
    SizeT

    Methods

    | Improve this Doc View Source

    BindArray(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
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    For IDisposable

    Declaration
    protected virtual void Dispose(bool fDisposing)
    Parameters
    Type Name Description
    System.Boolean fDisposing
    | Improve this Doc View Source

    Finalize()

    For dispose

    Declaration
    protected void Finalize()

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX