Rename Gpu class to GraphicsDevice

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-07 23:10:12 +01:00
1 親 19485cd3fe
コミット a0a3511efe
23ファイル変更
+88 -90

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

+2 -2
ファイルの表示
@@ -171,7 +171,7 @@ public sealed partial class ComputeShaderPanel
// Get the underlying ID3D12Device in use
fixed (ID3D12Device** d3D12Device = this.d3D12Device)
{
InteropServices.TryGetID3D12Device(Gpu.Default, Win32.__uuidof<ID3D12Device>(), (void**)d3D12Device).Assert();
InteropServices.TryGetID3D12Device(GraphicsDevice.Default, Win32.__uuidof<ID3D12Device>(), (void**)d3D12Device).Assert();
}
// Create the direct command queue to use
@@ -342,7 +342,7 @@ public sealed partial class ComputeShaderPanel
D3D12_RESOURCE_DESC d3D12Resource0Description = this.d3D12Resource0.Get()->GetDesc();
// Create the 2D texture to use to generate frames to display
this.texture = Gpu.Default.AllocateReadWriteTexture2D<Rgba32, Float4>(
this.texture = GraphicsDevice.Default.AllocateReadWriteTexture2D<Rgba32, Float4>(
(int)d3D12Resource0Description.Width,
(int)d3D12Resource0Description.Height);
}
+1 -1
ファイルの表示
@@ -40,6 +40,6 @@ public sealed class ShaderRunner<T> : IShaderRunner
/// <inheritdoc/>
public void Execute(IReadWriteTexture2D<Float4> texture, TimeSpan time)
{
Gpu.Default.ForEach(texture, this.shaderFactory(time));
GraphicsDevice.Default.ForEach(texture, this.shaderFactory(time));
}
}
+2 -4
ファイルの表示
@@ -5,10 +5,8 @@ using ComputeSharp.Graphics.Helpers;
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
/// <inheritdoc/>
partial class GraphicsDevice
{
/// <summary>
/// Gets the default <see cref="GraphicsDevice"/> instance for the current machine.
+1 -1
ファイルの表示
@@ -22,7 +22,7 @@ namespace ComputeSharp;
/// A <see langword="class"/> that represents an <see cref="ID3D12Device"/> instance that can be used to run compute shaders.
/// </summary>
[DebuggerDisplay("{ToString(),raw}")]
public sealed unsafe class GraphicsDevice : NativeObject
public sealed unsafe partial class GraphicsDevice : NativeObject
{
/// <summary>
/// The underlying <see cref="ID3D12Device"/> wrapped by the current instance.