不能在条件分支里使用texld/texldb/texldp/dsx/dsy指令

来源:互联网 发布:网络攻击分类排名 编辑:程序博客网 时间:2024/06/05 11:27

 

Shader error in 'Example/Diffuse Texture': D3D shader assembly failed with: (19): error X6077: texld/texldb/texldp/dsx/dsy instructions with r# as source cannot be used inside dynamic conditional 'if' blocks, dynamic conditional subroutine calls, or loop/rep with break*.

Shader Assembly: ps_3_0
; 12 ALU, 2 TEX, 1 FLOW
dcl_2d s0
[...]

 

http://forum.unity3d.com/threads/63120-ShaderModel-3.0-amp-Texture-accesss-inside-dynamic-conditional-if-blocks