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
- "Light" Component's "Culling Mask" setting is hidden but still has an effect when using HDRP
- Selecting the Web platform can be done when using the HDRP project
- Textures swap when SpriteRenderers with shared materials and animators are toggled on and off
- "EndLayoutGroup: BeginLayoutGroup must be called first" is thrown when selecting the wrong executable for the browser and then the right one
- [iOS] [AudioSource] Errors/warning logged and "AudioSettings.OnAudioConfigurationChanged" event not called when disconnecting the Bluetooth heaphones from the device
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.