Improve XML docs

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

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

+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);
}