diff --git a/src/Graphics/CommandBuffer.cs b/src/Graphics/CommandBuffer.cs index 19f56b1..c93ca99 100644 --- a/src/Graphics/CommandBuffer.cs +++ b/src/Graphics/CommandBuffer.cs @@ -765,6 +765,22 @@ namespace MoonWorks.Graphics } } + public void SetBufferData( + Buffer buffer, + IntPtr dataPtr, + uint bufferOffsetInElements, + uint numElements + ) { + Refresh.Refresh_SetBufferData( + Device.Handle, + Handle, + buffer.Handle, + (uint) Marshal.SizeOf() * bufferOffsetInElements, + dataPtr, + (uint) Marshal.SizeOf() * numElements + ); + } + /// /// Asynchronously copies data into a texture. ///