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 typedef struct GX2Sampler GX2Sampler;
15 
16 struct GX2Sampler
17 {
18  uint32_t regs[3];
19 };
20 CHECK_SIZE(GX2Sampler, 12);
21 
22 typedef enum GX2TexBorderType
23 {
29 
30 typedef enum GX2TexClampMode
31 {
38 
39 typedef enum GX2TexMipFilterMode
40 {
45 
46 typedef enum GX2TexMipPerfMode
47 {
50 
51 typedef enum GX2TexXYFilterMode
52 {
56 
57 typedef enum GX2TexAnisoRatio
58 {
61 
62 typedef enum GX2TexZFilterMode
63 {
68 
69 typedef enum GX2TexZPerfMode
70 {
73 
74 typedef enum GX2RoundingMode
75 {
79 
80 void
81 GX2InitSampler(GX2Sampler *sampler,
82  GX2TexClampMode clampMode,
83  GX2TexXYFilterMode minMagFilterMode);
84 
85 void
87  GX2TexBorderType borderType);
88 
89 void
91  GX2TexClampMode clampX,
92  GX2TexClampMode clampY,
93  GX2TexClampMode clampZ);
94 
95 void
97  GX2CompareFunction depthCompare);
98 
99 void
101  BOOL highPrecision,
102  GX2TexMipPerfMode perfMip,
103  GX2TexZPerfMode perfZ);
104 
105 void
107  float lodMin,
108  float lodMax,
109  float lodBias);
110 
111 void
113  float unk1,
114  BOOL unk2);
115 
116 void
118  GX2RoundingMode roundingMode);
119 
120 void
122  GX2TexXYFilterMode filterMag,
123  GX2TexXYFilterMode filterMin,
124  GX2TexAnisoRatio maxAniso);
125 
126 void
128  GX2TexZFilterMode filterZ,
129  GX2TexMipFilterMode filterMip);
130 
131 #ifdef __cplusplus
132 }
133 #endif
134 
GX2TexMipPerfMode
Definition: sampler.h:46
uint32_t regs[3]
Definition: sampler.h:18
void GX2InitSamplerClamping(GX2Sampler *sampler, GX2TexClampMode clampX, GX2TexClampMode clampY, GX2TexClampMode clampZ)
GX2TexZPerfMode
Definition: sampler.h:69
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:62
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:74
int BOOL
Definition: wut_types.h:4
GX2TexClampMode
Definition: sampler.h:30
void GX2InitSampler(GX2Sampler *sampler, GX2TexClampMode clampMode, GX2TexXYFilterMode minMagFilterMode)
GX2CompareFunction
Definition: registers.h:32
void GX2InitSamplerFilterAdjust(GX2Sampler *sampler, BOOL highPrecision, GX2TexMipPerfMode perfMip, GX2TexZPerfMode perfZ)
GX2TexMipFilterMode
Definition: sampler.h:39
GX2TexAnisoRatio
Definition: sampler.h:57
GX2TexBorderType
Definition: sampler.h:22
GX2TexXYFilterMode
Definition: sampler.h:51