Don't declare builtin flags in compute shaders;

They aren't used, and increase file size and clutter up disassembly.
This commit is contained in:
bjorn 2023-04-05 21:52:00 -07:00
parent 747c7fdddf
commit 6c252a47b8
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
// Flags
#ifndef GL_COMPUTE_SHADER
layout(constant_id = 1000) const float flag_pointSize = 1.f;
layout(constant_id = 1002) const bool flag_passColor = true;
layout(constant_id = 1003) const bool flag_materialColor = true;
@ -15,6 +16,7 @@ layout(constant_id = 1013) const bool flag_roughnessTexture = true;
layout(constant_id = 1014) const bool flag_ambientOcclusion = true;
layout(constant_id = 1015) const bool flag_clearcoatTexture = false;
layout(constant_id = 1016) const bool flag_tonemap = false;
#endif
// Resources
#ifndef GL_COMPUTE_SHADER