Rename Gpu class to GraphicsDevice
このコミットが含まれているのは:
1 親
19485cd3fe
コミット
a0a3511efe
23ファイル変更
+88
-90
検索条件に一致するファイルはありません
@@ -5,7 +5,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
namespace ComputeSharp.Tests.Extensions;
|
||||
|
||||
/// <summary>
|
||||
/// A helper class for testing <see cref="Gpu"/> APIs.
|
||||
/// A helper class for testing <see cref="GraphicsDevice"/> APIs.
|
||||
/// </summary>
|
||||
public static class DeviceExtensions
|
||||
{
|
||||
@@ -19,8 +19,8 @@ public static class DeviceExtensions
|
||||
{
|
||||
GraphicsDevice? device = type switch
|
||||
{
|
||||
Device.Discrete => Gpu.QueryDevices(info => info.IsHardwareAccelerated).FirstOrDefault(),
|
||||
Device.Warp => Gpu.QueryDevices(info => !info.IsHardwareAccelerated).First(),
|
||||
Device.Discrete => GraphicsDevice.QueryDevices(info => info.IsHardwareAccelerated).FirstOrDefault(),
|
||||
Device.Warp => GraphicsDevice.QueryDevices(info => !info.IsHardwareAccelerated).First(),
|
||||
_ => ThrowHelper.ThrowArgumentException<GraphicsDevice>("Invalid device")
|
||||
};
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする