Welcome, Guest.
Username: Password: Remember me

TOPIC: error C3012 ReShade 3.0.8

error C3012 ReShade 3.0.8 10 months 4 weeks ago #1

Hello! In opengl my shaders give
2017-07-23T20:49:33:897 [09492] | INFO | Compiling 'F:\ReShade\Last\reshade-shaders2\Shaders\GradientFX.fx' ...
2017-07-23T20:49:33:926 [09492] | ERROR | Failed to compile 'F:\ReShade\Last\reshade-shaders2\Shaders\GradientFX.fx':
0(26) : error C3012: invalid value '192' for layout qualifier 'binding'
F:\ReShade\Last\reshade-shaders2\Shaders\ReShade.fxh(57, 6): error: internal shader compilation failed
0(25) : error C3012: invalid value '192' for layout qualifier 'binding'
F:\ReShade\Last\reshade-shaders2\Shaders\GradientFX.fx(248, 8): error: internal shader compilation failed
Vertex info
0(26) : error C3012: invalid value '192' for layout qualifier 'binding'
(0) : error C2003: incompatible options for link

Fragment info
0(25) : error C3012: invalid value '192' for layout qualifier 'binding'
(0) : error C2003: incompatible options for link
F:\ReShade\Last\reshade-shaders2\Shaders\GradientFX.fx(414, 1): error: program linking failed

In 3.0.7 all works good
Last Edit: 10 months 4 weeks ago by Iddqd. Reason: Added some information
The administrator has disabled public write access.

error C3012 ReShade 3.0.8 10 months 4 weeks ago #2

Post your shader code please.
Cheers, crosire =)
The administrator has disabled public write access.

error C3012 ReShade 3.0.8 10 months 3 weeks ago #3

The problem is not in my shader, problem in other shaders.Can you give your email, i cant give link to shaders for public because it's have some proprietary shaders.
The administrator has disabled public write access.

error C3012 ReShade 3.0.8 10 months 3 weeks ago #4

There is a contact form on the Impressum page linked at the bottom.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: Iddqd

error C3012 ReShade 3.0.8 10 months 3 weeks ago #5

Alright, problem is that the way texture bindings are currently handled in the OpenGL renderer, there is a limit to the number of shaders that can be loaded simultanously (it increments the binding index globally for every texture in every shader it comes across, which quickly exhausts the maximum number of textures OpenGL allows to bind to the pipeline at the same time).
The error should go away if you delete some shader files you don't need. This should be solved properly, but for now that's the simplest workaround.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: Iddqd

error C3012 ReShade 3.0.8 10 months 3 weeks ago #6

Thanks, maybe should add info for shader number limits or display how many you can more add to render ( something like that int shaderCount = maxShaderCount - numberCurrentShaders), because DX also have limit to max shaders
The administrator has disabled public write access.