using System; #if WINDOWS_UWP namespace ComputeSharp.Uwp; #else namespace ComputeSharp.WinUI; #endif /// /// An interface for a shader runner to be used with or . /// public interface IShaderRunner { /// /// Tries to render a single frame to a texture, optionally skipping the frame if needed. /// /// The target texture to render the frame to. /// The timespan for the current frame. /// The input parameter for the frame being rendered. /// Whether or not to present the current frame. If , the frame will be skipped. /// /// Any exceptions thrown by the runner will result in /// or to be raised. /// bool TryExecute(IReadWriteTexture2D texture, TimeSpan timespan, object? parameter); }