From 7a9afa302eb716252c9623d937a43ab446aadc98 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 3 Sep 2019 11:01:16 +0200 Subject: [PATCH] Fixed WavefrontSize loading --- src/ComputeSharp.Graphics/GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs index eba25ff1..c4322efd 100644 --- a/src/ComputeSharp.Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs @@ -47,7 +47,7 @@ namespace ComputeSharp.Graphics { NativeDevice = device; Description = description; - WavefrontSize = 64; + WavefrontSize = device.Options1.WaveLaneCountMin; NativeComputeCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(CommandListType.Compute)); NativeCopyCommandQueue = NativeDevice.CreateCommandQueue(new CommandQueueDescription(CommandListType.Copy));