Pass textures to a sampler2D array in GLSL shader?

Viewed 19

I want to pass multiple textures to the shader as an array, like this:

layout(binding = 0) uniform sampler2D uTextures[8];

And how should I assign values ​​to the array above using glsl's binding points layout?

0 Answers
Related