WUT  0.1
Wii U Toolchain
texture.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "surface.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 struct GX2Texture
16 {
18  uint32_t viewFirstMip;
19  uint32_t viewNumMips;
20  uint32_t viewFirstSlice;
21  uint32_t viewNumSlices;
22  uint32_t compMap;
23 
24  uint32_t regs[5];
25 };
26 CHECK_OFFSET(GX2Texture, 0x0, surface);
27 CHECK_OFFSET(GX2Texture, 0x74, viewFirstMip);
28 CHECK_OFFSET(GX2Texture, 0x78, viewNumMips);
29 CHECK_OFFSET(GX2Texture, 0x7c, viewFirstSlice);
30 CHECK_OFFSET(GX2Texture, 0x80, viewNumSlices);
31 CHECK_OFFSET(GX2Texture, 0x84, compMap);
32 CHECK_OFFSET(GX2Texture, 0x88, regs);
33 CHECK_SIZE(GX2Texture, 0x9c);
34 
35 #pragma pack(pop)
36 
37 void
39 
40 void
42  uint32_t unit);
43 
44 void
46  uint32_t unit);
47 
48 void
50  uint32_t unit);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
uint32_t compMap
Definition: texture.h:22
void GX2InitTextureRegs(GX2Texture *texture)
uint32_t viewNumMips
Definition: texture.h:19
uint32_t viewNumSlices
Definition: texture.h:21
uint32_t viewFirstMip
Definition: texture.h:18
uint32_t regs[5]
Definition: texture.h:24
void GX2SetGeometryTexture(GX2Texture *texture, uint32_t unit)
void GX2SetPixelTexture(GX2Texture *texture, uint32_t unit)
uint32_t viewFirstSlice
Definition: texture.h:20
GX2Surface surface
Definition: texture.h:17
void GX2SetVertexTexture(GX2Texture *texture, uint32_t unit)