wut
v1.7.0
Wii U Toolchain
include
gx2
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
{
19
GX2Surface
surface
;
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
38
GX2InitTextureRegs
(
GX2Texture
*texture);
39
40
void
41
GX2SetPixelTexture
(
const
GX2Texture
*texture,
42
uint32_t unit);
43
44
void
45
GX2SetVertexTexture
(
const
GX2Texture
*texture,
46
uint32_t unit);
47
48
void
49
GX2SetGeometryTexture
(
const
GX2Texture
*texture,
50
uint32_t unit);
51
52
#ifdef __cplusplus
53
}
54
#endif
55
GX2Surface
Definition:
surface.h:23
GX2Texture::viewFirstSlice
uint32_t viewFirstSlice
Definition:
texture.h:22
GX2Texture::viewNumSlices
uint32_t viewNumSlices
Definition:
texture.h:23
GX2Texture::surface
GX2Surface surface
Definition:
texture.h:19
GX2Texture::viewNumMips
uint32_t viewNumMips
Definition:
texture.h:21
GX2Texture::regs
uint32_t regs[5]
Definition:
texture.h:26
GX2Texture::compMap
uint32_t compMap
Definition:
texture.h:24
GX2Texture::viewFirstMip
uint32_t viewFirstMip
Definition:
texture.h:20
GX2InitTextureRegs
void GX2InitTextureRegs(GX2Texture *texture)
GX2SetVertexTexture
void GX2SetVertexTexture(const GX2Texture *texture, uint32_t unit)
GX2SetPixelTexture
void GX2SetPixelTexture(const GX2Texture *texture, uint32_t unit)
GX2SetGeometryTexture
void GX2SetGeometryTexture(const GX2Texture *texture, uint32_t unit)
GX2Texture
Definition:
texture.h:18
surface.h
wut.h
Generated by
1.9.1