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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
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.