vkdoom_m/wadsrc/static/shaders/scene/binding_textures.glsl

26 lines
658 B
GLSL

layout(set = 2, binding = 0) uniform sampler2D textures[];
const int tex = 0;
const int texture2 = 1;
const int texture3 = 2;
const int texture4 = 3;
const int texture5 = 4;
const int texture6 = 5;
const int texture7 = 6;
const int texture8 = 7;
const int texture9 = 8;
const int texture10 = 9;
const int texture11 = 10;
const int texture12 = 11;
const int texture13 = 12;
const int texture14 = 13;
const int texture15 = 14;
const int texture16 = 15;
const int texture17 = 16;
const int texture18 = 17;
const int texture19 = 18;
const int texture20 = 19;
/* For user shaders so they can check if the engine uses bindless textures */
#define USES_BINDLESS