diff --git a/src/ComputeSharp/Graphics/Commands/Interop/ID3D12CommandListPool.cs b/src/ComputeSharp/Graphics/Commands/Interop/ID3D12CommandListPool.cs
index 5aa6108d..db1877bc 100644
--- a/src/ComputeSharp/Graphics/Commands/Interop/ID3D12CommandListPool.cs
+++ b/src/ComputeSharp/Graphics/Commands/Interop/ID3D12CommandListPool.cs
@@ -12,7 +12,7 @@ namespace ComputeSharp.Graphics.Commands.Interop;
///
/// The command list type to use.
/// The fence used to track deferred command list completion.
-/// 保留可能なコマンドリスト数の上限。
+/// The maximum number of pending command lists.
internal readonly unsafe struct ID3D12CommandListPool(D3D12_COMMAND_LIST_TYPE d3D12CommandListType, ID3D12Fence* d3D12Fence, int maximumPendingCommandListCount) : IDisposable
{
///
diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs
index 294edc78..dbc6149e 100644
--- a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs
+++ b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12DeviceExtensions.cs
@@ -271,16 +271,16 @@ internal static unsafe class ID3D12DeviceExtensions
}
///
- /// クロス API 共有が可能なコミット型の 2D テクスチャ リソースを生成します。
+ /// Creates a committed 2D texture resource that can be shared across APIs.
///
- /// 使用する インスタンス。
- /// 生成するリソースの種別。
- /// 使用する 値。
- /// テクスチャの幅。
- /// テクスチャの高さ。
- /// レンダーターゲットとして使用可能にするかどうか。
- /// 生成されたリソースの初期 値。
- /// 共有可能な への参照。
+ /// The instance to use.
+ /// The resource type of the resource to create.
+ /// The value to use.
+ /// The width of the texture.
+ /// The height of the texture.
+ /// Whether the texture can be used as a render target.
+ /// The initial value for the created resource.
+ /// A reference to the shareable created.
public static ComPtr CreateSharedCommittedResource(
this ref ID3D12Device d3D12Device,
ResourceType resourceType,
@@ -328,10 +328,10 @@ internal static unsafe class ID3D12DeviceExtensions
}
///
- /// 他 API と共有可能な を生成します。
+ /// Creates an that can be shared with other APIs.
///
- /// 使用する インスタンス。
- /// 共有可能な への参照。
+ /// The instance to use.
+ /// A reference to the shareable created.
public static ComPtr CreateSharedFence(this ref ID3D12Device d3D12Device)
{
using ComPtr d3D12Fence = default;
@@ -346,11 +346,11 @@ internal static unsafe class ID3D12DeviceExtensions
}
///
- /// 指定した COM オブジェクトに対する共有 NT ハンドルを生成します。
+ /// Creates a shared NT handle for the specified COM object.
///
- /// 使用する インスタンス。
- /// 共有ハンドルを生成する対象の COM オブジェクト。
- /// 生成された共有 NT ハンドル。呼び出し側が CloseHandle で解放する責任を持ちます。
+ /// The instance to use.
+ /// The COM object to create the shared handle for.
+ /// The created shared NT handle. The caller is responsible for releasing it with CloseHandle.
public static HANDLE CreateSharedHandle(this ref ID3D12Device d3D12Device, IUnknown* pObject)
{
HANDLE handle;
@@ -361,12 +361,12 @@ internal static unsafe class ID3D12DeviceExtensions
}
///
- /// 指定した共有 NT ハンドルから 型の COM オブジェクトを開きます。
+ /// Opens a COM object of type from the specified shared NT handle.
///
- /// 開く COM オブジェクトの型。
- /// 使用する インスタンス。
- /// 開く対象の共有 NT ハンドル。
- /// 開かれた への参照。
+ /// The type of COM object to open.
+ /// The instance to use.
+ /// The shared NT handle to open.
+ /// A reference to the opened .
public static ComPtr OpenSharedHandle(this ref ID3D12Device d3D12Device, HANDLE handle)
where T : unmanaged, IComObject
{
diff --git a/src/ComputeSharp/Graphics/GraphicsDevice.Sharing.cs b/src/ComputeSharp/Graphics/GraphicsDevice.Sharing.cs
index feaa16fe..7b4aa3a8 100644
--- a/src/ComputeSharp/Graphics/GraphicsDevice.Sharing.cs
+++ b/src/ComputeSharp/Graphics/GraphicsDevice.Sharing.cs
@@ -9,15 +9,15 @@ namespace ComputeSharp;
unsafe partial class GraphicsDevice
{
///
- /// クロス API 共有が可能な 2D テクスチャ リソースを生成します。
+ /// Creates a 2D texture resource that can be shared across APIs.
///
- /// 生成するリソースの種別。
- /// 使用する 値。
- /// テクスチャの幅。
- /// テクスチャの高さ。
- /// レンダーターゲットとして使用可能にするかどうか。
- /// 生成された オブジェクト。
- /// 生成されたリソースの初期 値。
+ /// The resource type of the resource to create.
+ /// The value to use.
+ /// The width of the texture.
+ /// The height of the texture.
+ /// Whether the texture can be used as a render target.
+ /// The created object.
+ /// The initial value for the created resource.
internal void CreateSharedResource(
ResourceType resourceType,
DXGI_FORMAT dxgiFormat,
@@ -31,49 +31,49 @@ unsafe partial class GraphicsDevice
}
///
- /// 指定した COM オブジェクトに対する共有 NT ハンドルを生成します。
+ /// Creates a shared NT handle for the specified COM object.
///
- /// 共有ハンドルを生成する対象の COM オブジェクト。
- /// 生成された共有 NT ハンドル。
+ /// The COM object to create the shared handle for.
+ /// The created shared NT handle.
internal HANDLE CreateSharedHandle(IUnknown* pObject)
{
return this.d3D12Device.Get()->CreateSharedHandle(pObject);
}
///
- /// 指定した共有 NT ハンドルから を開きます。
+ /// Opens an from the specified shared NT handle.
///
- /// 開く対象の共有 NT ハンドル。
- /// 開かれた への参照。
+ /// The shared NT handle to open.
+ /// A reference to the opened .
internal ComPtr OpenSharedResource(HANDLE handle)
{
return this.d3D12Device.Get()->OpenSharedHandle(handle);
}
///
- /// 他 API と共有可能な を生成します。
+ /// Creates an that can be shared with other APIs.
///
- /// 共有可能な への参照。
+ /// A reference to the shareable created.
internal ComPtr CreateSharedFence()
{
return this.d3D12Device.Get()->CreateSharedFence();
}
///
- /// 指定した共有 NT ハンドルから を開きます。
+ /// Opens an from the specified shared NT handle.
///
- /// 開く対象の共有 NT ハンドル。
- /// 開かれた への参照。
+ /// The shared NT handle to open.
+ /// A reference to the opened .
internal ComPtr OpenSharedFence(HANDLE handle)
{
return this.d3D12Device.Get()->OpenSharedHandle(handle);
}
///
- /// コンピュート キュー上で指定した共有フェンスに値をシグナルします。
+ /// Signals the specified shared fence with a value on the compute queue.
///
- /// 対象の 。
- /// シグナルする値。
+ /// The target .
+ /// The value to signal.
internal void SignalSharedFence(ID3D12Fence* d3D12Fence, ulong value)
{
lock (this.d3D12ComputeCommandQueueLock)
@@ -83,10 +83,10 @@ unsafe partial class GraphicsDevice
}
///
- /// コンピュート キュー上で指定した共有フェンスが目標値に達するまで待機するよう登録します。
+ /// Enqueues a wait on the compute queue until the specified shared fence reaches the target value.
///
- /// 対象の 。
- /// 待機する目標値。
+ /// The target .
+ /// The target value to wait for.
internal void WaitForSharedFence(ID3D12Fence* d3D12Fence, ulong value)
{
lock (this.d3D12ComputeCommandQueueLock)
diff --git a/src/ComputeSharp/Graphics/Interop/InteropServices.Sharing.cs b/src/ComputeSharp/Graphics/Interop/InteropServices.Sharing.cs
index 2e73d22e..27c9e088 100644
--- a/src/ComputeSharp/Graphics/Interop/InteropServices.Sharing.cs
+++ b/src/ComputeSharp/Graphics/Interop/InteropServices.Sharing.cs
@@ -9,18 +9,18 @@ namespace ComputeSharp.Interop;
public static unsafe partial class InteropServices
{
///
- /// クロス API 共有が可能な を確保します。
+ /// Allocates a that can be shared across APIs.
///
- /// テクスチャに格納する要素の型。
- /// テクスチャの確保に使用する 。
- /// テクスチャの幅。
- /// テクスチャの高さ。
- /// 共有可能な インスタンス。
- /// が の場合にスローされます。
+ /// The type of items stored on the texture.
+ /// The to use to allocate the texture.
+ /// The width of the texture.
+ /// The height of the texture.
+ /// A shareable instance.
+ /// Thrown if is .
///
- /// 返されるテクスチャは で共有 NT ハンドルをエクスポートでき、
- /// 対応する外部 API から開けます。D3D11およびDirect2Dの共有ターゲットには正規化オーバーロードを使用してください。
- /// クロス API の同期は共有フェンスで行ってください。
+ /// The returned texture can export a shared NT handle via ,
+ /// which can then be opened from compatible external APIs. Use the normalized overloads for D3D11 and Direct2D shared targets.
+ /// Use a shared fence for cross API synchronization.
///
public static ReadWriteTexture2D AllocateSharedReadWriteTexture2D(GraphicsDevice device, int width, int height)
where T : unmanaged
@@ -31,19 +31,19 @@ public static unsafe partial class InteropServices
}
///
- /// クロス API 共有が可能な正規化 を確保します。
+ /// Allocates a normalized that can be shared across APIs.
///
- /// CPU側で使用するピクセルの型。
- /// GPU側で使用する正規化ピクセルの型。
- /// テクスチャの確保に使用する 。
- /// テクスチャの幅。
- /// テクスチャの高さ。
- /// 共有可能な正規化 インスタンス。
- /// が の場合にスローされます。
+ /// The type of pixels used on the CPU side.
+ /// The type of normalized pixels used on the GPU side.
+ /// The to use to allocate the texture.
+ /// The width of the texture.
+ /// The height of the texture.
+ /// A shareable normalized instance.
+ /// Thrown if is .
///
- /// 返されるテクスチャはUAV、同時アクセス、レンダーターゲットに対応します。D3D11から共有リソースとして開け、
- /// 互換性のある形式ではDirect2Dの共有ターゲットとして開けます。
- /// クロス API の同期は共有フェンスで行ってください。
+ /// The returned texture supports UAV, simultaneous access and render target usage. It can be opened as a shared resource from D3D11,
+ /// and as a Direct2D shared target for compatible formats.
+ /// Use a shared fence for cross API synchronization.
///
public static ReadWriteTexture2D AllocateSharedReadWriteTexture2D(GraphicsDevice device, int width, int height)
where T : unmanaged, IPixel
@@ -55,14 +55,14 @@ public static unsafe partial class InteropServices
}
///
- /// クロス API 共有が可能な を確保します。
+ /// Allocates a that can be shared across APIs.
///
- /// テクスチャに格納する要素の型。
- /// テクスチャの確保に使用する 。
- /// テクスチャの幅。
- /// テクスチャの高さ。
- /// 共有可能な インスタンス。
- /// が の場合にスローされます。
+ /// The type of items stored on the texture.
+ /// The to use to allocate the texture.
+ /// The width of the texture.
+ /// The height of the texture.
+ /// A shareable instance.
+ /// Thrown if is .
public static ReadOnlyTexture2D AllocateSharedReadOnlyTexture2D(GraphicsDevice device, int width, int height)
where T : unmanaged
{
@@ -72,17 +72,17 @@ public static unsafe partial class InteropServices
}
///
- /// 外部 API が所有する共有 NT ハンドルを として開きます。
+ /// Opens a shared NT handle owned by an external API as a .
///
- /// テクスチャに格納する要素の型。
- /// リソースを開くために使用する 。
- /// 開く対象の共有 NT ハンドル。
- /// 共有リソースをラップする インスタンス。
- /// が の場合にスローされます。
- /// 共有リソースが 2D テクスチャでない、またはフォーマットが と一致しない場合にスローされます。
+ /// The type of items stored on the texture.
+ /// The to use to open the resource.
+ /// The shared NT handle to open.
+ /// A instance wrapping the shared resource.
+ /// Thrown if is .
+ /// Thrown if the shared resource is not a 2D texture, or if its format does not match .
///
- /// インポートしたリソースを として書き込み用に使用する場合、元のリソースは UAV 対応かつ
- /// 同時アクセス可能 (simultaneous access) として作成されている必要があります。クロス API の同期は共有フェンスで行ってください。
+ /// To use the imported resource for writing as a , the original resource must have been
+ /// created with UAV support and simultaneous access. Use a shared fence for cross API synchronization.
///
public static ReadWriteTexture2D OpenSharedReadWriteTexture2D(GraphicsDevice device, nint handle)
where T : unmanaged
@@ -96,18 +96,18 @@ public static unsafe partial class InteropServices
}
///
- /// 外部 API が所有する共有 NT ハンドルを正規化 として開きます。
+ /// Opens a shared NT handle owned by an external API as a normalized .
///
- /// CPU側で使用するピクセルの型。
- /// GPU側で使用する正規化ピクセルの型。
- /// リソースを開くために使用する 。
- /// 開く対象の共有 NT ハンドル。
- /// 共有リソースをラップする正規化 インスタンス。
- /// が の場合にスローされます。
- /// 共有リソースが2Dテクスチャでない、またはフォーマットが と一致しない場合にスローされます。
+ /// The type of pixels used on the CPU side.
+ /// The type of normalized pixels used on the GPU side.
+ /// The to use to open the resource.
+ /// The shared NT handle to open.
+ /// A normalized instance wrapping the shared resource.
+ /// Thrown if is .
+ /// Thrown if the shared resource is not a 2D texture, or if its format does not match .
///
- /// 書き込み用に使用する場合、元のリソースはUAV対応かつ同時アクセス可能として作成されている必要があります。
- /// クロス API の同期は共有フェンスで行ってください。
+ /// To use the resource for writing, the original resource must have been created with UAV support and simultaneous access.
+ /// Use a shared fence for cross API synchronization.
///
public static ReadWriteTexture2D OpenSharedReadWriteTexture2D(GraphicsDevice device, nint handle)
where T : unmanaged, IPixel
@@ -122,14 +122,14 @@ public static unsafe partial class InteropServices
}
///
- /// 外部 API が所有する共有 NT ハンドルを として開きます。
+ /// Opens a shared NT handle owned by an external API as a .
///
- /// テクスチャに格納する要素の型。
- /// リソースを開くために使用する 。
- /// 開く対象の共有 NT ハンドル。
- /// 共有リソースをラップする インスタンス。
- /// が の場合にスローされます。
- /// 共有リソースが 2D テクスチャでない、またはフォーマットが と一致しない場合にスローされます。
+ /// The type of items stored on the texture.
+ /// The to use to open the resource.
+ /// The shared NT handle to open.
+ /// A instance wrapping the shared resource.
+ /// Thrown if is .
+ /// Thrown if the shared resource is not a 2D texture, or if its format does not match .
public static ReadOnlyTexture2D OpenSharedReadOnlyTexture2D(GraphicsDevice device, nint handle)
where T : unmanaged
{
@@ -142,15 +142,15 @@ public static unsafe partial class InteropServices
}
///
- /// 共有可能なテクスチャの基になる に対する共有 NT ハンドルをエクスポートします。
+ /// Exports a shared NT handle for the backing a shareable texture.
///
- /// テクスチャに格納する要素の型。
- /// 共有ハンドルをエクスポートする対象の 。
- /// エクスポートされた共有 NT ハンドル。呼び出し側が CloseHandle で解放する責任を持ちます。
- /// が の場合にスローされます。
+ /// The type of items stored on the texture.
+ /// The to export the shared handle for.
+ /// The exported shared NT handle. The caller is responsible for releasing it with CloseHandle.
+ /// Thrown if is .
///
- /// このメソッドは、 など共有可能として
- /// 作成されたテクスチャに対してのみ成功します。共有用に作成されていないテクスチャに対しては失敗します。
+ /// This method only succeeds for textures created as shareable, such as with
+ /// . It fails for textures not created for sharing.
///
public static nint CreateSharedHandle(Texture2D texture)
where T : unmanaged
@@ -165,18 +165,18 @@ public static unsafe partial class InteropServices
}
///
- /// クロス API 同期に使用する共有フェンスを生成し、要求されたインターフェイスとして取得します。
+ /// Creates a shared fence to use for cross API synchronization, and retrieves it as the requested interface.
///
- /// フェンスの生成に使用する 。
- /// 取得するフェンス インターフェイスの識別子 (IID) への参照。
- /// で指定したインターフェイスへのポインターのアドレス。
- /// 生成されたフェンスの共有 NT ハンドルを書き込む先のアドレス。呼び出し側が CloseHandle で解放する責任を持ちます。
- /// が の場合にスローされます。
- /// フェンスの生成、ハンドルのエクスポート、またはインターフェイスの取得に失敗した場合にスローされます。
+ /// The to use to create the fence.
+ /// A reference to the identifier (IID) of the fence interface to retrieve.
+ /// The address of a pointer to the interface specified by .
+ /// The address to write the shared NT handle of the created fence to. The caller is responsible for releasing it with CloseHandle.
+ /// Thrown if is .
+ /// Thrown if creating the fence, exporting the handle, or retrieving the interface fails.
///
- /// エクスポートされた は、D3D11 側で ID3D11Device5::OpenSharedFence により開けます。
- /// 取得した は および
- /// に渡して、コンピュート キュー上での同期に使用できます。
+ /// The exported can be opened on the D3D11 side via ID3D11Device5::OpenSharedFence.
+ /// The retrieved can be passed to and
+ /// to synchronize on the compute queue.
///
public static void CreateSharedFence(GraphicsDevice device, Guid* riid, void** ppvFence, nint* sharedHandle)
{
@@ -193,14 +193,14 @@ public static unsafe partial class InteropServices
}
///
- /// 共有 NT ハンドルから他 API が生成した共有フェンスを開き、要求されたインターフェイスとして取得します。
+ /// Opens a shared fence created by another API from a shared NT handle, and retrieves it as the requested interface.
///
- /// フェンスを開くために使用する 。
- /// 開く対象の共有 NT ハンドル。
- /// 取得するフェンス インターフェイスの識別子 (IID) への参照。
- /// で指定したインターフェイスへのポインターのアドレス。
- /// が の場合にスローされます。
- /// フェンスを開く、またはインターフェイスの取得に失敗した場合にスローされます。
+ /// The to use to open the fence.
+ /// The shared NT handle to open.
+ /// A reference to the identifier (IID) of the fence interface to retrieve.
+ /// The address of a pointer to the interface specified by .
+ /// Thrown if is .
+ /// Thrown if opening the fence or retrieving the interface fails.
public static void OpenSharedFence(GraphicsDevice device, nint handle, Guid* riid, void** ppvFence)
{
default(ArgumentNullException).ThrowIfNull(device);
@@ -212,13 +212,13 @@ public static unsafe partial class InteropServices
}
///
- /// コンピュート キュー上で指定した共有フェンスに値をシグナルします。
+ /// Signals the specified shared fence with a value on the compute queue.
///
- /// 操作を発行する 。
- /// 対象の ID3D12Fence COM オブジェクトへのポインター。
- /// シグナルする値。
- /// が の場合にスローされます。
- /// シグナルの発行に失敗した場合にスローされます。
+ /// The issuing the operation.
+ /// A pointer to the target ID3D12Fence COM object.
+ /// The value to signal.
+ /// Thrown if is .
+ /// Thrown if issuing the signal fails.
public static void SignalSharedFence(GraphicsDevice device, void* d3D12Fence, ulong value)
{
default(ArgumentNullException).ThrowIfNull(device);
@@ -229,13 +229,13 @@ public static unsafe partial class InteropServices
}
///
- /// コンピュート キュー上で指定した共有フェンスが目標値に達するまで待機するよう登録します。
+ /// Enqueues a wait on the compute queue until the specified shared fence reaches the target value.
///
- /// 操作を発行する 。
- /// 対象の ID3D12Fence COM オブジェクトへのポインター。
- /// 待機する目標値。
- /// が の場合にスローされます。
- /// 待機の登録に失敗した場合にスローされます。
+ /// The issuing the operation.
+ /// A pointer to the target ID3D12Fence COM object.
+ /// The target value to wait for.
+ /// Thrown if is .
+ /// Thrown if enqueueing the wait fails.
public static void WaitForSharedFence(GraphicsDevice device, void* d3D12Fence, ulong value)
{
default(ArgumentNullException).ThrowIfNull(device);
diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs
index 8b7bafd2..2396d667 100644
--- a/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/Abstract/Texture2D{T}.cs
@@ -131,14 +131,14 @@ public abstract unsafe partial class Texture2D : IReferenceTrackedObject, IGr
}
///
- /// クロス API 共有が可能な インスタンスを生成します。
+ /// Creates a new instance that can be shared across APIs.
///
- /// 現在のインスタンスに関連付ける 。
- /// テクスチャの幅。
- /// テクスチャの高さ。
- /// 現在のテクスチャのリソース種別。
- /// 現在のテクスチャ型のフォーマット サポート。
- /// レンダーターゲットとして使用可能にするかどうか。
+ /// The associated with the current instance.
+ /// The width of the texture.
+ /// The height of the texture.
+ /// The resource type for the current texture.
+ /// The format support for the current texture type.
+ /// Whether the texture can be used as a render target.
private protected Texture2D(GraphicsDevice device, int width, int height, ResourceType resourceType, D3D12_FORMAT_SUPPORT1 d3D12FormatSupport, bool isRenderTarget)
{
using ReferenceTracker.Lease _0 = ReferenceTracker.Create(this, out this.referenceTracker);
@@ -195,12 +195,12 @@ public abstract unsafe partial class Texture2D : IReferenceTrackedObject, IGr
}
///
- /// 外部 API が所有する共有リソースをラップする インスタンスを生成します。
+ /// Creates a new instance wrapping a shared resource owned by an external API.
///
- /// 現在のインスタンスに関連付ける 。
- /// ラップ対象の、共有ハンドルから開かれた 。
- /// 現在のテクスチャのリソース種別。
- /// 現在のテクスチャ型のフォーマット サポート。
+ /// The associated with the current instance.
+ /// The opened from a shared handle to wrap.
+ /// The resource type for the current texture.
+ /// The format support for the current texture type.
private protected Texture2D(GraphicsDevice device, ID3D12Resource* d3D12Resource, ResourceType resourceType, D3D12_FORMAT_SUPPORT1 d3D12FormatSupport)
{
using ReferenceTracker.Lease _0 = ReferenceTracker.Create(this, out this.referenceTracker);
diff --git a/src/ComputeSharp/Graphics/Resources/ReadOnlyTexture2D{T}.cs b/src/ComputeSharp/Graphics/Resources/ReadOnlyTexture2D{T}.cs
index 704ea8c4..71c75307 100644
--- a/src/ComputeSharp/Graphics/Resources/ReadOnlyTexture2D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/ReadOnlyTexture2D{T}.cs
@@ -29,21 +29,21 @@ public sealed class ReadOnlyTexture2D : Texture2D
}
///
- /// クロス API 共有が可能な インスタンスを生成します。
+ /// Creates a new instance that can be shared across APIs.
///
- /// 現在のインスタンスに関連付ける 。
- /// テクスチャの幅。
- /// テクスチャの高さ。
+ /// The associated with the current instance.
+ /// The width of the texture.
+ /// The height of the texture.
internal ReadOnlyTexture2D(GraphicsDevice device, int width, int height)
: base(device, width, height, ResourceType.ReadOnly, D3D12_FORMAT_SUPPORT1_TEXTURE2D, false)
{
}
///
- /// 外部 API が所有する共有リソースをラップする インスタンスを生成します。
+ /// Creates a new instance wrapping a shared resource owned by an external API.
///
- /// 現在のインスタンスに関連付ける 。
- /// ラップ対象の、共有ハンドルから開かれた 。
+ /// The associated with the current instance.
+ /// The opened from a shared handle to wrap.
internal unsafe ReadOnlyTexture2D(GraphicsDevice device, ID3D12Resource* d3D12Resource)
: base(device, d3D12Resource, ResourceType.ReadOnly, D3D12_FORMAT_SUPPORT1_TEXTURE2D)
{
diff --git a/src/ComputeSharp/Graphics/Resources/ReadWriteTexture2D{T}.cs b/src/ComputeSharp/Graphics/Resources/ReadWriteTexture2D{T}.cs
index 89008580..325b5d3b 100644
--- a/src/ComputeSharp/Graphics/Resources/ReadWriteTexture2D{T}.cs
+++ b/src/ComputeSharp/Graphics/Resources/ReadWriteTexture2D{T}.cs
@@ -29,21 +29,21 @@ public sealed partial class ReadWriteTexture2D : Texture2D
}
///
- /// クロス API 共有が可能な インスタンスを生成します。
+ /// Creates a new instance that can be shared across APIs.
///
- /// 現在のインスタンスに関連付ける 。
- /// テクスチャの幅。
- /// テクスチャの高さ。
+ /// The associated with the current instance.
+ /// The width of the texture.
+ /// The height of the texture.
internal ReadWriteTexture2D(GraphicsDevice device, int width, int height)
: base(device, width, height, ResourceType.ReadWrite, D3D12_FORMAT_SUPPORT1_TEXTURE2D | D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW, false)
{
}
///
- /// 外部 API が所有する共有リソースをラップする インスタンスを生成します。
+ /// Creates a new instance wrapping a shared resource owned by an external API.
///
- /// 現在のインスタンスに関連付ける 。
- /// ラップ対象の、共有ハンドルから開かれた 。
+ /// The associated with the current instance.
+ /// The opened from a shared handle to wrap.
internal unsafe ReadWriteTexture2D(GraphicsDevice device, ID3D12Resource* d3D12Resource)
: base(device, d3D12Resource, ResourceType.ReadWrite, D3D12_FORMAT_SUPPORT1_TEXTURE2D | D3D12_FORMAT_SUPPORT1_TYPED_UNORDERED_ACCESS_VIEW)
{
diff --git a/src/ComputeSharp/Shaders/ComputeContext.cs b/src/ComputeSharp/Shaders/ComputeContext.cs
index be58d629..5ab62da4 100644
--- a/src/ComputeSharp/Shaders/ComputeContext.cs
+++ b/src/ComputeSharp/Shaders/ComputeContext.cs
@@ -367,14 +367,14 @@ public struct ComputeContext : IDisposable, IAsyncDisposable
}
///
- /// 現在のコンテキストに記録されたコマンドをGPUへ送信します。
+ /// Submits the commands recorded in the current context to the GPU.
///
///
- /// 通常はGPUでの完了を待たずに戻ります。内部の保留上限に達した場合は、最古の送信が完了するまで待機します。
- /// コンテキストが参照するすべてのGPUリソースは、共有フェンスなどで送信した処理の完了を確認するまで保持する必要があります。
- /// このメソッドを呼び出した後、スコープ終端のおよびは何も行いません。
+ /// This method normally returns without waiting for the GPU to complete. If the internal pending limit is reached, it waits until the oldest submission has completed.
+ /// All GPU resources referenced by the context must be kept alive until the submitted work is confirmed to be completed, such as with a shared fence.
+ /// After calling this method, and at the end of the scope do nothing.
///
- /// コンテキストが既に破棄または送信されている場合にスローされます。
+ /// Thrown if the context has already been disposed or submitted.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Submit()
{
diff --git a/src/ComputeSharp/Shaders/Dispatching/D3D12GraphicsCommandListGraphicsResourceLoader.cs b/src/ComputeSharp/Shaders/Dispatching/D3D12GraphicsCommandListGraphicsResourceLoader.cs
index b587b1dc..b307176a 100644
--- a/src/ComputeSharp/Shaders/Dispatching/D3D12GraphicsCommandListGraphicsResourceLoader.cs
+++ b/src/ComputeSharp/Shaders/Dispatching/D3D12GraphicsCommandListGraphicsResourceLoader.cs
@@ -49,7 +49,7 @@ internal readonly unsafe struct D3D12GraphicsCommandListGraphicsResourceLoader :
/// The object to use.
/// The instance that is tied to.
/// The offset into the compute root descriptor table for loaded resources.
- /// 読み込んだリソースのリースを保持する インスタンス。
+ /// The instance holding the leases for loaded resources.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal D3D12GraphicsCommandListGraphicsResourceLoader(
ID3D12GraphicsCommandList* d3D12GraphicsCommandList,