Triggering Shader Reload

  • Dawntic
  • Topic Author
More
8 months 1 week 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
8 months 1 week 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.