Welcome, Guest.
Username: Password: Remember me

TOPIC: error C3012 ReShade 3.0.8

error C3012 ReShade 3.0.8 1 year 4 months 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: 1 year 4 months ago by Iddqd. Reason: Added some information
The administrator has disabled public write access.

error C3012 ReShade 3.0.8 1 year 4 months ago #2

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

error C3012 ReShade 3.0.8 1 year 4 months 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 1 year 4 months 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 1 year 4 months 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 1 year 4 months 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.

error C3012 ReShade 3.0.8 4 weeks 10 hours ago #7

crosire wrote:
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.

I reopen this thread again since it would be nice to make it work with Diablo 2, I succesfully made it work with Diablo 2 with Glide wrapper - making it compatible with opengl.

Everything works as expected except some error C3012 issues. Are you gonna fix the issue? ( it's been more than a year now... ) I would really appreciate it!
In the meanwhile I delete some shaders not needed...
Last Edit: 4 weeks 10 hours ago by klotim.
The administrator has disabled public write access.

error C3012 ReShade 3.0.8 4 weeks 9 hours ago #8

This is fixed in the upcoming ReShade 4.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: klotim

error C3012 ReShade 3.0.8 4 weeks 9 hours ago #9

crosire wrote:
This is fixed in the upcoming ReShade 4.
Amazing, thank you!
The administrator has disabled public write access.