mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-26 04:06:32 +00:00
StreamBuffer: Use std::array for fences
This commit is contained in:
parent
7b69fec8e7
commit
1eea95a5be
2 changed files with 13 additions and 12 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <utility>
|
||||
|
||||
#include "Common/GL/GLUtil.h"
|
||||
|
@ -59,11 +60,11 @@ protected:
|
|||
u32 m_free_iterator;
|
||||
|
||||
private:
|
||||
static const int SYNC_POINTS = 16;
|
||||
static constexpr int SYNC_POINTS = 16;
|
||||
int SLOT(u32 x) const { return x >> m_bit_per_slot; }
|
||||
const int m_bit_per_slot;
|
||||
|
||||
GLsync fences[SYNC_POINTS];
|
||||
std::array<GLsync, SYNC_POINTS> m_fences{};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue