diff --git a/samples/GpuInterop/VulkanDemo/D3DMemoryHelper.cs b/samples/GpuInterop/VulkanDemo/D3DMemoryHelper.cs index ac09c48ccd0..9795c57d5ac 100644 --- a/samples/GpuInterop/VulkanDemo/D3DMemoryHelper.cs +++ b/samples/GpuInterop/VulkanDemo/D3DMemoryHelper.cs @@ -17,7 +17,7 @@ public static D3DDevice CreateDeviceByLuid(Span luid) var longLuid = MemoryMarshal.Cast(luid)[0]; for (var c = 0; c < factory.GetAdapterCount1(); c++) { - using var adapter = factory.GetAdapter1(0); + using var adapter = factory.GetAdapter1(c); if (adapter.Description1.Luid != longLuid) continue;