Torch
Loading...
Searching...
No Matches
PackedDisplayListFactory.h
1#pragma once
2
3#include "../BaseFactory.h"
4#include "../DisplayListFactory.h" // Reuse DList exporters and data shape
5
6namespace MK64 {
7// Factory to expand MK64 packed DL bytecode into regular Gfx commands
9public:
10 std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data) override;
11 std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters() override {
12 return {
13 REGISTER(Header, DListHeaderExporter)
14 REGISTER(Binary, DListBinaryExporter)
15 #ifdef STANDALONE
16 REGISTER(Code, DListCodeExporter)
17 #endif
18 };
19 }
20 uint32_t GetAlignment() override { return 0; }
21};
22}
Definition BaseFactory.h:94
Definition DisplayListFactory.h:19
Definition DisplayListFactory.h:15
Definition PackedDisplayListFactory.h:8