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.