Show / Hide Table of Contents

    Class DriverAPINativeMethods.SurfaceReferenceManagement

    Combines all surface management API calls

    Inheritance
    System.Object
    DriverAPINativeMethods.SurfaceReferenceManagement
    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 static class SurfaceReferenceManagement

    Methods

    cuSurfRefGetArray(ref CUarray, CUsurfref)

    Returns in phArray the CUDA array bound to the surface reference hSurfRef, or returns ErrorInvalidValue if the surface reference is not bound to any CUDA array.

    Declaration
    public static CUResult cuSurfRefGetArray(ref CUarray phArray, CUsurfref hSurfRef)
    Parameters
    Type Name Description
    CUarray phArray

    Surface reference handle

    CUsurfref hSurfRef

    Surface reference handle

    Returns
    Type Description
    CUResult

    CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized, ErrorInvalidContext, ErrorInvalidValue. Note that this function may also return error codes from previous, asynchronous launches.

    cuSurfRefSetArray(CUsurfref, CUarray, CUSurfRefSetFlags)

    Sets the CUDA array hArray to be read and written by the surface reference hSurfRef. Any previous CUDA array state associated with the surface reference is superseded by this function. Flags must be set to None. The SurfaceLDST flag must have been set for the CUDA array. Any CUDA array previously bound to hSurfRef is unbound.

    Declaration
    public static CUResult cuSurfRefSetArray(CUsurfref hSurfRef, CUarray hArray, CUSurfRefSetFlags Flags)
    Parameters
    Type Name Description
    CUsurfref hSurfRef

    Surface reference handle

    CUarray hArray

    CUDA array handle

    CUSurfRefSetFlags Flags

    set to None

    Returns
    Type Description
    CUResult

    CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized, ErrorInvalidContext, ErrorInvalidValue. Note that this function may also return error codes from previous, asynchronous launches.

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