Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X, 2020.1.X
Votes
0
Found in
2018.4
2019.3.15f1
2020.2
Issue ID
1269926
Regression
No
[Bug] Inout parameter is only valid in shader files, but not valid in cginc files
How to reproduce:
1. Open user-submitted project (InoutInCginc.zip)
2. Inspect the shader files located in Assets/Lib folder(testDepthBufferFetch and testDepthBufferFetch1)
3. Select each Shader, click the arrow next to 'Compile and show code' and select 'GLES3x'
4. Click 'Compile and show code'
5. Compare both compiled files
Expected result: Compiled-Unlit-testDepthBufferFetch.shader contains "#extension GL_EXT_shader_framebuffer_fetch : enable"
Actual result: Compiled-Unlit-testDepthBufferFetch.shader does not contain "#extension GL_EXT_shader_framebuffer_fetch : enable"
Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.3f1, 2020.2.0a20
Notes:
The only difference between testDepthBufferFetch and testDepthBufferFetch1 is that a portion of the code for testDepthBufferFetch is in a cginc file
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
- FocusNextInDirection not focusing when used on multiline TextFields
- Single click calls UI Element renaming with a delay when clicked on the UI Element name
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
Resolution Note (fix version 2020.2):
Fixed in 2021.1.0a2
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0b14
Resolution Note (fix version 2020.1):
Fixed in 2020.1.14f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.16f1