CUDA学习(四十二)

简介:

Surface Reference API(表面参考API):
surf1Dread():

template<class Type>
Type surf1Dread(surface<void, cudaSurfaceType1D> surfRef,
    int x,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surf1Dread(Type data,
    surface<void, cudaSurfaceType1D> surfRef,
    int x,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x读取绑定到一维曲面参考surfRef的CUDA数组。
surf1Dwrite():

template<class Type>
void surf1Dwrite(Type data,
    surface<void, cudaSurfaceType1D> surfRef,
    int x,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到坐标x处的一维表面参考surfRef的CUDA数组。
surf2Dread():

template<class Type>
Type surf2Dread(surface<void, cudaSurfaceType2D> surfRef,
    int x, int y,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surf2Dread(Type* data,
    surface<void, cudaSurfaceType2D> surfRef,
    int x, int y,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x和y读取绑定到二维曲面参考surfRef的CUDA数组。
surf2Dwrite():

template<class Type>
void surf3Dwrite(Type data,
    surface<void, cudaSurfaceType3D> surfRef,
    int x, int y, int z,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到二维表面参考surfRef的坐标x和y处的CUDA数组。
surf3Dread():

template<class Type>
Type surf3Dread(surface<void, cudaSurfaceType3D> surfRef,
    int x, int y, int z,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surf3Dread(Type* data,
    surface<void, cudaSurfaceType3D> surfRef,
    int x, int y, int z,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x,y和z读取绑定到三维曲面参考surfRef的CUDA数组。
surf3Dwrite():

template<class Type>
void surf3Dwrite(Type data,
    surface<void, cudaSurfaceType3D> surfRef,
    int x, int y, int z,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到坐标x,y和z的三维表面参考surfRef的CUDA数组。
surf1DLayeredread():

template<class Type>
Type surf1DLayeredread(
    surface<void, cudaSurfaceType1DLayered> surfRef,
    int x, int layer,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surf1DLayeredread(Type data,
    surface<void, cudaSurfaceType1DLayered> surfRef,
    int x, int layer,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x和索引层读取绑定到一维分层表面参考surfRef的CUDA数组。
surf1DLayeredwrite():

template<class Type>
void surf1DLayeredwrite(Type data,
    surface<void, cudaSurfaceType1DLayered> surfRef,
    int x, int layer,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到坐标x和索引层的二维分层表面参考surfRef的CUDA数组。
surf2DLayeredread():

template<class Type>
Type surf2DLayeredread(
    surface<void, cudaSurfaceType2DLayered> surfRef,
    int x, int y, int layer,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surf2DLayeredread(Type data,
    surface<void, cudaSurfaceType2DLayered> surfRef,
    int x, int y, int layer,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x和y以及索引层读取绑定到二维分层表面参考surfRef的CUDA数组。
surf2DLayeredwrite():

template<class Type>
void surf2DLayeredwrite(Type data,
    surface<void, cudaSurfaceType2DLayered> surfRef,
    int x, int y, int layer,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到一维分层表面参考surfRef的坐标x和y处的CUDA数组,以及索引层。
surfCubemapread():

template<class Type>
Type surfCubemapread(
    surface<void, cudaSurfaceTypeCubemap> surfRef,
    int x, int y, int face,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surfCubemapread(Type data,
    surface<void, cudaSurfaceTypeCubemap> surfRef,
    int x, int y, int face,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x和y读取绑定到立方体贴图表面参考surfRef的CUDA数组,并使用面对索引面。
surfCubemapwrite():

template<class Type>
void surfCubemapwrite(Type data,
    surface<void, cudaSurfaceTypeCubemap> surfRef,
    int x, int y, int face,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到坐标x和y处的立方体贴图参考surfRef的CUDA数组,并且面对索引面。
surfCubemapLayeredread():

template<class Type>
Type surfCubemapLayeredread(
    surface<void, cudaSurfaceTypeCubemapLayered> surfRef,
    int x, int y, int layerFace,
    boundaryMode = cudaBoundaryModeTrap);
template<class Type>
void surfCubemapLayeredread(Type data,
    surface<void, cudaSurfaceTypeCubemapLayered> surfRef,
    int x, int y, int layerFace,
    boundaryMode = cudaBoundaryModeTrap);

使用坐标x和y以及索引layerFace读取绑定到立方体贴图分层曲面参考surfRef的CUDA数组。
surfCubemapLayeredwrite():

template<class Type>
void surfCubemapLayeredwrite(Type data,
    surface<void, cudaSurfaceTypeCubemapLayered> surfRef,
    int x, int y, int layerFace,
    boundaryMode = cudaBoundaryModeTrap);

将值数据写入绑定到cubemap分层参考surfRef的坐标x和y处的CUDA数组,以及index layerFace。
timg

目录
相关文章
|
并行计算 索引
|
并行计算 程序员
|
并行计算 API
|
并行计算 API 异构计算
|
并行计算 安全 程序员
|
并行计算 API
|
并行计算 iOS开发 MacOS
|
缓存 并行计算 异构计算