【发布时间】:2012-06-16 06:38:04
【问题描述】:
我在 XNA4 中有一个效果文件,正在编译为 Shader Model 3。
这一行编译得很好(在 2 种颜色之间插值):
return lerp(float4(1,0,0,1),float4(0,0,1,1),pf.x);
将第一种颜色的绿色分量从 0 更改为 0.5:
return lerp(float4(1,0.5,0,1),float4(0,0,1,1),pf.x);
导致编译失败:
error X6045: When constant registers are read multiple times in a single
instruction, the _abs modifier must either be present on all of the
constants, or none of them.
搜索错误代码不会返回任何内容(编辑:除了这个问题)
【问题讨论】:
-
哦,它现在确实返回了这个问题;-)
-
那么你的意思是,在网上发布“谷歌一无所获”只是暂时的吗?
-
如果您在 SO 上发帖,Google 会在几秒钟后将问题编入索引。我指出这只是一种好奇心,没有理由编辑您的帖子。