Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.1.0f2
Issue ID
1051355
Regression
No
Shader that uses SV_RenderTargetArrayIndex and geomery shader is not compiled/translated into Vulkan properly
How to reproduce:
1. Open the user-submitted Project OR QA attached project in comment
2. Go to Player Settings and set Graphics API to Vulkan
3. Right click on Draw.shader and click Reimport
4. Observe the console for shader error
Shader error in 'Custom/Draw': Program 'geom', error X8000: D3D11 Internal Compiler Error: Invalid Bytecode: Named register components cannot appear to the left (xyzw order) of components that are not named in a given register. TessFactors are an exception. Affected register is output 1 in stream m0. (on vulkan)
Compiling Vertex program with INSTANCING_ON
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
Expected result: The game view renders rainbow colored quads
Actual result: The game view is black
Reproduced in: 2019.2.0a4, 2019.1.0b2, 2018.3.0a3, 2018.2.0b9, 2018.1.6f1
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2019.1.X):
OpenGLCore works fine now but Vulkan still has the shader error. Unfortunately due to limitation of our current shader compilation pipeline, we are not able to resolve the error on Vulkan.