Fixed ConstantBuffer<T>.CopyTo(Buffer<T>) method

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-16 01:19:38 +01:00
1 親 e8f9d918dc
コミット 49e648286f
3ファイル変更
+49 -40

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

+5 -3
ファイルの表示
@@ -199,12 +199,14 @@ namespace ComputeSharp.Resources
{
GraphicsDevice.ThrowIfDisposed();
ThrowIfDeviceMismatch(source.GraphicsDevice);
ThrowIfDisposed();
source.ThrowIfDeviceMismatch(GraphicsDevice);
source.ThrowIfDisposed();
if (!source.IsPaddingPresent &&
source.GraphicsDevice == GraphicsDevice)
Guard.IsLessThanOrEqualTo(source.Length, Length, nameof(Length));
if (!source.IsPaddingPresent)
{
// Directly copy the input buffer
using CommandList copyCommandList = new(GraphicsDevice, D3D12_COMMAND_LIST_TYPE_COPY);