Avara3D 0.2.0
C++ 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
16 struct DrawItem;
17 struct DrawPacket;
18
19 class PacketSorter {
20
21 public:
22 // [Internal Static Member Functions]
23
24 static uint64_t MakeBatchKey(const DrawItem& item);
25 static void SortPacket(DrawPacket& packet);
26 };
27
28}
29
30#endif // AVARA3D_RENDER_PACKETSORTER_H