mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-23 15:22:45 +01:00
buffer_queue: Make use of designated initializers
This commit is contained in:
parent
05781ce8c4
commit
24bd068a08
1 changed files with 5 additions and 5 deletions
|
@ -24,13 +24,13 @@ BufferQueue::~BufferQueue() = default;
|
||||||
void BufferQueue::SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer) {
|
void BufferQueue::SetPreallocatedBuffer(u32 slot, const IGBPBuffer& igbp_buffer) {
|
||||||
LOG_WARNING(Service, "Adding graphics buffer {}", slot);
|
LOG_WARNING(Service, "Adding graphics buffer {}", slot);
|
||||||
|
|
||||||
Buffer buffer{};
|
|
||||||
buffer.slot = slot;
|
|
||||||
buffer.igbp_buffer = igbp_buffer;
|
|
||||||
buffer.status = Buffer::Status::Free;
|
|
||||||
free_buffers.push_back(slot);
|
free_buffers.push_back(slot);
|
||||||
|
queue.push_back({
|
||||||
|
.slot = slot,
|
||||||
|
.status = Buffer::Status::Free,
|
||||||
|
.igbp_buffer = igbp_buffer,
|
||||||
|
});
|
||||||
|
|
||||||
queue.emplace_back(buffer);
|
|
||||||
buffer_wait_event.writable->Signal();
|
buffer_wait_event.writable->Signal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue