/// <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); } }
/// <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++; }
/// <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); }