error C3012 ReShade 3.0.8
- Iddqd
- Topic Author
Less
More
6 years 8 months ago - 6 years 8 months ago #1
by Iddqd
error C3012 ReShade 3.0.8 was created by Iddqd
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, : 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
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, : 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: 6 years 8 months ago by Iddqd. Reason: Added some information
Please Log in or Create an account to join the conversation.
- crosire
Less
More
- Iddqd
- Topic Author
Less
More
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.
Please Log in or Create an account to join the conversation.
- crosire
Less
More
There is a contact form on the Impressum page linked at the bottom.
The following user(s) said Thank You: Iddqd
Please Log in or Create an account to join the conversation.
- crosire
Less
More
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.
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.
The following user(s) said Thank You: Iddqd
Please Log in or Create an account to join the conversation.
- Iddqd
- Topic Author
Less
More
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
Please Log in or Create an account to join the conversation.
- klotim
Less
More
5 years 4 months ago - 5 years 4 months ago #7
by klotim
Replied by klotim on topic error C3012 ReShade 3.0.8
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: 5 years 4 months ago by klotim.
Please Log in or Create an account to join the conversation.
- crosire
Less
More
This is fixed in the upcoming ReShade 4.
The following user(s) said Thank You: klotim
Please Log in or Create an account to join the conversation.
- klotim
Less
More
Amazing, thank you!crosire wrote: This is fixed in the upcoming ReShade 4.
Please Log in or Create an account to join the conversation.