Added ToString() override for GraphicsDevice
このコミットが含まれているのは:
1 親
07b3fb14b5
コミット
4ae42a2be5
1ファイル変更
+9
-1
@@ -1,4 +1,5 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using ComputeSharp.Core.Extensions;
|
||||
using ComputeSharp.Core.Helpers;
|
||||
using ComputeSharp.Core.Interop;
|
||||
@@ -13,6 +14,7 @@ namespace ComputeSharp.Graphics
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that represents a DX12.1-compatible GPU device that can be used to run compute shaders.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{ToString(),raw}")]
|
||||
public sealed unsafe class GraphicsDevice : NativeObject
|
||||
{
|
||||
/// <summary>
|
||||
@@ -209,5 +211,11 @@ namespace ComputeSharp.Graphics
|
||||
this.copyCommandAllocatorPool.Dispose();
|
||||
this.shaderResourceViewDescriptorAllocator.Dispose();
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[{Luid}] {Name}";
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする