OpenGL Sampler2D Textures array in GLSL for bindless use
I am having some trouble with this:
layout(std140) uniform TextureHandles { sampler2D Textures[NUMTEXTURES]; };
for bindless use. From my understanding is NUMTEXTURES only limited by memory in this case and not depending on GL_MAX_IMAGE_UNITS or GL_MAX_COMBINED_IMAGE_UNITS. Also, this seems to work on most platforms and cards I have tried so far without problems up to 4096 with the exception of the Linux AMD driver:
GL_VENDOR : AMD GL_RENDERER : AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.40.0, 5.10.0-9-amd64, LLVM 11.0.1) GL_VERSION : 4.6 (Core Profile) Mesa 20.3.5 GL_SHADING_LANGUAGE_VERSION : 4.60
it complains: "Too many fragment shader texture samplers" and fails linking.
The same card does work with it in Windows with the AMD driver.
Is this a driver problem or is there something wrong in my approach?
I am using Debian BullsEye default version 20.3.5, but got to this issue from someone else using 21.2.2