Skipped Allocator creation for UMA devices

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-05 17:40:11 +01:00
1 親 57c4d816c1
コミット c6991cdf0e
1ファイル変更
+5 -2
+5 -2
ファイルの表示
@@ -115,9 +115,12 @@ namespace ComputeSharp
allocatorDesc.pDevice = d3D12Device;
allocatorDesc.pAdapter = dxgiAdapter;
fixed (Allocator** allocator = this.allocator)
if (!IsCacheCoherentUMA)
{
D3D12MemoryAllocator.CreateAllocator(&allocatorDesc, allocator).Assert();
fixed (Allocator** allocator = this.allocator)
{
D3D12MemoryAllocator.CreateAllocator(&allocatorDesc, allocator).Assert();
}
}
}