diff --git a/src/ComputeSharp.Graphics/Buffers/Abstract/Buffer{T}.cs b/src/ComputeSharp.Graphics/Buffers/Abstract/Buffer{T}.cs index c502dbf9..106501bc 100644 --- a/src/ComputeSharp.Graphics/Buffers/Abstract/Buffer{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/Abstract/Buffer{T}.cs @@ -112,7 +112,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract /// The input memory area to write data to. /// The size of the memory area to write data to. /// The offset to start reading data from. - internal abstract void GetData(ref T destination, nint size, int offset); + internal abstract void GetData(ref T destination, int size, int offset); /// /// Writes the contents of a given memory area to a specified area of the current instance. @@ -120,7 +120,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract /// The input memory area to read data from. /// The size of the input memory area to read data from. /// The offset to start writing data to. - internal abstract void SetData(ref T source, nint size, int offset); + internal abstract void SetData(ref T source, int size, int offset); /// /// Writes the contents of a given to the current instance. diff --git a/src/ComputeSharp.Graphics/Buffers/Abstract/StructuredBuffer{T}.cs b/src/ComputeSharp.Graphics/Buffers/Abstract/StructuredBuffer{T}.cs index 3e73a1c7..2ede7c03 100644 --- a/src/ComputeSharp.Graphics/Buffers/Abstract/StructuredBuffer{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/Abstract/StructuredBuffer{T}.cs @@ -28,7 +28,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract } /// - internal override unsafe void GetData(ref T destination, nint size, int offset) + internal override unsafe void GetData(ref T destination, int size, int offset) { GraphicsDevice.ThrowIfDisposed(); @@ -80,7 +80,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract } /// - internal override unsafe void SetData(ref T source, nint size, int offset) + internal override unsafe void SetData(ref T source, int size, int offset) { GraphicsDevice.ThrowIfDisposed(); diff --git a/src/ComputeSharp.Graphics/Buffers/Abstract/Texture2D{T}.cs b/src/ComputeSharp.Graphics/Buffers/Abstract/Texture2D{T}.cs index d8849e0f..ffeec2e7 100644 --- a/src/ComputeSharp.Graphics/Buffers/Abstract/Texture2D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/Abstract/Texture2D{T}.cs @@ -127,7 +127,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract /// The vertical offset in the source texture. /// The width of the memory area to copy. /// The height of the memory area to copy. - internal void GetData(ref T destination, nint size, int x, int y, int width, int height) + internal void GetData(ref T destination, int size, int x, int y, int width, int height) { GraphicsDevice.ThrowIfDisposed(); @@ -199,7 +199,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract /// The vertical offset in the destination texture. /// The width of the memory area to write to. /// The height of the memory area to write to. - internal void SetData(ref T source, nint size, int x, int y, int width, int height) + internal void SetData(ref T source, int size, int x, int y, int width, int height) { GraphicsDevice.ThrowIfDisposed(); diff --git a/src/ComputeSharp.Graphics/Buffers/Abstract/Texture3D{T}.cs b/src/ComputeSharp.Graphics/Buffers/Abstract/Texture3D{T}.cs index abe74bc4..95600e7f 100644 --- a/src/ComputeSharp.Graphics/Buffers/Abstract/Texture3D{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/Abstract/Texture3D{T}.cs @@ -138,7 +138,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract /// The width of the memory area to copy. /// The height of the memory area to copy. /// The depth of the memory area to copy. - internal void GetData(ref T destination, nint size, int x, int y, int z, int width, int height, int depth) + internal void GetData(ref T destination, int size, int x, int y, int z, int width, int height, int depth) { GraphicsDevice.ThrowIfDisposed(); @@ -217,7 +217,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract /// The width of the memory area to write to. /// The height of the memory area to write to. /// The depth of the memory area to write to. - internal void SetData(ref T source, nint size, int x, int y, int z, int width, int height, int depth) + internal void SetData(ref T source, int size, int x, int y, int z, int width, int height, int depth) { GraphicsDevice.ThrowIfDisposed(); diff --git a/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs b/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs index e95116b7..fe2ef679 100644 --- a/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs +++ b/src/ComputeSharp.Graphics/Buffers/ConstantBuffer{T}.cs @@ -59,7 +59,7 @@ namespace ComputeSharp } /// - internal override unsafe void GetData(ref T destination, nint size, int offset) + internal override unsafe void GetData(ref T destination, int size, int offset) { GraphicsDevice.ThrowIfDisposed(); @@ -94,7 +94,7 @@ namespace ComputeSharp } /// - internal override unsafe void SetData(ref T source, nint size, int offset) + internal override unsafe void SetData(ref T source, int size, int offset) { GraphicsDevice.ThrowIfDisposed();