IReShade interface
Bridge to ReShade (via the Stellar add-on) — effects on/off, technique toggles, preset switching and shader/texture search paths.
Main thread only. Every setter is ASYNCHRONOUS: it queues a request that ReShade applies at its next frame, and Techniques / CurrentPreset show the result after the following Changed. Without ReShade and the add-on, State is NotInstalled and every member is a no-op.
public interface IReShadeMembers
Section titled “Members”| name | description |
|---|---|
| CurrentPreset { get; } | Full path of the current preset file, or null. |
| Enabled { get; set; } | ReShade’s effects on/off (saved). Setting it is asynchronous (applied at ReShade’s next frame). |
| State { get; } | Whether ReShade is installed, (re)loading its effects, or ready. Only Ready means Techniques is current and photos carry ReShade’s effects. |
| Techniques { get; } | Techniques of the loaded effects (empty while unavailable or loading). UsesDepth and SizeLocked are only known for effects under the folders given to SetSearchPaths; others are reported as true. |
| event Changed | Raised on the main thread when State, Enabled, the technique list or the preset changes. It can fire while a IScreenCapture.CaptureAsync is in progress (the capture re-reads ReShade just before choosing a photo’s techniques). |
| SetPreset(…) | Switches ReShade to the preset file at path (created by ReShade if missing). Held until ReShade lists techniques (it ignores a preset switch before that); a later call replaces a held one. Asynchronous: CurrentPreset shows it after the next Changed. |
| SetSearchPaths(…) | REPLACES ReShade’s effect and texture search paths with these absolute folders (“**” recursion is added). ReShade persists them to its ReShade.ini and does a FULL effect reload (every effect recompiles; State goes Loading meanwhile). Calling it again with the same folders sends nothing. |
| SetTechnique(…) | Turns one technique on/off (saved to the current preset). A technique is identified by its effect file (EffectFile, e.g. “Clarity.fx”) and its name, because names repeat across effects. Asynchronous: Techniques shows it after the next Changed. |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services