diff --git a/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs b/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs index 0deb2358..4d50c4bd 100644 --- a/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs @@ -84,11 +84,8 @@ namespace ComputeSharp Unsafe.As(ref Unsafe.Add(ref untypedDest, i * GetPaddedSize())) = Unsafe.Add(ref src, i); } } - else - { - // Directly copy the input span if there is no padding - MemoryHelper.Copy(span, resource.Pointer, offset, count); - } + // Directly copy as there is no padding + else MemoryHelper.Copy(span, resource.Pointer, offset, count); } ///