Skip to main content

cuSurfRefSetArray

Function cuSurfRefSetArray 

Source
pub unsafe extern "C" fn cuSurfRefSetArray(
    hSurfRef: CUsurfref,
    hArray: CUarray,
    Flags: c_uint,
) -> CUresult
👎Deprecated
Expand description

Sets the CUDA array for a surface reference.

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 0. The CUDA_ARRAY3D_SURFACE_LDST flag must have been set for the CUDA array. Any CUDA array previously bound to hSurfRef is unbound.

§Parameters

  • hSurfRef: Surface reference handle.
  • hArray: CUDA array handle.
  • Flags: set to 0.

§Return value

See also: cuModuleGetSurfRef, cuSurfRefGetArray.