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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
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.