Welcome, Guest.
Username: Password: Remember me

TOPIC: Error after loading 50+ shaders

Error after loading 50+ shaders 8 months 1 week ago #1

Henlo. After loading more than fifty shaders with ReShade 3.1.2 these errors appear for each additional one, even with all of them deactivated:
shader.fx(xxx, x): error: internal shader compilation failed

Vertex shader failed to compile with the following errors:
ERROR: 0:xx: error(#385) Binding point for: uniform sampler must be equal or greater than 0 and less than: GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
ERROR: error(#273) x compilation errors.  No code generated

[...]

Vertex and Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed. 
Vertex shader failed to compile with the following errors:
ERROR: 0:xx: error(#385) Binding point for: uniform sampler must be equal or greater than 0 and less than: GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
ERROR: error(#273) x compilation errors.  No code generated
Below fifty, no problems arise. Already tried different combinations to no avail. Any ideas about what could be happening?
Thanks, Hekutoru
The administrator has disabled public write access.

Error after loading 50+ shaders 8 months 1 week ago #2

Yes. ReShade shares texture samplers between effects. DirectX/OpenGL have a limit to how many samplers can be bound at the same time, which using an excessive amount of shaders will quickly reach because of that. Only solution is to use less shaders.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: HekutoruMAC

Error after loading 50+ shaders 8 months 1 week ago #3

Seems ridiculous to have that many shaders running. Why not just tweak the color, contrast, levels, etc. the way you like it and create a LUT? I rarely use more than 5 shaders any more since learning how create LUTs.
The administrator has disabled public write access.
The following user(s) said Thank You: HekutoruMAC

Error after loading 50+ shaders 8 months 1 week ago #4

Seems ridiculous to have that many shaders running.
I downloaded all the shaders, that's what i meant by loading so many, but I'm activating only some of them.
Guess it'll be better to have local sets of shaders per game instead of a general collection like I used to.
Thanks for the advice!
The administrator has disabled public write access.

Error after loading 50+ shaders 8 months 1 week ago #5

Yeah, I never download all the shaders. A lot of them are redundant and similar results can be achieved using different shaders. Others are for doing specialized things, like faking a CRT screen effect, which I would never need. There are less than 10 "essential" shaders that I ever use but I can usually pare that down to 5 by the time I get the look I want.
The administrator has disabled public write access.
The following user(s) said Thank You: HekutoruMAC