Fixed some rebase errors

このコミットが含まれているのは:
Sergio Pedri committed 2021-03-05 17:40:12 +01:00
1 親 9048571616
コミット ed952e0fdb
3ファイル変更
+6 -4

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

+4 -4
ファイルの表示
@@ -59,11 +59,11 @@ namespace ComputeSharp.Resources
byteOffset = (nint)offset * sizeof(T),
byteLength = length * sizeof(T);
using UniquePtr<Allocation> allocation = GraphicsDevice.Allocator->CreateResource(ResourceType.ReadBack, AllocationMode.Default, (ulong)byteSize);
using UniquePtr<Allocation> allocation = GraphicsDevice.Allocator->CreateResource(ResourceType.ReadBack, AllocationMode.Default, (ulong)byteLength);
using (CommandList copyCommandList = new(GraphicsDevice, D3D12_COMMAND_LIST_TYPE_COPY))
{
copyCommandList.D3D12GraphicsCommandList->CopyBufferRegion(allocation.Get()->GetResource(), 0, D3D12Resource, (ulong)byteOffset, (ulong)byteSize);
copyCommandList.D3D12GraphicsCommandList->CopyBufferRegion(allocation.Get()->GetResource(), 0, D3D12Resource, (ulong)byteOffset, (ulong)byteLength);
copyCommandList.ExecuteAndWaitForCompletion();
}
@@ -157,7 +157,7 @@ namespace ComputeSharp.Resources
byteOffset = (nint)offset * sizeof(T),
byteLength = length * sizeof(T);
using UniquePtr<Allocation> allocation = GraphicsDevice.Allocator->CreateResource(ResourceType.Upload, AllocationMode.Default, (ulong)byteSize);
using UniquePtr<Allocation> allocation = GraphicsDevice.Allocator->CreateResource(ResourceType.Upload, AllocationMode.Default, (ulong)byteLength);
using (ID3D12ResourceMap resource = allocation.Get()->GetResource()->Map())
fixed (void* sourcePointer = &source)
@@ -172,7 +172,7 @@ namespace ComputeSharp.Resources
using CommandList copyCommandList = new(GraphicsDevice, D3D12_COMMAND_LIST_TYPE_COPY);
copyCommandList.D3D12GraphicsCommandList->CopyBufferRegion(D3D12Resource, (ulong)byteOffset, allocation.Get()->GetResource(), 0, (ulong)byteSize);
copyCommandList.D3D12GraphicsCommandList->CopyBufferRegion(D3D12Resource, (ulong)byteOffset, allocation.Get()->GetResource(), 0, (ulong)byteLength);
copyCommandList.ExecuteAndWaitForCompletion();
}
}
+1
ファイルの表示
@@ -57,6 +57,7 @@ namespace ComputeSharp.Resources
/// </summary>
private readonly D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint;
/// <summary>
/// The <see cref="Allocation"/> instance used to retrieve <see cref="d3D12Resource"/>, if any.
/// </summary>
/// <remarks>This will be <see langword="null"/> if the owning device has <see cref="GraphicsDevice.IsCacheCoherentUMA"/> set.</remarks>
+1
ファイルの表示
@@ -57,6 +57,7 @@ namespace ComputeSharp.Resources
/// </summary>
private readonly D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint;
/// <summary>
/// The <see cref="Allocation"/> instance used to retrieve <see cref="d3D12Resource"/>, if any.
/// </summary>
/// <remarks>This will be <see langword="null"/> if the owning device has <see cref="GraphicsDevice.IsCacheCoherentUMA"/> set.</remarks>