首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >texelFetchOffset的CG等效项

texelFetchOffset的CG等效项
EN

Stack Overflow用户
提问于 2012-10-19 02:24:04
回答 1查看 893关注 0票数 4

GLSL函数texelFetchOffsetCG等价物是什么

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-09 20:35:39

根据nVidia documentation的说法

tex2Dfetch -在给定采样器中执行未过滤的纹理查找。

使用以下重载之一:

代码语言:javascript
复制
float4 tex2Dfetch(sampler2D samp, int4 s)
float4 tex2Dfetch(sampler2D samp, int4 s, int texelOff)

int4 tex2Dfetch(isampler2D samp, int4 s)
int4 tex2Dfetch(isampler2D samp, int4 s, int texelOff)

unsigned int4 tex2Dfetch(usampler2D samp, int4 s)
unsigned int4 tex2Dfetch(usampler2D samp, int4 s, int texelOff)

参数

代码语言:javascript
复制
samp
    Sampler to lookup. 
s
    Coordinates to perform the lookup. 
    The level of detail is stored in the last component of the coordinate vector. 
texelOff
    Offset to be added to obtain the final texel. 
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12961232

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档