cuda.bindings._v2.driver.surf_object_create#
- cuda.bindings._v2.driver.surf_object_create(p_res_desc) uint64_t#
Creates a surface object.
Creates a surface object and returns it in
p_surf_object.p_res_descdescribes the data to perform surface load/stores on.CUDA_RESOURCE_DESC.resTypemust beCU_RESOURCE_TYPE_ARRAYandCUDA_RESOURCE_DESC.res.array.hArraymust be set to a valid CUDA array handle.CUDA_RESOURCE_DESC.flagsmust be set to zero. Surface objects are only supported on devices of compute capability 3.0 or higher. Additionally, a surface object is an opaque value, and, as such, should only be accessed through CUDA API calls.- Parameters:
p_res_desc (intptr_t) – Resource descriptor.
- Returns:
Surface object to create.
- Return type:
uint64_t
See also
cuSurfObjectCreate