gfxd_sys/
macro_id.rs

1/* SPDX-FileCopyrightText: © 2025 Decompollaborate */
2/* SPDX-License-Identifier: MIT */
3
4//! Macro ids
5
6pub const gfxd_Invalid: MacroId = MacroId::gfxd_Invalid;
7pub const gfxd_DPFillRectangle: MacroId = MacroId::gfxd_DPFillRectangle;
8pub const gfxd_DPFullSync: MacroId = MacroId::gfxd_DPFullSync;
9pub const gfxd_DPLoadSync: MacroId = MacroId::gfxd_DPLoadSync;
10pub const gfxd_DPTileSync: MacroId = MacroId::gfxd_DPTileSync;
11pub const gfxd_DPPipeSync: MacroId = MacroId::gfxd_DPPipeSync;
12pub const gfxd_DPLoadTLUT_pal16: MacroId = MacroId::gfxd_DPLoadTLUT_pal16;
13pub const gfxd_DPLoadTLUT_pal256: MacroId = MacroId::gfxd_DPLoadTLUT_pal256;
14pub const gfxd_DPLoadMultiBlockYuvS: MacroId = MacroId::gfxd_DPLoadMultiBlockYuvS;
15pub const gfxd_DPLoadMultiBlockYuv: MacroId = MacroId::gfxd_DPLoadMultiBlockYuv;
16pub const gfxd_DPLoadMultiBlock_4bS: MacroId = MacroId::gfxd_DPLoadMultiBlock_4bS;
17pub const gfxd_DPLoadMultiBlock_4b: MacroId = MacroId::gfxd_DPLoadMultiBlock_4b;
18pub const gfxd_DPLoadMultiBlockS: MacroId = MacroId::gfxd_DPLoadMultiBlockS;
19pub const gfxd_DPLoadMultiBlock: MacroId = MacroId::gfxd_DPLoadMultiBlock;
20pub const gfxd__DPLoadTextureBlockYuvS: MacroId = MacroId::gfxd__DPLoadTextureBlockYuvS;
21pub const gfxd__DPLoadTextureBlockYuv: MacroId = MacroId::gfxd__DPLoadTextureBlockYuv;
22pub const gfxd__DPLoadTextureBlock_4bS: MacroId = MacroId::gfxd__DPLoadTextureBlock_4bS;
23pub const gfxd__DPLoadTextureBlock_4b: MacroId = MacroId::gfxd__DPLoadTextureBlock_4b;
24pub const gfxd__DPLoadTextureBlockS: MacroId = MacroId::gfxd__DPLoadTextureBlockS;
25pub const gfxd__DPLoadTextureBlock: MacroId = MacroId::gfxd__DPLoadTextureBlock;
26pub const gfxd_DPLoadTextureBlockYuvS: MacroId = MacroId::gfxd_DPLoadTextureBlockYuvS;
27pub const gfxd_DPLoadTextureBlockYuv: MacroId = MacroId::gfxd_DPLoadTextureBlockYuv;
28pub const gfxd_DPLoadTextureBlock_4bS: MacroId = MacroId::gfxd_DPLoadTextureBlock_4bS;
29pub const gfxd_DPLoadTextureBlock_4b: MacroId = MacroId::gfxd_DPLoadTextureBlock_4b;
30pub const gfxd_DPLoadTextureBlockS: MacroId = MacroId::gfxd_DPLoadTextureBlockS;
31pub const gfxd_DPLoadTextureBlock: MacroId = MacroId::gfxd_DPLoadTextureBlock;
32pub const gfxd_DPLoadMultiTileYuv: MacroId = MacroId::gfxd_DPLoadMultiTileYuv;
33pub const gfxd_DPLoadMultiTile_4b: MacroId = MacroId::gfxd_DPLoadMultiTile_4b;
34pub const gfxd_DPLoadMultiTile: MacroId = MacroId::gfxd_DPLoadMultiTile;
35pub const gfxd__DPLoadTextureTileYuv: MacroId = MacroId::gfxd__DPLoadTextureTileYuv;
36pub const gfxd__DPLoadTextureTile_4b: MacroId = MacroId::gfxd__DPLoadTextureTile_4b;
37pub const gfxd__DPLoadTextureTile: MacroId = MacroId::gfxd__DPLoadTextureTile;
38pub const gfxd_DPLoadTextureTileYuv: MacroId = MacroId::gfxd_DPLoadTextureTileYuv;
39pub const gfxd_DPLoadTextureTile_4b: MacroId = MacroId::gfxd_DPLoadTextureTile_4b;
40pub const gfxd_DPLoadTextureTile: MacroId = MacroId::gfxd_DPLoadTextureTile;
41pub const gfxd_DPLoadBlock: MacroId = MacroId::gfxd_DPLoadBlock;
42pub const gfxd_DPNoOp: MacroId = MacroId::gfxd_DPNoOp;
43pub const gfxd_DPNoOpTag: MacroId = MacroId::gfxd_DPNoOpTag;
44pub const gfxd_DPPipelineMode: MacroId = MacroId::gfxd_DPPipelineMode;
45pub const gfxd_DPSetBlendColor: MacroId = MacroId::gfxd_DPSetBlendColor;
46pub const gfxd_DPSetEnvColor: MacroId = MacroId::gfxd_DPSetEnvColor;
47pub const gfxd_DPSetFillColor: MacroId = MacroId::gfxd_DPSetFillColor;
48pub const gfxd_DPSetFogColor: MacroId = MacroId::gfxd_DPSetFogColor;
49pub const gfxd_DPSetPrimColor: MacroId = MacroId::gfxd_DPSetPrimColor;
50pub const gfxd_DPSetColorImage: MacroId = MacroId::gfxd_DPSetColorImage;
51pub const gfxd_DPSetDepthImage: MacroId = MacroId::gfxd_DPSetDepthImage;
52pub const gfxd_DPSetTextureImage: MacroId = MacroId::gfxd_DPSetTextureImage;
53pub const gfxd_DPSetAlphaCompare: MacroId = MacroId::gfxd_DPSetAlphaCompare;
54pub const gfxd_DPSetAlphaDither: MacroId = MacroId::gfxd_DPSetAlphaDither;
55pub const gfxd_DPSetColorDither: MacroId = MacroId::gfxd_DPSetColorDither;
56pub const gfxd_DPSetCombineMode: MacroId = MacroId::gfxd_DPSetCombineMode;
57pub const gfxd_DPSetCombineLERP: MacroId = MacroId::gfxd_DPSetCombineLERP;
58pub const gfxd_DPSetConvert: MacroId = MacroId::gfxd_DPSetConvert;
59pub const gfxd_DPSetTextureConvert: MacroId = MacroId::gfxd_DPSetTextureConvert;
60pub const gfxd_DPSetCycleType: MacroId = MacroId::gfxd_DPSetCycleType;
61pub const gfxd_DPSetDepthSource: MacroId = MacroId::gfxd_DPSetDepthSource;
62pub const gfxd_DPSetCombineKey: MacroId = MacroId::gfxd_DPSetCombineKey;
63pub const gfxd_DPSetKeyGB: MacroId = MacroId::gfxd_DPSetKeyGB;
64pub const gfxd_DPSetKeyR: MacroId = MacroId::gfxd_DPSetKeyR;
65pub const gfxd_DPSetPrimDepth: MacroId = MacroId::gfxd_DPSetPrimDepth;
66pub const gfxd_DPSetRenderMode: MacroId = MacroId::gfxd_DPSetRenderMode;
67pub const gfxd_DPSetScissor: MacroId = MacroId::gfxd_DPSetScissor;
68pub const gfxd_DPSetScissorFrac: MacroId = MacroId::gfxd_DPSetScissorFrac;
69pub const gfxd_DPSetTextureDetail: MacroId = MacroId::gfxd_DPSetTextureDetail;
70pub const gfxd_DPSetTextureFilter: MacroId = MacroId::gfxd_DPSetTextureFilter;
71pub const gfxd_DPSetTextureLOD: MacroId = MacroId::gfxd_DPSetTextureLOD;
72pub const gfxd_DPSetTextureLUT: MacroId = MacroId::gfxd_DPSetTextureLUT;
73pub const gfxd_DPSetTexturePersp: MacroId = MacroId::gfxd_DPSetTexturePersp;
74pub const gfxd_DPSetTile: MacroId = MacroId::gfxd_DPSetTile;
75pub const gfxd_DPSetTileSize: MacroId = MacroId::gfxd_DPSetTileSize;
76pub const gfxd_SP1Triangle: MacroId = MacroId::gfxd_SP1Triangle;
77pub const gfxd_SP2Triangles: MacroId = MacroId::gfxd_SP2Triangles;
78pub const gfxd_SP1Quadrangle: MacroId = MacroId::gfxd_SP1Quadrangle;
79pub const gfxd_SPBranchLessZraw: MacroId = MacroId::gfxd_SPBranchLessZraw;
80pub const gfxd_SPBranchList: MacroId = MacroId::gfxd_SPBranchList;
81pub const gfxd_SPClipRatio: MacroId = MacroId::gfxd_SPClipRatio;
82pub const gfxd_SPCullDisplayList: MacroId = MacroId::gfxd_SPCullDisplayList;
83pub const gfxd_SPDisplayList: MacroId = MacroId::gfxd_SPDisplayList;
84pub const gfxd_SPEndDisplayList: MacroId = MacroId::gfxd_SPEndDisplayList;
85pub const gfxd_SPFogFactor: MacroId = MacroId::gfxd_SPFogFactor;
86pub const gfxd_SPFogPosition: MacroId = MacroId::gfxd_SPFogPosition;
87pub const gfxd_SPForceMatrix: MacroId = MacroId::gfxd_SPForceMatrix;
88pub const gfxd_SPSetGeometryMode: MacroId = MacroId::gfxd_SPSetGeometryMode;
89pub const gfxd_SPClearGeometryMode: MacroId = MacroId::gfxd_SPClearGeometryMode;
90pub const gfxd_SPLoadGeometryMode: MacroId = MacroId::gfxd_SPLoadGeometryMode;
91pub const gfxd_SPInsertMatrix: MacroId = MacroId::gfxd_SPInsertMatrix;
92pub const gfxd_SPLine3D: MacroId = MacroId::gfxd_SPLine3D;
93pub const gfxd_SPLineW3D: MacroId = MacroId::gfxd_SPLineW3D;
94pub const gfxd_SPLoadUcode: MacroId = MacroId::gfxd_SPLoadUcode;
95pub const gfxd_SPLookAtX: MacroId = MacroId::gfxd_SPLookAtX;
96pub const gfxd_SPLookAtY: MacroId = MacroId::gfxd_SPLookAtY;
97pub const gfxd_SPLookAt: MacroId = MacroId::gfxd_SPLookAt;
98pub const gfxd_SPMatrix: MacroId = MacroId::gfxd_SPMatrix;
99pub const gfxd_SPModifyVertex: MacroId = MacroId::gfxd_SPModifyVertex;
100pub const gfxd_SPPerspNormalize: MacroId = MacroId::gfxd_SPPerspNormalize;
101pub const gfxd_SPPopMatrix: MacroId = MacroId::gfxd_SPPopMatrix;
102pub const gfxd_SPPopMatrixN: MacroId = MacroId::gfxd_SPPopMatrixN;
103pub const gfxd_SPSegment: MacroId = MacroId::gfxd_SPSegment;
104pub const gfxd_SPSetLights1: MacroId = MacroId::gfxd_SPSetLights1;
105pub const gfxd_SPSetLights2: MacroId = MacroId::gfxd_SPSetLights2;
106pub const gfxd_SPSetLights3: MacroId = MacroId::gfxd_SPSetLights3;
107pub const gfxd_SPSetLights4: MacroId = MacroId::gfxd_SPSetLights4;
108pub const gfxd_SPSetLights5: MacroId = MacroId::gfxd_SPSetLights5;
109pub const gfxd_SPSetLights6: MacroId = MacroId::gfxd_SPSetLights6;
110pub const gfxd_SPSetLights7: MacroId = MacroId::gfxd_SPSetLights7;
111pub const gfxd_SPNumLights: MacroId = MacroId::gfxd_SPNumLights;
112pub const gfxd_SPLight: MacroId = MacroId::gfxd_SPLight;
113pub const gfxd_SPLightColor: MacroId = MacroId::gfxd_SPLightColor;
114pub const gfxd_SPTexture: MacroId = MacroId::gfxd_SPTexture;
115pub const gfxd_SPTextureRectangle: MacroId = MacroId::gfxd_SPTextureRectangle;
116pub const gfxd_SPTextureRectangleFlip: MacroId = MacroId::gfxd_SPTextureRectangleFlip;
117pub const gfxd_SPVertex: MacroId = MacroId::gfxd_SPVertex;
118pub const gfxd_SPViewport: MacroId = MacroId::gfxd_SPViewport;
119pub const gfxd_DPLoadTLUTCmd: MacroId = MacroId::gfxd_DPLoadTLUTCmd;
120pub const gfxd_DPLoadTLUT: MacroId = MacroId::gfxd_DPLoadTLUT;
121pub const gfxd_BranchZ: MacroId = MacroId::gfxd_BranchZ;
122pub const gfxd_DisplayList: MacroId = MacroId::gfxd_DisplayList;
123pub const gfxd_DPHalf1: MacroId = MacroId::gfxd_DPHalf1;
124pub const gfxd_DPHalf2: MacroId = MacroId::gfxd_DPHalf2;
125pub const gfxd_DPWord: MacroId = MacroId::gfxd_DPWord;
126pub const gfxd_DPLoadTile: MacroId = MacroId::gfxd_DPLoadTile;
127pub const gfxd_SPGeometryMode: MacroId = MacroId::gfxd_SPGeometryMode;
128pub const gfxd_SPSetOtherMode: MacroId = MacroId::gfxd_SPSetOtherMode;
129pub const gfxd_SPSetOtherModeLo: MacroId = MacroId::gfxd_SPSetOtherModeLo;
130pub const gfxd_SPSetOtherModeHi: MacroId = MacroId::gfxd_SPSetOtherModeHi;
131pub const gfxd_DPSetOtherMode: MacroId = MacroId::gfxd_DPSetOtherMode;
132pub const gfxd_MoveWd: MacroId = MacroId::gfxd_MoveWd;
133pub const gfxd_MoveMem: MacroId = MacroId::gfxd_MoveMem;
134pub const gfxd_SPDma_io: MacroId = MacroId::gfxd_SPDma_io;
135pub const gfxd_SPDmaRead: MacroId = MacroId::gfxd_SPDmaRead;
136pub const gfxd_SPDmaWrite: MacroId = MacroId::gfxd_SPDmaWrite;
137pub const gfxd_LoadUcode: MacroId = MacroId::gfxd_LoadUcode;
138pub const gfxd_SPLoadUcodeEx: MacroId = MacroId::gfxd_SPLoadUcodeEx;
139pub const gfxd_TexRect: MacroId = MacroId::gfxd_TexRect;
140pub const gfxd_TexRectFlip: MacroId = MacroId::gfxd_TexRectFlip;
141pub const gfxd_SPNoOp: MacroId = MacroId::gfxd_SPNoOp;
142pub const gfxd_Special3: MacroId = MacroId::gfxd_Special3;
143pub const gfxd_Special2: MacroId = MacroId::gfxd_Special2;
144pub const gfxd_Special1: MacroId = MacroId::gfxd_Special1;
145#[repr(u32)]
146#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
147pub enum MacroId {
148    gfxd_Invalid = 0,
149    gfxd_DPFillRectangle = 1,
150    gfxd_DPFullSync = 2,
151    gfxd_DPLoadSync = 3,
152    gfxd_DPTileSync = 4,
153    gfxd_DPPipeSync = 5,
154    gfxd_DPLoadTLUT_pal16 = 6,
155    gfxd_DPLoadTLUT_pal256 = 7,
156    gfxd_DPLoadMultiBlockYuvS = 8,
157    gfxd_DPLoadMultiBlockYuv = 9,
158    gfxd_DPLoadMultiBlock_4bS = 10,
159    gfxd_DPLoadMultiBlock_4b = 11,
160    gfxd_DPLoadMultiBlockS = 12,
161    gfxd_DPLoadMultiBlock = 13,
162    gfxd__DPLoadTextureBlockYuvS = 14,
163    gfxd__DPLoadTextureBlockYuv = 15,
164    gfxd__DPLoadTextureBlock_4bS = 16,
165    gfxd__DPLoadTextureBlock_4b = 17,
166    gfxd__DPLoadTextureBlockS = 18,
167    gfxd__DPLoadTextureBlock = 19,
168    gfxd_DPLoadTextureBlockYuvS = 20,
169    gfxd_DPLoadTextureBlockYuv = 21,
170    gfxd_DPLoadTextureBlock_4bS = 22,
171    gfxd_DPLoadTextureBlock_4b = 23,
172    gfxd_DPLoadTextureBlockS = 24,
173    gfxd_DPLoadTextureBlock = 25,
174    gfxd_DPLoadMultiTileYuv = 26,
175    gfxd_DPLoadMultiTile_4b = 27,
176    gfxd_DPLoadMultiTile = 28,
177    gfxd__DPLoadTextureTileYuv = 29,
178    gfxd__DPLoadTextureTile_4b = 30,
179    gfxd__DPLoadTextureTile = 31,
180    gfxd_DPLoadTextureTileYuv = 32,
181    gfxd_DPLoadTextureTile_4b = 33,
182    gfxd_DPLoadTextureTile = 34,
183    gfxd_DPLoadBlock = 35,
184    gfxd_DPNoOp = 36,
185    gfxd_DPNoOpTag = 37,
186    gfxd_DPPipelineMode = 38,
187    gfxd_DPSetBlendColor = 39,
188    gfxd_DPSetEnvColor = 40,
189    gfxd_DPSetFillColor = 41,
190    gfxd_DPSetFogColor = 42,
191    gfxd_DPSetPrimColor = 43,
192    gfxd_DPSetColorImage = 44,
193    gfxd_DPSetDepthImage = 45,
194    gfxd_DPSetTextureImage = 46,
195    gfxd_DPSetAlphaCompare = 47,
196    gfxd_DPSetAlphaDither = 48,
197    gfxd_DPSetColorDither = 49,
198    gfxd_DPSetCombineMode = 50,
199    gfxd_DPSetCombineLERP = 51,
200    gfxd_DPSetConvert = 52,
201    gfxd_DPSetTextureConvert = 53,
202    gfxd_DPSetCycleType = 54,
203    gfxd_DPSetDepthSource = 55,
204    gfxd_DPSetCombineKey = 56,
205    gfxd_DPSetKeyGB = 57,
206    gfxd_DPSetKeyR = 58,
207    gfxd_DPSetPrimDepth = 59,
208    gfxd_DPSetRenderMode = 60,
209    gfxd_DPSetScissor = 61,
210    gfxd_DPSetScissorFrac = 62,
211    gfxd_DPSetTextureDetail = 63,
212    gfxd_DPSetTextureFilter = 64,
213    gfxd_DPSetTextureLOD = 65,
214    gfxd_DPSetTextureLUT = 66,
215    gfxd_DPSetTexturePersp = 67,
216    gfxd_DPSetTile = 68,
217    gfxd_DPSetTileSize = 69,
218    gfxd_SP1Triangle = 70,
219    gfxd_SP2Triangles = 71,
220    gfxd_SP1Quadrangle = 72,
221    gfxd_SPBranchLessZraw = 73,
222    gfxd_SPBranchList = 74,
223    gfxd_SPClipRatio = 75,
224    gfxd_SPCullDisplayList = 76,
225    gfxd_SPDisplayList = 77,
226    gfxd_SPEndDisplayList = 78,
227    gfxd_SPFogFactor = 79,
228    gfxd_SPFogPosition = 80,
229    gfxd_SPForceMatrix = 81,
230    gfxd_SPSetGeometryMode = 82,
231    gfxd_SPClearGeometryMode = 83,
232    gfxd_SPLoadGeometryMode = 84,
233    gfxd_SPInsertMatrix = 85,
234    gfxd_SPLine3D = 86,
235    gfxd_SPLineW3D = 87,
236    gfxd_SPLoadUcode = 88,
237    gfxd_SPLookAtX = 89,
238    gfxd_SPLookAtY = 90,
239    gfxd_SPLookAt = 91,
240    gfxd_SPMatrix = 92,
241    gfxd_SPModifyVertex = 93,
242    gfxd_SPPerspNormalize = 94,
243    gfxd_SPPopMatrix = 95,
244    gfxd_SPPopMatrixN = 96,
245    gfxd_SPSegment = 97,
246    gfxd_SPSetLights1 = 98,
247    gfxd_SPSetLights2 = 99,
248    gfxd_SPSetLights3 = 100,
249    gfxd_SPSetLights4 = 101,
250    gfxd_SPSetLights5 = 102,
251    gfxd_SPSetLights6 = 103,
252    gfxd_SPSetLights7 = 104,
253    gfxd_SPNumLights = 105,
254    gfxd_SPLight = 106,
255    gfxd_SPLightColor = 107,
256    gfxd_SPTexture = 108,
257    gfxd_SPTextureRectangle = 109,
258    gfxd_SPTextureRectangleFlip = 110,
259    gfxd_SPVertex = 111,
260    gfxd_SPViewport = 112,
261    gfxd_DPLoadTLUTCmd = 113,
262    gfxd_DPLoadTLUT = 114,
263    gfxd_BranchZ = 115,
264    gfxd_DisplayList = 116,
265    gfxd_DPHalf1 = 117,
266    gfxd_DPHalf2 = 118,
267    gfxd_DPWord = 119,
268    gfxd_DPLoadTile = 120,
269    gfxd_SPGeometryMode = 121,
270    gfxd_SPSetOtherMode = 122,
271    gfxd_SPSetOtherModeLo = 123,
272    gfxd_SPSetOtherModeHi = 124,
273    gfxd_DPSetOtherMode = 125,
274    gfxd_MoveWd = 126,
275    gfxd_MoveMem = 127,
276    gfxd_SPDma_io = 128,
277    gfxd_SPDmaRead = 129,
278    gfxd_SPDmaWrite = 130,
279    gfxd_LoadUcode = 131,
280    gfxd_SPLoadUcodeEx = 132,
281    gfxd_TexRect = 133,
282    gfxd_TexRectFlip = 134,
283    gfxd_SPNoOp = 135,
284    gfxd_Special3 = 136,
285    gfxd_Special2 = 137,
286    gfxd_Special1 = 138,
287}