Search Issue Tracker
Fixed in 2017.1.0f3
Won't Fix in 5.6.X, 2017.1.X
Votes
0
Found in
5.6.0f3
Issue ID
911551
Regression
Yes
Shader tex2D yields error when compiling for D3D9: "texld/texldb/texldp/dsx/dsy instructions with r# as source cannot be used"
To reproduce:
1. Open attached project;
2. Choose "TestShader" shader in the Assets folder;
3. In the Inspector, disable "Skip unused shader_features";
4. Compile Shader for D3D9.
Expected result: Editor compiles shader, no errors are thrown.
Actual result: Error is thrown: "Shader error in 'Test Shader': 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*. at line 50 (on d3d9)" when compiling shader for D3D9.
Reproduced on versions: 5.6.0a1, 5.6.1p1, 2017.1.0b5.
Not reproduced on version: 5.5.3p3.
Regression introduced in: 5.6.0a1.
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warnings when warming up shaders with GraphicsStateCollection
- Color and Location fields disappear when removing gradient marker in the HDR gradient Editor (linear) window
- Create Node window appears on the top left corner of the Editor when opening window with space keyboard shortcut after selecting a Context
- HasCharacters() returns false when checking Emojis using surrogate pairs, despite characters being present in the Font Asset
- An error is thrown when building AssetBundles with DisableWriteTypeTree and StripUnityVersion flags
osmoberlin
Nov 27, 2017 09:35
Still happens under 2017.2.0f3 (apparently inside these instructions: tex2D (_MainTex, IN.worldPos.xz/_Scale)) even if no 'if' blocks are used.