wut  v1.7.0
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 typedef struct GX2Texture GX2Texture;
16 
17 struct GX2Texture
18 {
20  uint32_t viewFirstMip;
21  uint32_t viewNumMips;
22  uint32_t viewFirstSlice;
23  uint32_t viewNumSlices;
24  uint32_t compMap;
25 
26  uint32_t regs[5];
27 };
28 WUT_CHECK_OFFSET(GX2Texture, 0x0, surface);
29 WUT_CHECK_OFFSET(GX2Texture, 0x74, viewFirstMip);
30 WUT_CHECK_OFFSET(GX2Texture, 0x78, viewNumMips);
31 WUT_CHECK_OFFSET(GX2Texture, 0x7c, viewFirstSlice);
32 WUT_CHECK_OFFSET(GX2Texture, 0x80, viewNumSlices);
33 WUT_CHECK_OFFSET(GX2Texture, 0x84, compMap);
34 WUT_CHECK_OFFSET(GX2Texture, 0x88, regs);
35 WUT_CHECK_SIZE(GX2Texture, 0x9c);
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 viewFirstSlice
Definition: texture.h:22
uint32_t viewNumSlices
Definition: texture.h:23
GX2Surface surface
Definition: texture.h:19
uint32_t viewNumMips
Definition: texture.h:21
uint32_t regs[5]
Definition: texture.h:26
uint32_t compMap
Definition: texture.h:24
uint32_t viewFirstMip
Definition: texture.h:20
void GX2InitTextureRegs(GX2Texture *texture)
void GX2SetVertexTexture(const GX2Texture *texture, uint32_t unit)
void GX2SetPixelTexture(const GX2Texture *texture, uint32_t unit)
void GX2SetGeometryTexture(const GX2Texture *texture, uint32_t unit)