Added automatic threads number and group count optimization

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-12 15:54:25 +02:00
1 親 13a011f31a
コミット 3939c0eac1
2ファイル変更
+15 -23

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

+6
ファイルの表示
@@ -15,6 +15,7 @@ namespace ComputeSharp.Graphics
if (enableDebugLayer) DebugInterface.Get().EnableDebugLayer();
#endif
NativeDevice = new Device(null, FeatureLevel);
WavefrontSize = NativeDevice.D3D12Options1.WaveLaneCountMin;
NativeComputeCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(SharpDX.Direct3D12.CommandListType.Compute));
NativeCopyCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(SharpDX.Direct3D12.CommandListType.Copy));
@@ -40,6 +41,11 @@ namespace ComputeSharp.Graphics
CopyCommandList.Close();
}
/// <summary>
/// Gets the number of lanes in a SIMD wave on the current device (also known as "wavefront size" or "warp width")
/// </summary>
public int WavefrontSize { get; }
public CommandList CommandList { get; }
public CommandList CopyCommandList { get; }