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
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are enabled
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