Updated NuGet packages

このコミットが含まれているのは:
Sergio Pedri committed 2020-08-26 12:56:50 +02:00
1 親 ef8d18ece6
コミット fa34296360
8ファイル変更
+21 -16

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

+1 -1
ファイルの表示
@@ -21,7 +21,7 @@ namespace ComputeSharp.Graphics.Commands
CommandListType.Direct => GraphicsDevice.DirectAllocatorPool.GetCommandAllocator(),
_ => throw new NotSupportedException($"Unsupported command list type with value {CommandListType}")
};
NativeCommandList = GraphicsDevice.NativeDevice.CreateCommandList(CommandListType, CommandAllocator, null);
NativeCommandList = GraphicsDevice.NativeDevice.CreateCommandList(0, CommandListType, CommandAllocator, null);
// Set the heap descriptor if the command list is not for copy operations
if (CommandListType != CommandListType.Copy)
+1 -1
ファイルの表示
@@ -18,7 +18,7 @@ namespace ComputeSharp.Graphics.Commands
RootSignature = rootSignature;
ComputeShader = computeShader;
NativePipelineState = device.NativeDevice.CreateComputePipelineState(this);
NativePipelineState = device.NativeDevice.CreateComputePipelineState<ID3D12PipelineState>(this);
}
/// <summary>
+1 -1
ファイルの表示
@@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.7.1" />
<PackageReference Include="Vortice.Direct3D12" Version="1.6.0" />
<PackageReference Include="Vortice.Direct3D12" Version="1.7.37" />
</ItemGroup>
<ItemGroup>
+1 -1
ファイルの表示
@@ -143,7 +143,7 @@ namespace ComputeSharp.Graphics
/// <returns>A new <see cref="ID3D12RootSignature"/> instance to use in a compute shader</returns>
internal ID3D12RootSignature CreateRootSignature(VersionedRootSignatureDescription rootSignatureDescription)
{
return NativeDevice.CreateRootSignature(rootSignatureDescription);
return NativeDevice.CreateRootSignature(0, rootSignatureDescription);
}
/// <summary>
+6 -1
ファイルの表示
@@ -23,11 +23,16 @@ namespace ComputeSharp.Graphics.Helpers
{
List<(ID3D12Device, AdapterDescription)> devices = new List<(ID3D12Device, AdapterDescription)>();
foreach (IDXGIAdapter1 adapter in factory.Adapters1)
int i = 0;
while (factory.EnumAdapters1(i++, out IDXGIAdapter1? adapter).Success && !(adapter is null))
{
if (adapter.Description.DedicatedVideoMemory == 0) continue;
if (D3D12.D3D12CreateDevice(adapter, FeatureLevel.Level_12_0, out ID3D12Device device).Success)
{
devices.Add((device, adapter.Description));
}
}
return devices;