v0.3.0 API Reference
PacketSorter.h
1//
2// PacketSorter.h
3// avara3d
4//
5// Created by Morgan Davis on 1/4/26.
6// Copyright © 2026 Morgan K Davis. All rights reserved.
7//
8
9#ifndef AVARA3D_RENDER_PACKETSORTER_H
10#define AVARA3D_RENDER_PACKETSORTER_H
11
12#include <cstdint>
13
14namespace a3d {
15
16struct DrawItem;
17struct DrawPacket;
18
19class PacketSorter {
20
21public:
22 // [Internal Static Member Functions]
23
24 static uint64_t MakeBatchKey(const DrawItem& item);
25 static void SortPacket(DrawPacket& packet);
26};
27
28} // namespace a3d
29
30#endif // AVARA3D_RENDER_PACKETSORTER_H