Skip to content

Commit

Permalink
Expose less Update methods from VeldridVertexBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 19, 2023
1 parent f9c72ae commit 8716e1f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions osu.Framework/Graphics/Veldrid/Buffers/VeldridVertexBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected virtual void Initialise()
memoryLease = NativeMemoryTracker.AddMemory(this, gpuBuffer.SizeInBytes);

// Ensure the device buffer is initialised to 0.
Update();
UpdateRange(0, Size);
}

~VeldridVertexBuffer()
Expand Down Expand Up @@ -134,12 +134,7 @@ public void DrawRange(int startIndex, int endIndex)
Unbind();
}

public void Update()
{
UpdateRange(0, Size);
}

public void UpdateRange(int startIndex, int endIndex)
internal void UpdateRange(int startIndex, int endIndex)
{
if (gpuBuffer == null)
Initialise();
Expand Down

0 comments on commit 8716e1f

Please sign in to comment.