At on_create_swapchain i'm changing "resource_desc.texture.samples = 1" to disable multisampling.
It works as expected but when addon is injected into game that already has running ReShade the callback is not called at the start (when addon is loaded). Only changing settings that affects swapchain will call it and disable multisampling.
Is there a way to disable multisampling in API after addon was injected? Or i had to recreate swapchain to do that?
This would require recreation of the swapchain (since back buffer resources etc. need to be recreated with the new sample count). Unfortunately recreating the swapchain the game is using cannot easily be done at any time, since the game would need to know to get the new back buffer resources, recreate render targets for them etc.
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.