WUT  0.1
Wii U Toolchain
context.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
15 {
16  uint32_t config[0xB00];
17  uint32_t context[0x400];
18  uint32_t alu[0x800];
19  uint32_t loop[0x60];
20  PADDING((0x80 - 0x60) * 4);
21  uint32_t resource[0xD9E];
22  PADDING((0xDC0 - 0xD9E) * 4);
23  uint32_t sampler[0xA2];
24  PADDING((0xC0 - 0xA2) * 4);
25 };
26 
28 {
30  UNKNOWN(4);
32  UNKNOWN(0x9e00 - 0x9808);
33  uint32_t shadowDisplayList[192];
34 };
35 CHECK_OFFSET(GX2ContextState, 0x0000, shadowState);
36 CHECK_OFFSET(GX2ContextState, 0x9804, shadowDisplayListSize);
37 CHECK_OFFSET(GX2ContextState, 0x9e00, shadowDisplayList);
38 CHECK_SIZE(GX2ContextState, 0xa100);
39 
40 void
42  BOOL unk1);
43 
44 void
46  void *outDisplayList,
47  uint32_t *outSize);
48 
49 void
51 
52 void
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
uint32_t resource[0xD9E]
Definition: context.h:21
uint32_t sampler[0xA2]
Definition: context.h:23
void GX2SetupContextStateEx(GX2ContextState *state, BOOL unk1)
uint32_t shadowDisplayList[192]
Definition: context.h:33
void GX2SetDefaultState()
uint32_t config[0xB00]
Definition: context.h:16
void GX2GetContextStateDisplayList(GX2ContextState *state, void *outDisplayList, uint32_t *outSize)
GX2ShadowState shadowState
Definition: context.h:29
uint32_t context[0x400]
Definition: context.h:17
uint32_t alu[0x800]
Definition: context.h:18
int BOOL
Definition: wut_types.h:4
void GX2SetContextState(GX2ContextState *state)
uint32_t loop[0x60]
Definition: context.h:19
uint32_t shadowDisplayListSize
Definition: context.h:31