Add more fine-grained buffer recreation locking

This commit is contained in:
Billy Laws
2023-01-09 21:16:23 +00:00
parent 85a23e73ba
commit 2b282ece1a
8 changed files with 52 additions and 33 deletions

View File

@ -492,6 +492,13 @@ namespace skyline::gpu {
*/
vk::DeviceSize GetOffset() const;
/**
* @return A binding describing the underlying buffer state at a given moment in time
* @note The view **must** be locked prior to calling this
* @note This is the **ONLY** function in BufferView that can be called from non-GPFIFO threads
*/
BufferBinding GetBinding(GPU &gpu) const;
/**
* @note The buffer manager **MUST** be locked prior to calling this
*/