예제 #1
0
파일: Buffer.cs 프로젝트: historria/Ryujinx
 /// <summary>
 /// Indicate that mofifications in a given region of this buffer have been overwritten.
 /// </summary>
 /// <param name="address">The start address of the region</param>
 /// <param name="size">The size of the region</param>
 public void ClearModified(ulong address, ulong size)
 {
     if (_modifiedRanges != null)
     {
         _modifiedRanges.Clear(address, size);
     }
 }
예제 #2
0
        /// <summary>
        /// Called when part of the memory for this buffer has been unmapped.
        /// Calls are from non-GPU threads.
        /// </summary>
        /// <param name="address">Start address of the unmapped region</param>
        /// <param name="size">Size of the unmapped region</param>
        public void Unmapped(ulong address, ulong size)
        {
            BufferModifiedRangeList modifiedRanges = _modifiedRanges;

            modifiedRanges?.Clear(address, size);

            UnmappedSequence++;
        }
예제 #3
0
 /// <summary>
 /// Called when part of the memory for this buffer has been unmapped.
 /// Calls are from non-GPU threads.
 /// </summary>
 /// <param name="address">Start address of the unmapped region</param>
 /// <param name="size">Size of the unmapped region</param>
 public void Unmapped(ulong address, ulong size)
 {
     _modifiedRanges?.Clear(address, size);
 }