CUDA学习(三十八)

简介:

tex1D():

template<class T>
T tex1D(cudaTextureObject_t texObj, float x);

使用纹理坐标x从一维纹理对象texObj指定的CUDA数组中提取数据。
tex1DLod():

template<class T>
T tex1DLod(cudaTextureObject_t texObj, float x, float level);

从一维纹理对象texObj指定的CUDA数组中使用纹理坐标x在详细程度级别进行拾取。
tex1DGrad()

template<class T>
T tex1DGrad(cudaTextureObject_t texObj, float x, float dx, float dy);

使用纹理坐标x从一维纹理对象texObj指定的CUDA数组中提取数据。 详细程度来源于X梯度dx和Y梯度 dy。
tex2D()

template<class T>
T tex2D(cudaTextureObject_t texObj, float x, float y);

使用纹理坐标(x,y)从CUDA数组或由二维纹理对象texObj指定的线性内存区域中提取数据,
tex2DLod()

template<class T>
tex2DLod(cudaTextureObject_t texObj, float x, float y, float level);

从CUDA数组或由二维纹理对象texObj指定的线性内存区域中使用纹理坐标(x,y)在详细级别
tex2DGrad()

template<class T>
T tex2DGrad(cudaTextureObject_t texObj, float x, float y,
    float2 dx, float2 dy);

使用纹理坐标(x,y)从二维纹理对象texObj指定的CUDA数组中提取。 详细程度来源于dx和dy梯度。
tex3D():

template<class T>
T tex3D(cudaTextureObject_t texObj, float x, float y, float z);

使用纹理坐标(x,y,z)从三维纹理对象texObj指定的CUDA数组中取出,
tex3DLod():

template<class T>
T tex3DLod(cudaTextureObject_t texObj, float x, float y, float z, float level);

从CUDA数组或由三维纹理对象texObj指定的线性内存区域使用纹理坐标(x,y,z)在详细级别
tex3DGrad():

template<class T>
T tex3DGrad(cudaTextureObject_t texObj, float x, float y, float z,
    float4 dx, float4 dy);

从由X和Y梯度dx和dy导出的详细程度的纹理坐标(x,y,z)从三维纹理对象texObj指定的CUDA数组中取回。
tex1DLayered():

template<class T>
T tex1DLayered(cudaTextureObject_t texObj, float x, int layer);

使用纹理坐标x和索引图层从一维纹理对象texObj指定的CUDA数组中取回,如分层纹理中所述
tex1DLayeredLod():

template<class T>
T tex1DLayeredLod(cudaTextureObject_t texObj, float x, int layer, float level);

使用纹理坐标x和详细程度级别从层级图层中的一维分层纹理指定的CUDA阵列中提取
tex1DLayeredGrad():

template<class T>
T tex1DLayeredGrad(cudaTextureObject_t texObj, float x, int layer,
    float dx, float dy);

从使用纹理坐标x和由dx和dy梯度导出的详细程度的层级图层中的一维分层纹理指定的CUDA数组中提取。
tex2DLayered():

template<class T>
T tex2DLayered(cudaTextureObject_t texObj,
    float x, float y, int layer);

使用纹理坐标(x,y)和索引图层从二维纹理对象texObj指定的CUDA数组中取回,如分层纹理中所述
tex2DLayeredLod():

template<class T>
T tex2DLayeredLod(cudaTextureObject_t texObj, float x, float y, int layer,
    float level);

使用纹理坐标(x,y)从二维分层纹理指定的CUDA数组中取出。
tex2DLayeredGrad():

template<class T>
T tex2DLayeredGrad(cudaTextureObject_t texObj, float x, float y, int layer,
    float2 dx, float2 dy);

从使用纹理坐标(x,y)和从dx和dy X和Y梯度导出的详细程度的层级图层中的二维分层纹理指定的CUDA数组中获取。
texCubemap():

template<class T>
T texCubemap(cudaTextureObject_t texObj, float x, float y, float z);

如Cubemap纹理中所述,使用纹理坐标(x,y,z)提取由三维纹理对象texObj指定的CUDA数组。
texCubemapLod():

template<class T>
T texCubemapLod(cudaTextureObject_t texObj, float x, float, y, float z,
float level);

如Cubemap Textures中所述,使用纹理坐标(x,y,z)从三维纹理对象texObj指定的CUDA数组中提取数据。 所使用的细节级别由级别给出。
texCubemapLayered():

template<class T>
T texCubemapLayered(cudaTextureObject_t texObj,
    float x, float y, float z, int layer);

使用纹理坐标(x,y,z)和索引图层从立方图贴图纹理对象texObj指定的CUDA数组中提取,如Cubemap Layered Textures。
texCubemapLayeredLod():

template<class T>
T texCubemapLayeredLod(cudaTextureObject_t texObj, float x, float y, float z,
    int layer, float level);

如Cubemap Layered Textures中所述,使用纹理坐标(x,y,z)和索引图层从立方图贴图纹理对象texObj指定的CUDA阵列中以细节级别级别进行拾取。
tex2Dgather():

template<class T>
T tex2Dgather(cudaTextureObject_t texObj,
    float x, float y, int comp = 0);

timg

目录
相关文章
|
存储 并行计算 C语言
|
并行计算 C语言 编译器
|
移动开发 并行计算 编译器
|
并行计算 API 编译器
CUDA学习(六十五)
很早之前就发现云栖社区的编辑器有一个Bug,往草稿箱存博客,当草稿箱博客数超过十篇时,无法再选择十篇前的博客进行编辑
2366 0
|
并行计算 API
|
存储 并行计算 API
|
并行计算 索引 API
|
并行计算 API
|
并行计算 API
|
并行计算 API 索引