Improve XML docs

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-09 10:11:26 +01:00
1 親 7788efa2d2
コミット d15967b92a
3ファイル変更
+26 -1

検索条件に一致するファイルはありません

+2
ファイルの表示
@@ -175,6 +175,7 @@ partial class SwapChainManager<TOwner>
/// <summary>
/// The core render loop.
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
private void RenderLoop()
{
Stopwatch renderStopwatch = this.renderStopwatch ??= new();
@@ -218,6 +219,7 @@ partial class SwapChainManager<TOwner>
/// <summary>
/// The core render loop with dynamic resolution.
/// </summary>
[MethodImpl(MethodImplOptions.NoInlining)]
private void RenderLoopWithDynamicResolution()
{
Stopwatch renderStopwatch = this.renderStopwatch ??= new();
+19
ファイルの表示
@@ -16,5 +16,24 @@ public interface IFrameRequestQueue
/// </summary>
/// <param name="parameter">The input parameter for the frame to render.</param>
/// <param name="token">A token to cancel waiting for a new frame.</param>
/// <remarks>
/// <para>
/// This method should block synchronously until a new frame is available, returning its
/// parameters if any. The <paramref name="token"/> parameter should be used to cancel a
/// blocking operation and return immediately, as it's cancelled when rendering is stopped.
/// </para>
/// <para>
/// For instance, if the <see cref="IFrameRequestQueue"/> implementation is internally using a
/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> queue and calling
/// <see cref="System.Collections.Concurrent.BlockingCollection{T}.Take()"/> to block and wait for
/// a new frame parameter, the <see cref="System.Collections.Concurrent.BlockingCollection{T}.Take(CancellationToken)"/>
/// overload should be used instead, to enable canceling the operation early if needed.
/// </para>
/// <para>
/// If the runner throws an <see cref="System.OperationCanceledException"/>, this will just be recognized by the
/// <see cref="ComputeShaderPanel"/> in use and result in rendering simply being stopped. If any other exceptions are thrown
/// instead, they will be interpreted as a failure, and <see cref="ComputeShaderPanel.RenderingFailed"/> will be raised.
/// </para>
/// </remarks>
void Dequeue(out object? parameter, CancellationToken token);
}
+5 -1
ファイルの表示
@@ -7,7 +7,7 @@ namespace ComputeSharp.WinUI;
#endif
/// <summary>
/// An interface for a shader runner to be used with <see cref="ComputeShaderPanel"/>.
/// An interface for a shader runner to be used with <see cref="ComputeShaderPanel"/> or <see cref="AnimatedComputeShaderPanel"/>.
/// </summary>
public interface IShaderRunner
{
@@ -18,5 +18,9 @@ public interface IShaderRunner
/// <param name="timespan">The timespan for the current frame.</param>
/// <param name="parameter">The input parameter for the frame being rendered.</param>
/// <returns>Whether or not to present the current frame. If <see langword="false"/>, the frame will be skipped.</returns>
/// <remarks>
/// Any exceptions thrown by the runner will result in <see cref="ComputeShaderPanel.RenderingFailed"/>
/// or <see cref="AnimatedComputeShaderPanel.RenderingFailed"/> to be raised.
/// </remarks>
bool TryExecute(IReadWriteTexture2D<Float4> texture, TimeSpan timespan, object? parameter);
}