WUT  0.1
Wii U Toolchain
sampler.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 
14 struct GX2Sampler
15 {
16  uint32_t regs[3];
17 };
18 CHECK_SIZE(GX2Sampler, 12);
19 
20 typedef enum GX2TexBorderType
21 {
27 
28 typedef enum GX2TexClampMode
29 {
36 
37 typedef enum GX2TexMipFilterMode
38 {
43 
44 typedef enum GX2TexMipPerfMode
45 {
48 
49 typedef enum GX2TexXYFilterMode
50 {
54 
55 typedef enum GX2TexAnisoRatio
56 {
59 
60 typedef enum GX2TexZFilterMode
61 {
66 
67 typedef enum GX2TexZPerfMode
68 {
70 
71 typedef enum GX2RoundingMode
72 {
76 
77 void
78 GX2InitSampler(GX2Sampler *sampler,
79  GX2TexClampMode clampMode,
80  GX2TexXYFilterMode minMagFilterMode);
81 
82 void
84  GX2TexBorderType borderType);
85 
86 void
88  GX2TexClampMode clampX,
89  GX2TexClampMode clampY,
90  GX2TexClampMode clampZ);
91 
92 void
94  GX2CompareFunction depthCompare);
95 
96 void
98  BOOL highPrecision,
99  GX2TexMipPerfMode perfMip,
100  GX2TexZPerfMode perfZ);
101 
102 void
104  float lodMin,
105  float lodMax,
106  float lodBias);
107 
108 void
110  float unk1,
111  BOOL unk2);
112 
113 void
115  GX2RoundingMode roundingMode);
116 
117 void
119  GX2TexXYFilterMode filterMag,
120  GX2TexXYFilterMode filterMin,
121  GX2TexAnisoRatio maxAniso);
122 
123 void
125  GX2TexZFilterMode filterZ,
126  GX2TexMipFilterMode filterMip);
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
GX2TexMipPerfMode
Definition: sampler.h:44
uint32_t regs[3]
Definition: sampler.h:16
void GX2InitSamplerClamping(GX2Sampler *sampler, GX2TexClampMode clampX, GX2TexClampMode clampY, GX2TexClampMode clampZ)
GX2TexZPerfMode
Definition: sampler.h:67
void GX2InitSamplerZMFilter(GX2Sampler *sampler, GX2TexZFilterMode filterZ, GX2TexMipFilterMode filterMip)
void GX2InitSamplerLOD(GX2Sampler *sampler, float lodMin, float lodMax, float lodBias)
void GX2InitSamplerDepthCompare(GX2Sampler *sampler, GX2CompareFunction depthCompare)
GX2TexZFilterMode
Definition: sampler.h:60
GX2CompareFunction
Definition: registers.h:14
void GX2InitSamplerXYFilter(GX2Sampler *sampler, GX2TexXYFilterMode filterMag, GX2TexXYFilterMode filterMin, GX2TexAnisoRatio maxAniso)
void GX2InitSamplerLODAdjust(GX2Sampler *sampler, float unk1, BOOL unk2)
void GX2InitSamplerBorderType(GX2Sampler *sampler, GX2TexBorderType borderType)
void GX2InitSamplerRoundingMode(GX2Sampler *sampler, GX2RoundingMode roundingMode)
GX2RoundingMode
Definition: sampler.h:71
int BOOL
Definition: wut_types.h:4
GX2TexClampMode
Definition: sampler.h:28
void GX2InitSampler(GX2Sampler *sampler, GX2TexClampMode clampMode, GX2TexXYFilterMode minMagFilterMode)
void GX2InitSamplerFilterAdjust(GX2Sampler *sampler, BOOL highPrecision, GX2TexMipPerfMode perfMip, GX2TexZPerfMode perfZ)
GX2TexMipFilterMode
Definition: sampler.h:37
GX2TexAnisoRatio
Definition: sampler.h:55
GX2TexBorderType
Definition: sampler.h:20
GX2TexXYFilterMode
Definition: sampler.h:49