gl: Alias UBO/SSBO slots to avoid exceeding the available number of binding slots.

- The sets are different anyway and should not overwrite each other in a proper driver.
This commit is contained in:
kd-11 2022-08-03 19:01:58 +03:00 committed by kd-11
parent 57dd611111
commit 8181498d86

View File

@ -9,7 +9,7 @@
#define GL_TEMP_IMAGE_SLOT 31
#define UBO_SLOT(x) (x)
#define SSBO_SLOT(x) (x + 8)
#define SSBO_SLOT(x) (x)
#define GL_VERTEX_PARAMS_BIND_SLOT UBO_SLOT(0)
#define GL_VERTEX_LAYOUT_BIND_SLOT UBO_SLOT(1)