Fixed DEVICE_REMOVED during shader dispatch

このコミットが含まれているのは:
Sergio Pedri committed 2020-08-27 15:32:38 +02:00
1 親 f759e8b495
コミット d11691e307
4ファイル変更
+14 -3

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

+9 -3
ファイルの表示
@@ -88,7 +88,7 @@ namespace ComputeSharp.Graphics.Commands
}
/// <summary>
/// Executes the pending command list using the specified thread group values
/// Dispatches the pending shader using the specified thread group values
/// </summary>
/// <param name="threadGroupCountX">The number of thread groups to schedule for the X axis</param>
/// <param name="threadGroupCountY">The number of thread groups to schedule for the Y axis</param>
@@ -98,13 +98,19 @@ namespace ComputeSharp.Graphics.Commands
NativeCommandList.Dispatch(threadGroupCountX, threadGroupCountY, threadGroupCountZ);
}
/// <inheritdoc/>
public override void Dispose()
/// <summary>
/// Executes the commands in the current commands list, and waits for completion
/// </summary>
public void ExecuteAndWaitForCompletion()
{
NativeCommandList.Close();
GraphicsDevice.ExecuteCommandList(this);
}
/// <inheritdoc/>
public override void Dispose()
{
switch (CommandListType)
{
case CommandListType.Direct: