29#include <EASTL/algorithm.h>
58template <
size_t N = 4096, Safe safety = Safe::Yes>
84 template <Fragment Frag>
90 z = eastl::clamp(z, int32_t(0), int32_t(N - 1));
92 *head = (frag.getActualFragmentSize() << 24) | table[z];
93 table[z] =
reinterpret_cast<uint32_t>(head) & 0xffffff;
The singleton GPU class.
Definition gpu.hh:88
Definition ordering-table.hh:39
static void clear(uint32_t *table, size_t size)
Definition ordering-table.cpp:29
The ordering table. Used to sort fragments before sending them to the GPU.
Definition ordering-table.hh:59
void insert(Frag &frag, int32_t z)
Inserts a fragment into the ordering table.
Definition ordering-table.hh:85
OrderingTable()
Definition ordering-table.hh:61
void clear()
Clears the ordering table.
Definition ordering-table.hh:71
Definition cdrom-loader.hh:39
static int size
Definition string.h:32
void uint32_t(classId, spec)