From fbf62458c5ede81bbfbb20bb5c30eb172b2445d0 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 4 Jul 2024 22:15:20 -0700 Subject: [PATCH] Add missing 'TransferTextureND.View' docs --- .../Graphics/Resources/Abstract/TransferTexture1D{T}.cs | 5 ++++- .../Graphics/Resources/Abstract/TransferTexture2D{T}.cs | 5 ++++- .../Graphics/Resources/Abstract/TransferTexture3D{T}.cs | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs index 78e830190..9f7954ec6 100644 --- a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs +++ b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture1D{T}.cs @@ -118,7 +118,10 @@ public Memory Memory } } - /// + /// + /// Gets a representing a view over the mapped contents of the current instance. + /// + /// The returned view is only valid while the current instance is not disposed. public Span Span { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs index e6f23d3f1..d759cc092 100644 --- a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs +++ b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture2D{T}.cs @@ -113,7 +113,10 @@ private protected TransferTexture2D(GraphicsDevice device, int width, int height /// internal ref readonly D3D12_PLACED_SUBRESOURCE_FOOTPRINT D3D12PlacedSubresourceFootprint => ref this.d3D12PlacedSubresourceFootprint; - /// + /// + /// Gets a representing a view over the mapped contents of the current instance. + /// + /// The returned view is only valid while the current instance is not disposed. public TextureView2D View { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs index 6502ee60a..6bfa87905 100644 --- a/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs +++ b/src/ComputeSharp/Graphics/Resources/Abstract/TransferTexture3D{T}.cs @@ -121,7 +121,10 @@ private protected TransferTexture3D(GraphicsDevice device, int width, int height /// internal ref readonly D3D12_PLACED_SUBRESOURCE_FOOTPRINT D3D12PlacedSubresourceFootprint => ref this.d3D12PlacedSubresourceFootprint; - /// + /// + /// Gets a representing a view over the mapped contents of the current instance. + /// + /// The returned view is only valid while the current instance is not disposed. public TextureView3D View { [MethodImpl(MethodImplOptions.AggressiveInlining)]