From fd529f04ce5929ec54ce070608608f799aa2e022 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sat, 18 May 2024 13:53:38 +0100 Subject: [PATCH] Docs --- src/Ryujinx.Graphics.Gpu/Memory/Buffer.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Gpu/Memory/Buffer.cs b/src/Ryujinx.Graphics.Gpu/Memory/Buffer.cs index e850f3bca1..e060e0b4f8 100644 --- a/src/Ryujinx.Graphics.Gpu/Memory/Buffer.cs +++ b/src/Ryujinx.Graphics.Gpu/Memory/Buffer.cs @@ -629,6 +629,13 @@ namespace Ryujinx.Graphics.Gpu.Memory _context.Renderer.Pipeline.CopyBuffer(Handle, destination.Handle, 0, dstOffset, (int)Size); } + /// + /// Flushes a range of the buffer. + /// This writes the range data back into guest memory. + /// + /// Buffer handle to flush data from + /// Start address of the range + /// Size in bytes of the range private void FlushImpl(BufferHandle handle, ulong address, ulong size) { int offset = (int)(address - Address); @@ -639,13 +646,19 @@ namespace Ryujinx.Graphics.Gpu.Memory _physicalMemory.WriteUntracked(address, CopyFromDependantVirtualBuffers(data.Get(), address, size)); } + /// + /// Flushes a range of the buffer. + /// This writes the range data back into guest memory. + /// + /// Start address of the range + /// Size in bytes of the range private void FlushImpl(ulong address, ulong size) { FlushImpl(Handle, address, size); } /// - /// Flushes a range of the buffer. + /// Flushes a range of the buffer from the most optimal source. /// This writes the range data back into guest memory. /// /// Start address of the range