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 
16 
18 {
19  uint32_t config[0xB00];
20  uint32_t context[0x400];
21  uint32_t alu[0x800];
22  uint32_t loop[0x60];
23  PADDING((0x80 - 0x60) * 4);
24  uint32_t resource[0xD9E];
25  PADDING((0xDC0 - 0xD9E) * 4);
26  uint32_t sampler[0xA2];
27  PADDING((0xC0 - 0xA2) * 4);
28 };
29 
31 {
33  UNKNOWN(4);
35  UNKNOWN(0x9e00 - 0x9808);
36  uint32_t shadowDisplayList[192];
37 };
38 CHECK_OFFSET(GX2ContextState, 0x0000, shadowState);
39 CHECK_OFFSET(GX2ContextState, 0x9804, shadowDisplayListSize);
40 CHECK_OFFSET(GX2ContextState, 0x9e00, shadowDisplayList);
41 CHECK_SIZE(GX2ContextState, 0xa100);
42 
43 void
45  BOOL unk1);
46 
47 void
49  void *outDisplayList,
50  uint32_t *outSize);
51 
52 void
54 
55 void
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
uint32_t resource[0xD9E]
Definition: context.h:24
uint32_t sampler[0xA2]
Definition: context.h:26
void GX2SetupContextStateEx(GX2ContextState *state, BOOL unk1)
uint32_t shadowDisplayList[192]
Definition: context.h:36
void GX2SetDefaultState()
uint32_t config[0xB00]
Definition: context.h:19
void GX2GetContextStateDisplayList(GX2ContextState *state, void *outDisplayList, uint32_t *outSize)
GX2ShadowState shadowState
Definition: context.h:32
uint32_t context[0x400]
Definition: context.h:20
uint32_t alu[0x800]
Definition: context.h:21
int BOOL
Definition: wut_types.h:4
void GX2SetContextState(GX2ContextState *state)
uint32_t loop[0x60]
Definition: context.h:22
uint32_t shadowDisplayListSize
Definition: context.h:34