mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Ensure that all spec constants are given a value in the mobile post process shader so that re-spirv can pick up on them and optimize them out of the final shader
This is needed to workaround a bug on Adreno devices when using input attachments and spec constants in the same shader
This commit is contained in:
parent
25203e24c4
commit
4cd65e081d
3 changed files with 8 additions and 9 deletions
|
|
@ -100,6 +100,7 @@ private:
|
|||
TONEMAP_MOBILE_FLAG_GLOW_MODE_SOFTLIGHT = (1 << 15),
|
||||
TONEMAP_MOBILE_FLAG_GLOW_MODE_REPLACE = (1 << 16),
|
||||
TONEMAP_MOBILE_FLAG_GLOW_MODE_MIX = (1 << 17),
|
||||
TONEMAP_MOBILE_ADRENO_BUG = (1 << 18), // Needs to be last so we force the pipeline cache to specify specializations for all variants.
|
||||
};
|
||||
|
||||
struct TonemapPushConstant {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue