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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.