Add IGraphicsResource interface

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-06 22:54:55 +01:00
1 親 b1d0ffd030
コミット c5a31efd00
11ファイル変更
+28 -28

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

+2 -4
ファイルの表示
@@ -15,7 +15,7 @@ namespace ComputeSharp.Resources;
/// A <see langword="class"/> representing a typed 3D texture stored on on CPU memory, that can be used to transfer data to/from the GPU.
/// </summary>
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
public unsafe abstract class TransferTexture3D<T> : NativeObject
public unsafe abstract class TransferTexture3D<T> : NativeObject, IGraphicsResource
where T : unmanaged
{
#if NET6_0_OR_GREATER
@@ -87,9 +87,7 @@ public unsafe abstract class TransferTexture3D<T> : NativeObject
this.d3D12Resource.Get()->SetName(this);
}
/// <summary>
/// Gets the <see cref="ComputeSharp.GraphicsDevice"/> associated with the current instance.
/// </summary>
/// <inheritdoc/>
public GraphicsDevice GraphicsDevice { get; }
/// <summary>