Implement QuadList support for non-indexed draws

This commit is contained in:
lynxnb
2022-04-20 11:26:06 +02:00
parent bcaf7dfe1c
commit 0d9992cb8e
6 changed files with 117 additions and 13 deletions

View File

@ -87,6 +87,16 @@ namespace skyline::gpu {
return backing.vkBuffer;
}
/**
* @return A span over the backing of this buffer
* @note This operation **must** be performed only on host-only buffers since synchronization is handled internally for guest-backed buffers
*/
span<u8> GetBackingSpan() {
if (guest)
throw exception("Attempted to get a span of a guest-backed buffer");
return span<u8>(backing);
}
Buffer(GPU &gpu, GuestBuffer guest);
/**