mirror of https://github.com/bjornbytes/lovr.git
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:
parent
747c7fdddf
commit
6c252a47b8
|
@ -1,4 +1,5 @@
|
||||||
// Flags
|
// Flags
|
||||||
|
#ifndef GL_COMPUTE_SHADER
|
||||||
layout(constant_id = 1000) const float flag_pointSize = 1.f;
|
layout(constant_id = 1000) const float flag_pointSize = 1.f;
|
||||||
layout(constant_id = 1002) const bool flag_passColor = true;
|
layout(constant_id = 1002) const bool flag_passColor = true;
|
||||||
layout(constant_id = 1003) const bool flag_materialColor = 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 = 1014) const bool flag_ambientOcclusion = true;
|
||||||
layout(constant_id = 1015) const bool flag_clearcoatTexture = false;
|
layout(constant_id = 1015) const bool flag_clearcoatTexture = false;
|
||||||
layout(constant_id = 1016) const bool flag_tonemap = false;
|
layout(constant_id = 1016) const bool flag_tonemap = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Resources
|
// Resources
|
||||||
#ifndef GL_COMPUTE_SHADER
|
#ifndef GL_COMPUTE_SHADER
|
||||||
|
|
Loading…
Reference in New Issue