Triggering Shader Reload

  • Dawntic
  • Topic Author
More
1 month 55 minutes ago #1 by Dawntic Triggering Shader Reload was created by Dawntic
I want to be able to trigger a shader reload based off in game conditions but I’m having a hard time getting ReShade to detect any synthetic key input, so I’m wondering how is ReShade detecting user input and is there any API access to trigger a reload.

Please Log in or Create an account to join the conversation.

  • crosire
More
4 weeks 2 days ago #2 by crosire Replied by crosire on topic Triggering Shader Reload
This will trigger a reload of all effects:
reshade::api::effect_runtime *runtime = ...;
runtime->reload_effect_next_frame(nullptr);
To only reload a specific one, can instead pass a string with the effect file name ( crosire.github.io/reshade-docs/structres...ae751025608c3d25ed36 ).

Please Log in or Create an account to join the conversation.

We use cookies
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.