wut  v1.7.0
Wii U Toolchain
sampler.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "enum.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct GX2Sampler GX2Sampler;
16 
17 struct GX2Sampler
18 {
19  uint32_t regs[3];
20 };
21 WUT_CHECK_SIZE(GX2Sampler, 12);
22 
23 void
25  GX2TexClampMode clampMode,
26  GX2TexXYFilterMode minMagFilterMode);
27 
28 void
30  GX2TexBorderType borderType);
31 
32 void
34  GX2TexClampMode clampX,
35  GX2TexClampMode clampY,
36  GX2TexClampMode clampZ);
37 
38 void
40  GX2CompareFunction depthCompare);
41 
42 void
44  BOOL highPrecision,
45  GX2TexMipPerfMode perfMip,
46  GX2TexZPerfMode perfZ);
47 
48 void
50  float lodMin,
51  float lodMax,
52  float lodBias);
53 
54 void
56  float unk1,
57  BOOL unk2);
58 
59 void
61  GX2RoundingMode roundingMode);
62 
63 void
65  GX2TexXYFilterMode filterMag,
66  GX2TexXYFilterMode filterMin,
67  GX2TexAnisoRatio maxAniso);
68 
69 void
71  GX2TexZFilterMode filterZ,
72  GX2TexMipFilterMode filterMip);
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
GX2TexZPerfMode
Definition: enum.h:577
GX2RoundingMode
Definition: enum.h:326
GX2CompareFunction
Definition: enum.h:180
GX2TexBorderType
Definition: enum.h:522
GX2TexClampMode
Definition: enum.h:530
GX2TexMipPerfMode
Definition: enum.h:549
GX2TexAnisoRatio
Definition: enum.h:561
GX2TexMipFilterMode
Definition: enum.h:542
GX2TexZFilterMode
Definition: enum.h:570
GX2TexXYFilterMode
Definition: enum.h:554
uint32_t regs[3]
Definition: sampler.h:19
void GX2InitSamplerLOD(GX2Sampler *sampler, float lodMin, float lodMax, float lodBias)
void GX2InitSamplerClamping(GX2Sampler *sampler, GX2TexClampMode clampX, GX2TexClampMode clampY, GX2TexClampMode clampZ)
void GX2InitSamplerLODAdjust(GX2Sampler *sampler, float unk1, BOOL unk2)
void GX2InitSamplerBorderType(GX2Sampler *sampler, GX2TexBorderType borderType)
void GX2InitSamplerZMFilter(GX2Sampler *sampler, GX2TexZFilterMode filterZ, GX2TexMipFilterMode filterMip)
void GX2InitSampler(GX2Sampler *sampler, GX2TexClampMode clampMode, GX2TexXYFilterMode minMagFilterMode)
void GX2InitSamplerFilterAdjust(GX2Sampler *sampler, BOOL highPrecision, GX2TexMipPerfMode perfMip, GX2TexZPerfMode perfZ)
void GX2InitSamplerDepthCompare(GX2Sampler *sampler, GX2CompareFunction depthCompare)
void GX2InitSamplerRoundingMode(GX2Sampler *sampler, GX2RoundingMode roundingMode)
void GX2InitSamplerXYFilter(GX2Sampler *sampler, GX2TexXYFilterMode filterMag, GX2TexXYFilterMode filterMin, GX2TexAnisoRatio maxAniso)
int32_t BOOL
Definition: wut_types.h:7