Moved Gpu class to the main ComputeSharp project

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-12 14:22:29 +02:00
1 親 4db7880ab7
コミット 9b69b65ad7
3ファイル変更
+14 -5

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

+6 -1
ファイルの表示
@@ -2,7 +2,8 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>8.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
@@ -12,4 +13,8 @@
<PackageReference Include="System.Runtime.InteropServices.WindowsRuntime" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ComputeSharp.Shaders\ComputeSharp.Shaders.csproj" />
</ItemGroup>
</Project>
+7 -2
ファイルの表示
@@ -1,6 +1,5 @@
using System;
using System.Linq;
using ComputeSharp;
using ComputeSharp.Graphics;
using ComputeSharp.Shaders;
using ComputeSharp.Shaders.Renderer;
@@ -10,12 +9,18 @@ using CommandList = ComputeSharp.Graphics.CommandList;
using PipelineState = ComputeSharp.Graphics.PipelineState;
using ShaderBytecode = SharpDX.Direct3D12.ShaderBytecode;
namespace DirectX12ComputeShaderSample
namespace ComputeSharp
{
/// <summary>
/// A <see langword="class"/> that acts as an entry-point for all the library APIs, exposing the available GPU devices
/// </summary>
public static class Gpu
{
private static GraphicsDevice _Default;
/// <summary>
/// Gets the default <see cref="GraphicsDevice"/> instance for the current machine
/// </summary>
public static GraphicsDevice Default => _Default ??= new GraphicsDevice(true);
}
+1 -2
ファイルの表示
@@ -6,8 +6,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ComputeSharp.Graphics\ComputeSharp.Graphics.csproj" />
<ProjectReference Include="..\ComputeSharp.Shaders\ComputeSharp.Shaders.csproj" />
<ProjectReference Include="..\ComputeSharp\ComputeSharp.csproj" />
</ItemGroup>
</Project>