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.
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
- Crash on ConvertBufferToEXRBuffer when Lighting Generation is cancelled
- [URP] TrailEffect in URP package samples does not draw Trail Effect
- "NullReferenceException" error is thrown when calling UIDocument.runtimePanel in OnEnable with ExecuteInEditMode
- Graphics.Blit() performs the operation only to the last display when a multi-display environment is used
- [Windows] Multiple Separation Lines are present in the Light Create Menu
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.