Fixed some XML docs

このコミットが含まれているのは:
Sergio Pedri committed 2021-01-14 14:42:48 +01:00
1 親 6338f2511e
コミット b340dc633d
21ファイル変更
+49 -49

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

+3 -3
ファイルの表示
@@ -79,10 +79,10 @@ namespace ComputeSharp.__Internals
}
/// <summary>
/// Gets the associated <see cref="ShaderMethodSourceAttribute"/> instance for a specified type.
/// Gets the associated <see cref="ShaderMethodSourceAttribute"/> instance for a specified delegate.
/// </summary>
/// <typeparam name="T">The shader type to get the attribute for.</typeparam>
/// <returns>The associated <see cref="IComputeShaderSourceAttribute"/> instance for type <typeparamref name="T"/>.</returns>
/// <param name="function">The input <see cref="Delegate"/> instance to get info for.</param>
/// <returns>The associated <see cref="ShaderMethodSourceAttribute"/> instance for the given delegate.</returns>
[Pure]
internal static ShaderMethodSourceAttribute GetForDelegate(Delegate function)
{
+2 -2
ファイルの表示
@@ -30,8 +30,8 @@ namespace ComputeSharp
/// <summary>
/// Initializes a new instance of the <see cref="Rg16"/> struct.
/// </summary>
/// <param name="x">The x-component</param>
/// <param name="y">The y-component</param>
/// <param name="r">The red component.</param>
/// <param name="g">The green component.</param>
public Rg16(byte r, byte g)
{
R = r;
+2 -2
ファイルの表示
@@ -30,8 +30,8 @@ namespace ComputeSharp
/// <summary>
/// Initializes a new instance of the <see cref="Rg32"/> struct.
/// </summary>
/// <param name="x">The x-component</param>
/// <param name="y">The y-component</param>
/// <param name="r">The red component.</param>
/// <param name="g">The green component.</param>
public Rg32(ushort r, ushort g)
{
R = r;
+2 -2
ファイルの表示
@@ -567,13 +567,13 @@ namespace ComputeSharp
/// <summary>
/// Casts a <see cref="Float3"/> value to a <see cref="Vector3"/> one.
/// </summary>
/// <param name="xy">The input <see cref="Float3"/> value to cast.</param>
/// <param name="xyz">The input <see cref="Float3"/> value to cast.</param>
public static unsafe implicit operator Vector3(Float3 xyz) => *(Vector3*)&xyz;
/// <summary>
/// Casts a <see cref="Vector3"/> value to a <see cref="Float3"/> one.
/// </summary>
/// <param name="xy">The input <see cref="Vector3"/> value to cast.</param>
/// <param name="xyz">The input <see cref="Vector3"/> value to cast.</param>
public static unsafe implicit operator Float3(Vector3 xyz) => *(Float3*)&xyz;
/// <summary>
+2 -2
ファイルの表示
@@ -3972,13 +3972,13 @@ namespace ComputeSharp
/// <summary>
/// Casts a <see cref="Float4"/> value to a <see cref="Vector4"/> one.
/// </summary>
/// <param name="xy">The input <see cref="Float4"/> value to cast.</param>
/// <param name="xyzw">The input <see cref="Float4"/> value to cast.</param>
public static unsafe implicit operator Vector4(Float4 xyzw) => *(Vector4*)&xyzw;
/// <summary>
/// Casts a <see cref="Vector4"/> value to a <see cref="Float4"/> one.
/// </summary>
/// <param name="xy">The input <see cref="Vector4"/> value to cast.</param>
/// <param name="xyzw">The input <see cref="Vector4"/> value to cast.</param>
public static unsafe implicit operator Float4(Vector4 xyzw) => *(Float4*)&xyzw;
/// <summary>
+2 -1
ファイルの表示
@@ -120,6 +120,7 @@ namespace ComputeSharp.Graphics.Commands
/// <param name="d3D12ResourceSource">The source <see cref="ID3D12Resource"/> (a texture) to read from.</param>
/// <param name="x">The horizontal offset in the destination texture.</param>
/// <param name="y">The vertical offset in the destination texture.</param>
/// <param name="z">The depthwise offset in the destination texture.</param>
/// <param name="width">The width of the memory area to read from.</param>
/// <param name="height">The height of the memory area to read from.</param>
/// <param name="depth">The depth of the memory area to read from.</param>
@@ -166,7 +167,7 @@ namespace ComputeSharp.Graphics.Commands
/// <summary>
/// Sets a given <see cref="PipelineData"/> object ready to be executed.
/// </summary>
/// <param name="pipelineState">The input <see cref="PipelineData"/> to setup.</param>
/// <param name="pipelineData">The input <see cref="PipelineData"/> to setup.</param>
public readonly void SetPipelineData(PipelineData pipelineData)
{
this.d3D12GraphicsCommandList.Get()->SetComputeRootSignature(pipelineData.D3D12RootSignature);
+2 -2
ファイルの表示
@@ -79,7 +79,7 @@ namespace ComputeSharp.Graphics.Commands.Interop
/// Rents a new CPU and GPU handle pair to use in a memory buffer.
/// </summary>
/// <param name="d3D12CpuDescriptorHandle">The resulting <see cref="D3D12_CPU_DESCRIPTOR_HANDLE"/> value.</param>
/// <param name="d3D12CpuDescriptorHandle">The resulting <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value.</param>
/// <param name="d3D12GpuDescriptorHandle">The resulting <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value.</param>
public void Rent(
out D3D12_CPU_DESCRIPTOR_HANDLE d3D12CpuDescriptorHandle,
out D3D12_GPU_DESCRIPTOR_HANDLE d3D12GpuDescriptorHandle)
@@ -106,7 +106,7 @@ namespace ComputeSharp.Graphics.Commands.Interop
/// Returns a CPU and GPU handle pair for later use.
/// </summary>
/// <param name="d3D12CpuDescriptorHandle">The returned <see cref="D3D12_CPU_DESCRIPTOR_HANDLE"/> value.</param>
/// <param name="d3D12CpuDescriptorHandle">The returned <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value.</param>
/// <param name="d3D12GpuDescriptorHandle">The returned <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value.</param>
public void Return(
D3D12_CPU_DESCRIPTOR_HANDLE d3D12CpuDescriptorHandle,
D3D12_GPU_DESCRIPTOR_HANDLE d3D12GpuDescriptorHandle)
+3 -4
ファイルの表示
@@ -19,11 +19,10 @@ namespace ComputeSharp.Graphics.Commands
private ComPtr<ID3D12PipelineState> d3D12PipelineState;
/// <summary>
/// Creates a new <see cref="PipelineState"/> instance with the specified parameters.
/// Creates a new <see cref="PipelineData"/> instance with the specified parameters.
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> to use.</param>
/// <param name="rootSignature">The <see cref="ID3D12RootSignature"/> value for the current shader.</param>
/// <param name="computeShader">The bytecode for the compute shader to run.</param>
/// <param name="d3D12RootSignature">The <see cref="ID3D12RootSignature"/> value for the current shader.</param>
/// <param name="d3D12PipelineState">The compiled pipeline state to reuse for the current shader.</param>
public PipelineData(ComPtr<ID3D12RootSignature> d3D12RootSignature, ComPtr<ID3D12PipelineState> d3D12PipelineState)
{
this.d3D12RootSignature = d3D12RootSignature;
+1
ファイルの表示
@@ -423,6 +423,7 @@ namespace ComputeSharp.Graphics.Extensions
/// </summary>
/// <param name="d3D12Device">The target <see cref="ID3D12Device"/> to use to create the command list.</param>
/// <param name="d3D12CommandListType">The type of command list to create.</param>
/// <param name="d3D12CommandAllocator">The command allocator to use to create the command list.</param>
/// <returns>A pointer to the newly allocated <see cref="ID3D12GraphicsCommandList"/> instance.</returns>
/// <exception cref="Exception">Thrown when the creation of the command list fails.</exception>
public static ComPtr<ID3D12GraphicsCommandList> CreateCommandList(
+5 -5
ファイルの表示
@@ -152,11 +152,11 @@ namespace ComputeSharp
internal bool IsCacheCoherentUMA { get; }
/// <summary>
/// Checks whether the current device supports the creation of <see cref="Buffers.Abstract.Texture2D{T}"/>
/// Checks whether the current device supports the creation of <see cref="Resources.Texture2D{T}"/>
/// resources for a specified type <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The type of values to check support for.</typeparam>
/// <returns>Whether <see cref="Buffers.Abstract.Texture2D{T}"/> instances can be created by the current device.</returns>
/// <returns>Whether <see cref="Resources.Texture2D{T}"/> instances can be created by the current device.</returns>
[Pure]
public bool IsTexture2DSupportedForType<T>()
where T : unmanaged
@@ -167,11 +167,11 @@ namespace ComputeSharp
}
/// <summary>
/// Checks whether the current device supports the creation of <see cref="Buffers.Abstract.Texture3D{T}"/>
/// Checks whether the current device supports the creation of <see cref="Resources.Texture3D{T}"/>
/// resources for a specified type <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The type of values to check support for.</typeparam>
/// <returns>Whether <see cref="Buffers.Abstract.Texture3D{T}"/> instances can be created by the current device.</returns>
/// <returns>Whether <see cref="Resources.Texture3D{T}"/> instances can be created by the current device.</returns>
[Pure]
public bool IsTexture3DSupportedForType<T>()
where T : unmanaged
@@ -181,7 +181,7 @@ namespace ComputeSharp
return this.d3D12Device.Get()->IsDxgiFormatSupported(DXGIFormatHelper.GetForType<T>(), D3D12_FORMAT_SUPPORT1_TEXTURE3D);
}
/// <inheritdoc cref="ID3D12DescriptorHandleAllocator.Allocate"/>
/// <inheritdoc cref="ID3D12DescriptorHandleAllocator.Rent"/>
internal void RentShaderResourceViewDescriptorHandles(
out D3D12_CPU_DESCRIPTOR_HANDLE d3D12CpuDescriptorHandle,
out D3D12_GPU_DESCRIPTOR_HANDLE d3D12GpuDescriptorHandle)
+1 -1
ファイルの表示
@@ -11,7 +11,7 @@ namespace ComputeSharp
/// <summary>
/// Creates a new <see cref="GraphicsDeviceInfo"/> instance with the specified parameters.
/// </summary>
/// <param name="description">The available info for the associate device.</param>
/// <param name="dxgiDescription1">The available info for the associated device.</param>
internal unsafe GraphicsDeviceInfo(DXGI_ADAPTER_DESC1* dxgiDescription1)
{
Luid = Luid.FromLUID(dxgiDescription1->AdapterLuid);
-2
ファイルの表示
@@ -174,7 +174,6 @@ namespace ComputeSharp.Graphics.Helpers
/// Copies the content of a source memory area to the 3D area pointed by an input pointer.
/// The destination memory area has padding in each row, while the source does not.
/// </summary>
/// <typeparam name="T">The type of values to read.</typeparam>
/// <param name="source">The source memory area to read from.</param>
/// <param name="destination">The pointer that indicates the 3D memory area to write to.</param>
/// <param name="height">The height of the 3D memory area to write to.</param>
@@ -219,7 +218,6 @@ namespace ComputeSharp.Graphics.Helpers
/// Copies a 3D memory area pointed by a pointer value to a target memory area.
/// The source memory area has padding in each row, while the target does not.
/// </summary>
/// <typeparam name="T">The type of values to read.</typeparam>
/// <param name="source">The pointer that indicates the memory area to read from.</param>
/// <param name="height">The height of the 3D memory area to read.</param>
/// <param name="depth">The depth of the 3D memory area to read.</param>
+1 -1
ファイルの表示
@@ -28,7 +28,7 @@
/// </summary>
/// <param name="x">The horizontal offset of the value to get.</param>
/// <param name="y">The vertical offset of the value to get.</param>
/// <param name="y">The depthwise offset of the value to get.</param>
/// <param name="z">The depthwise offset of the value to get.</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else.</remarks>
public TPixel this[int x, int y, int z] { get; }
+1 -1
ファイルの表示
@@ -32,7 +32,7 @@ namespace ComputeSharp
/// </summary>
/// <param name="x">The horizontal offset of the value to get.</param>
/// <param name="y">The vertical offset of the value to get.</param>
/// <param name="y">The depthwise offset of the value to get.</param>
/// <param name="z">The depthwise offset of the value to get.</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else.</remarks>
public T this[int x, int y, int z] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyTexture3D<T>)}<T>[int,int,int]");
+2 -2
ファイルの表示
@@ -251,7 +251,7 @@ namespace ComputeSharp.Shaders.Renderer
/// <summary>
/// Ensures that <see cref="array"/> has enough free space to contain a given number of new items.
/// </summary>
/// <param name="sizeHint">The minimum number of items to ensure space for in <see cref="array"/>.</param>
/// <param name="requestedSize">The minimum number of items to ensure space for in <see cref="array"/>.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void EnsureCapacity(int requestedSize)
{
@@ -297,7 +297,7 @@ namespace ComputeSharp.Shaders.Renderer
internal sealed class DebugView
{
/// <summary>
/// Initializes a new instance of the <see cref="DebugView{T}"/> class with the specified parameters.
/// Initializes a new instance of the <see cref="DebugView"/> class with the specified parameters.
/// </summary>
/// <param name="builder">The input <see cref="ArrayPoolStringBuilder"/> instance to display.</param>
public DebugView(ArrayPoolStringBuilder builder)
+1
ファイルの表示
@@ -5,6 +5,7 @@
/// </summary>
/// <param name="FieldType">The type of the current field in the HLSL shader.</param>
/// <param name="FieldName">The name to use for the current field.</param>
/// <param name="BufferIndex">The register index to bind the resource to.</param>
internal abstract record HlslResourceInfo(string FieldType, string FieldName, int BufferIndex)
: CapturedFieldInfo(FieldType, FieldName)
{
+2 -2
ファイルの表示
@@ -111,7 +111,7 @@ namespace ComputeSharp.Shaders.Translation
/// Loads and processes an input<typeparamref name="T"/> shadeer.
/// </summary>
/// <param name="shader">The <typeparamref name="T"/> instance to use to build the shader.</param>
/// <returns>A new <see cref="ShaderLoader"/> instance representing the input shader.</returns>
/// <returns>A new <see cref="ShaderLoader{T}"/> instance representing the input shader.</returns>
[Pure]
public static ShaderLoader<T> Load(in T shader)
{
@@ -179,7 +179,7 @@ namespace ComputeSharp.Shaders.Translation
}
/// <summary>
/// Loads a specified <see cref="ReadableMember"/> and adds it to the shader model.
/// Loads a specified <see cref="FieldInfo"/> and adds it to the shader model.
/// </summary>
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader.</param>
/// <param name="fieldInfo">The target <see cref="FieldInfo"/> to load.</param>
+1 -1
ファイルの表示
@@ -68,7 +68,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
/// <param name="buffer">The input <see cref="Buffer{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="destinationOffset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="destinationOffset">The starting offset within <paramref name="destination"/> to write data to.</param>
/// <param name="bufferOffset">The offset to start reading data from.</param>
/// <param name="count">The number of items to read.</param>
public static void GetData<T>(this Buffer<T> buffer, T[] destination, int destinationOffset, int bufferOffset, int count)
+3 -3
ファイルの表示
@@ -93,7 +93,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
/// <param name="texture">The input <see cref="Texture2D{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="destination"/> to write data to.</param>
public static void GetData<T>(this Texture2D<T> texture, T[] destination, int offset)
where T : unmanaged
{
@@ -107,7 +107,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
/// <param name="texture">The input <see cref="Texture2D{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="destination"/> to write data to.</param>
/// <param name="x">The horizontal range of items to copy.</param>
/// <param name="y">The vertical range of items to copy.</param>
public static void GetData<T>(this Texture2D<T> texture, T[] destination, int offset, Range x, Range y)
@@ -123,7 +123,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
/// <param name="texture">The input <see cref="Texture2D{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="destination"/> to write data to.</param>
/// <param name="x">The horizontal offset in the source texture.</param>
/// <param name="y">The vertical offset in the source texture.</param>
/// <param name="width">The width of the memory area to copy.</param>
+5 -5
ファイルの表示
@@ -41,7 +41,7 @@ namespace ComputeSharp
/// <param name="destination">The input array to write data to.</param>
/// <remarks>
/// The input 3D array needs to have each 2D plane stacked on the depth axis. That is, the expected
/// layout of the input array has to be [<see cref="Depth"/>, <see cref="Height"/>, <see cref="Width"/>].
/// layout of the input array has to be of shape [depth, height, width].
/// </remarks>
public static void GetData<T>(this Texture3D<T> texture, T[,,] destination)
where T : unmanaged
@@ -59,7 +59,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
/// <param name="texture">The input <see cref="Texture3D{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="destination"/> to write data to.</param>
public static void GetData<T>(this Texture3D<T> texture, T[] destination, int offset)
where T : unmanaged
{
@@ -73,7 +73,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
/// <param name="texture">The input <see cref="Texture3D{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="destination"/> to write data to.</param>
/// <param name="x">The horizontal range of items to copy.</param>
/// <param name="y">The vertical range of items to copy.</param>
/// <param name="z">The depthwise range of items to copy.</param>
@@ -90,7 +90,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items stored on the texture.</typeparam>
/// <param name="texture">The input <see cref="Texture3D{T}"/> instance to read data from.</param>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to write data to.</param>
/// <param name="offset">The starting offset within <paramref name="destination"/> to write data to.</param>
/// <param name="x">The horizontal offset in the source texture.</param>
/// <param name="y">The vertical offset in the source texture.</param>
/// <param name="z">The depthwise offset in the source texture.</param>
@@ -162,7 +162,7 @@ namespace ComputeSharp
/// <param name="source">The input <typeparamref name="T"/> array to read data from.</param>
/// <remarks>
/// The source 3D array needs to have each 2D plane stacked on the depth axis. That is, the expected
/// layout of the input array has to be [<see cref="Depth"/>, <see cref="Height"/>, <see cref="Width"/>].
/// layout of the input array has to be of shape [depth, height, width].
/// </remarks>
public static void SetData<T>(this Texture3D<T> texture, T[,,] source)
where T : unmanaged
+8 -8
ファイルの表示
@@ -178,7 +178,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items to store in the texture.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <returns>A <see cref="ReadOnlyTexture2D{T}"/> instance with the contents of the input array.</returns>
@@ -269,7 +269,7 @@ namespace ComputeSharp
/// <typeparam name="TPixel">The type of pixels used on the GPU side.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <returns>A <see cref="ReadOnlyTexture2D{T,TPixel}"/> instance with the contents of the input array.</returns>
@@ -362,7 +362,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items to store in the texture.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <param name="depth">The depth of the texture.</param>
@@ -461,7 +461,7 @@ namespace ComputeSharp
/// <typeparam name="TPixel">The type of pixels used on the GPU side.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <param name="depth">The depth of the texture.</param>
@@ -622,7 +622,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items to store in the texture.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <returns>A <see cref="ReadWriteTexture2D{T}"/> instance with the contents of the input array.</returns>
@@ -713,7 +713,7 @@ namespace ComputeSharp
/// <typeparam name="TPixel">The type of pixels used on the GPU side.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <returns>A <see cref="ReadWriteTexture2D{T,TPixel}"/> instance with the contents of the input array.</returns>
@@ -806,7 +806,7 @@ namespace ComputeSharp
/// <typeparam name="T">The type of items to store in the texture.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <param name="depth">The depth of the texture.</param>
@@ -905,7 +905,7 @@ namespace ComputeSharp
/// <typeparam name="TPixel">The type of pixels used on the GPU side.</typeparam>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to allocate the texture.</param>
/// <param name="array">The input <typeparamref name="T"/> array with the data to copy on the allocated texture.</param>
/// <param name="offset">The starting offset within <paramref name="source"/> to read data from.</param>
/// <param name="offset">The starting offset within <paramref name="array"/> to read data from.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <param name="depth">The depth of the texture.</param>