Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2017.4
2018.4
2019.2
2019.3
2020.1
2020.1.0a20
Issue ID
1214014
Regression
No
[MacOS] No error is thrown on Metal Graphics API when shader texture/sampler is mismatched
Reproduction steps:
1. Open attached project "shader_error"
2. In the Project window, select "UnrecognizedSamplerErrorNotReportedOnMetal"
3. In the Inspector, press "Compile and show code"
Expected result: Unrecognized sampler error is thrown
Actual result: No errors are thrown
Reproducible with: 2017.4.36f1, 2018.4.16f1, 2019.2.19f1, 2019.3.0f5, 2020.1.0a20
Note:
Reproducible with MacOS (Metal Graphics API)
Not reproducible with Windows (DirectX, Vulkan Graphics APIs)
Error that should appear:
Shader error in 'Unlit/UnrecognizedSamplerErrorNotReportedOnMetal': Fragment program 'frag': Unrecognized sampler 'sampler_unusedtex' - does not match any texture and is not a recognized inline name (should contain filter and wrap modes).
at line 12 (on d3d11)
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
- Resolution preferences changed in the player settings don't apply if no other settings change
- "Property (urp_ReflProbes_BoxMin) exceeds previous array size" warning spams console after switching platforms
- Have to change Input Mapping Path twice for change to take effect when Auto-Save is enabled
- No Duplicate option is available when right clicking States in the Animator Window even though it's available via Shortcut
- Copied and Pasted States appear in a set location instead of where the Users cursor is located at when using the Pasting Shortcut
Resolution Note (fix version 2021.1):
Fixed in Unity 2021.1.0a3 and above