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
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
- Animator window Eye button on click visual does not cover the whole area of the button when clicked
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.