mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 21:11:20 -08:00
buffer_cache: Avoid [[nodiscard]] to make clang-format happy
This commit is contained in:
parent
83050c9495
commit
79a23ca5f0
@ -110,9 +110,8 @@ public:
|
|||||||
MarkedForDestruction().clear();
|
MarkedForDestruction().clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] BufferInfo UploadMemory(GPUVAddr gpu_addr, std::size_t size,
|
BufferInfo UploadMemory(GPUVAddr gpu_addr, std::size_t size, std::size_t alignment = 4,
|
||||||
std::size_t alignment = 4, bool internalize = false,
|
bool internalize = false, bool is_written = false) {
|
||||||
bool is_written = false) {
|
|
||||||
std::lock_guard lock{RasterizerCache<Buffer>::mutex};
|
std::lock_guard lock{RasterizerCache<Buffer>::mutex};
|
||||||
|
|
||||||
auto& memory_manager = system.GPU().MemoryManager();
|
auto& memory_manager = system.GPU().MemoryManager();
|
||||||
@ -145,7 +144,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Uploads from a host memory. Returns the OpenGL buffer where it's located and its offset.
|
/// Uploads from a host memory. Returns the OpenGL buffer where it's located and its offset.
|
||||||
[[nodiscard]] BufferInfo UploadHostMemory(const void* raw_pointer, std::size_t size,
|
BufferInfo UploadHostMemory(const void* raw_pointer, std::size_t size,
|
||||||
std::size_t alignment = 4) {
|
std::size_t alignment = 4) {
|
||||||
std::lock_guard lock{RasterizerCache<Buffer>::mutex};
|
std::lock_guard lock{RasterizerCache<Buffer>::mutex};
|
||||||
return StreamBufferUpload(raw_pointer, size, alignment);
|
return StreamBufferUpload(raw_pointer, size, alignment);
|
||||||
|
Loading…
Reference in New Issue
Block a user