diff --git a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj index 873afc89..eb97cc79 100644 --- a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj +++ b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj @@ -8,8 +8,8 @@ - - + + diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs index 4275c34e..a4177ccc 100644 --- a/src/ComputeSharp.Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs @@ -2,9 +2,9 @@ using System.Threading; using ComputeSharp.Graphics.Commands; using Vortice.Direct3D12; -using Vortice.DirectX.Direct3D; using Vortice.DXGI; using CommandList = ComputeSharp.Graphics.Commands.CommandList; +using Direct3DFeatureLevel = Vortice.Direct3D.FeatureLevel; namespace ComputeSharp.Graphics { @@ -16,7 +16,7 @@ namespace ComputeSharp.Graphics /// /// Gets the value that needs to be supported by GPUs mapped to a instance /// - public const FeatureLevel FeatureLevel = Vortice.DirectX.Direct3D.FeatureLevel.Level_12_1; + public const Direct3DFeatureLevel FeatureLevel = Direct3DFeatureLevel.Level_12_1; /// /// The instance used to wait for completion when executing commands diff --git a/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs b/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs index 70537bb2..be1af1ef 100644 --- a/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs +++ b/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Diagnostics.Contracts; +using Vortice.Direct3D; using Vortice.Direct3D12; -using Vortice.DirectX.Direct3D; using Vortice.DXGI; namespace ComputeSharp.Graphics.Helpers @@ -23,7 +23,7 @@ namespace ComputeSharp.Graphics.Helpers { List<(ID3D12Device, AdapterDescription)> devices = new List<(ID3D12Device, AdapterDescription)>(); - foreach (IDXGIAdapter1 adapter in factory.EnumAdapters1()) + foreach (IDXGIAdapter1 adapter in factory.Adapters1) { if (adapter.Description.DedicatedVideoMemory == 0) continue; if (D3D12.D3D12CreateDevice(adapter, FeatureLevel.Level_12_0, out ID3D12Device device).Success) diff --git a/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj b/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj index 555630bc..a46b9c92 100644 --- a/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj +++ b/src/ComputeSharp.Shaders/ComputeSharp.Shaders.csproj @@ -7,11 +7,11 @@ - - + + - - + +