Minor code refactoring
このコミットが含まれているのは:
1 親
e056d58d4a
コミット
111bcec623
4ファイル変更
+51
-80
検索条件に一致するファイルはありません
@@ -95,47 +95,38 @@ namespace ComputeSharp.Graphics.Commands
|
||||
/// Copies a texture memory region from one resource (a buffer) to another (a texture).
|
||||
/// </summary>
|
||||
/// <param name="d3D12ResourceDestination">The destination <see cref="ID3D12Resource"/> (a texture) to write to.</param>
|
||||
/// <param name="dxgiFormat">The <see cref="DXGI_FORMAT"/> parameter curreently in use by the texture.</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 write to.</param>
|
||||
/// <param name="height">The height of the memory area to write to.</param>
|
||||
/// <param name="depth">The depth of the memory area to write to.</param>
|
||||
/// <param name="d3D12ResourceSource">The source <see cref="ID3D12Resource"/> (a buffer) to read from.</param>
|
||||
/// <param name="elementSizeInBytes">The size of each element to copy.</param>
|
||||
/// <param name="d3D12PlacedSubresourceFootprintSource">The <see cref="D3D12_PLACED_SUBRESOURCE_FOOTPRINT"/> value describing <paramref name="d3D12ResourceSource"/>.</param>
|
||||
|
||||
public readonly void CopyTextureRegion(
|
||||
ID3D12Resource* d3D12ResourceDestination,
|
||||
DXGI_FORMAT dxgiFormat,
|
||||
uint x,
|
||||
uint y,
|
||||
ushort z,
|
||||
uint width,
|
||||
uint height,
|
||||
ushort depth,
|
||||
ID3D12Resource* d3D12ResourceSource,
|
||||
uint elementSizeInBytes)
|
||||
D3D12_PLACED_SUBRESOURCE_FOOTPRINT* d3D12PlacedSubresourceFootprintSource)
|
||||
{
|
||||
this.d3D12GraphicsCommandList.Get()->CopyTextureRegion(d3D12ResourceDestination, dxgiFormat, x, y, z, width, height, depth, d3D12ResourceSource, elementSizeInBytes);
|
||||
this.d3D12GraphicsCommandList.Get()->CopyTextureRegion(d3D12ResourceDestination, x, y, z, d3D12ResourceSource, d3D12PlacedSubresourceFootprintSource);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies a texture memory region from one resource (a texture) to another (a buffer).
|
||||
/// </summary>
|
||||
/// <param name="d3D12ResourceDestination">The destination <see cref="ID3D12Resource"/> (a buffer) to write to.</param>
|
||||
/// <param name="elementSizeInBytes">The size of each element to copy.</param>
|
||||
/// <param name="d3D12PlacedSubresourceFootprintDestination">The <see cref="D3D12_PLACED_SUBRESOURCE_FOOTPRINT"/> value describing <paramref name="d3D12ResourceDestination"/>.</param>
|
||||
/// <param name="d3D12ResourceSource">The source <see cref="ID3D12Resource"/> (a texture) to read from.</param>
|
||||
/// <param name="dxgiFormat">The <see cref="DXGI_FORMAT"/> parameter curreently in use by the texture.</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="width">The width of the memory area to write to.</param>
|
||||
/// <param name="height">The height of the memory area to write to.</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>
|
||||
public readonly void CopyTextureRegion(
|
||||
ID3D12Resource* d3D12ResourceDestination,
|
||||
uint elementSizeInBytes,
|
||||
D3D12_PLACED_SUBRESOURCE_FOOTPRINT* d3D12PlacedSubresourceFootprintDestination,
|
||||
ID3D12Resource* d3D12ResourceSource,
|
||||
DXGI_FORMAT dxgiFormat,
|
||||
uint x,
|
||||
uint y,
|
||||
ushort z,
|
||||
@@ -143,7 +134,7 @@ namespace ComputeSharp.Graphics.Commands
|
||||
uint height,
|
||||
ushort depth)
|
||||
{
|
||||
this.d3D12GraphicsCommandList.Get()->CopyTextureRegion(d3D12ResourceDestination, elementSizeInBytes, d3D12ResourceSource, dxgiFormat, x, y, z, width, height, depth);
|
||||
this.d3D12GraphicsCommandList.Get()->CopyTextureRegion(d3D12ResourceDestination, d3D12PlacedSubresourceFootprintDestination, d3D12ResourceSource, x, y, z, width, height, depth);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする