wut  v1.7.0
Wii U Toolchain
registers.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "enum.h"
4 #include "surface.h"
5 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef struct GX2AAMaskReg GX2AAMaskReg;
17 typedef struct GX2AlphaTestReg GX2AlphaTestReg;
24 typedef struct GX2LineWidthReg GX2LineWidthReg;
25 typedef struct GX2PointSizeReg GX2PointSizeReg;
29 typedef struct GX2ScissorReg GX2ScissorReg;
31 typedef struct GX2ViewportReg GX2ViewportReg;
32 
34 {
35  uint32_t pa_sc_aa_mask;
36 };
37 WUT_CHECK_OFFSET(GX2AAMaskReg, 0, pa_sc_aa_mask);
38 WUT_CHECK_SIZE(GX2AAMaskReg, 4);
39 
41 {
43  uint32_t sx_alpha_ref;
44 };
45 WUT_CHECK_OFFSET(GX2AlphaTestReg, 0, sx_alpha_test_control);
46 WUT_CHECK_OFFSET(GX2AlphaTestReg, 4, sx_alpha_ref);
47 WUT_CHECK_SIZE(GX2AlphaTestReg, 8);
48 
50 {
51  uint32_t db_alpha_to_mask;
52 };
53 WUT_CHECK_OFFSET(GX2AlphaToMaskReg, 0, db_alpha_to_mask);
54 WUT_CHECK_SIZE(GX2AlphaToMaskReg, 4);
55 
57 {
59  uint32_t cb_blend_control;
60 };
61 WUT_CHECK_OFFSET(GX2BlendControlReg, 0, target);
62 WUT_CHECK_OFFSET(GX2BlendControlReg, 4, cb_blend_control);
63 WUT_CHECK_SIZE(GX2BlendControlReg, 8);
64 
66 {
67  float red;
68  float green;
69  float blue;
70  float alpha;
71 };
72 WUT_CHECK_OFFSET(GX2BlendConstantColorReg, 0x00, red);
73 WUT_CHECK_OFFSET(GX2BlendConstantColorReg, 0x04, green);
74 WUT_CHECK_OFFSET(GX2BlendConstantColorReg, 0x08, blue);
75 WUT_CHECK_OFFSET(GX2BlendConstantColorReg, 0x0c, alpha);
76 WUT_CHECK_SIZE(GX2BlendConstantColorReg, 0x10);
77 
79 {
80  uint32_t cb_color_control;
81 };
82 WUT_CHECK_OFFSET(GX2ColorControlReg, 0x00, cb_color_control);
83 WUT_CHECK_SIZE(GX2ColorControlReg, 4);
84 
86 {
87  uint32_t db_depth_control;
88 };
89 WUT_CHECK_OFFSET(GX2DepthStencilControlReg, 0, db_depth_control);
90 WUT_CHECK_SIZE(GX2DepthStencilControlReg, 4);
91 
93 {
96 };
97 WUT_CHECK_OFFSET(GX2StencilMaskReg, 0, db_stencilrefmask);
98 WUT_CHECK_OFFSET(GX2StencilMaskReg, 4, db_stencilrefmask_bf);
99 WUT_CHECK_SIZE(GX2StencilMaskReg, 8);
100 
102 {
103  uint32_t pa_su_line_cntl;
104 };
105 WUT_CHECK_OFFSET(GX2LineWidthReg, 0, pa_su_line_cntl);
106 WUT_CHECK_SIZE(GX2LineWidthReg, 4);
107 
109 {
111 };
112 WUT_CHECK_OFFSET(GX2PointSizeReg, 0, pa_su_point_size);
113 WUT_CHECK_SIZE(GX2PointSizeReg, 4);
114 
116 {
118 };
119 WUT_CHECK_OFFSET(GX2PointLimitsReg, 0, pa_su_point_minmax);
120 WUT_CHECK_SIZE(GX2PointLimitsReg, 4);
121 
123 {
125 };
126 WUT_CHECK_OFFSET(GX2PolygonControlReg, 0, pa_su_sc_mode_cntl);
127 WUT_CHECK_SIZE(GX2PolygonControlReg, 4);
128 
130 {
136 };
137 WUT_CHECK_OFFSET(GX2PolygonOffsetReg, 0x00, pa_su_poly_offset_front_scale);
138 WUT_CHECK_OFFSET(GX2PolygonOffsetReg, 0x04, pa_su_poly_offset_front_offset);
139 WUT_CHECK_OFFSET(GX2PolygonOffsetReg, 0x08, pa_su_poly_offset_back_scale);
140 WUT_CHECK_OFFSET(GX2PolygonOffsetReg, 0x0C, pa_su_poly_offset_back_offset);
141 WUT_CHECK_OFFSET(GX2PolygonOffsetReg, 0x10, pa_su_poly_offset_clamp);
142 WUT_CHECK_SIZE(GX2PolygonOffsetReg, 20);
143 
145 {
148 };
149 WUT_CHECK_OFFSET(GX2ScissorReg, 0x00, pa_sc_generic_scissor_tl);
150 WUT_CHECK_OFFSET(GX2ScissorReg, 0x04, pa_sc_generic_scissor_br);
151 WUT_CHECK_SIZE(GX2ScissorReg, 8);
152 
154 {
155  uint32_t cb_target_mask;
156 };
157 WUT_CHECK_OFFSET(GX2TargetChannelMaskReg, 0x00, cb_target_mask);
158 WUT_CHECK_SIZE(GX2TargetChannelMaskReg, 4);
159 
161 {
174 };
175 WUT_CHECK_OFFSET(GX2ViewportReg, 0x00, pa_cl_vport_xscale);
176 WUT_CHECK_OFFSET(GX2ViewportReg, 0x04, pa_cl_vport_xoffset);
177 WUT_CHECK_OFFSET(GX2ViewportReg, 0x08, pa_cl_vport_yscale);
178 WUT_CHECK_OFFSET(GX2ViewportReg, 0x0C, pa_cl_vport_yoffset);
179 WUT_CHECK_OFFSET(GX2ViewportReg, 0x10, pa_cl_vport_zscale);
180 WUT_CHECK_OFFSET(GX2ViewportReg, 0x14, pa_cl_vport_zoffset);
181 WUT_CHECK_OFFSET(GX2ViewportReg, 0x18, pa_cl_gb_vert_clip_adj);
182 WUT_CHECK_OFFSET(GX2ViewportReg, 0x1C, pa_cl_gb_vert_disc_adj);
183 WUT_CHECK_OFFSET(GX2ViewportReg, 0x20, pa_cl_gb_horz_clip_adj);
184 WUT_CHECK_OFFSET(GX2ViewportReg, 0x24, pa_cl_gb_horz_disc_adj);
185 WUT_CHECK_OFFSET(GX2ViewportReg, 0x28, pa_sc_vport_zmin);
186 WUT_CHECK_OFFSET(GX2ViewportReg, 0x2C, pa_sc_vport_zmax);
187 WUT_CHECK_SIZE(GX2ViewportReg, 48);
188 
189 void
190 GX2SetAAMask(uint8_t upperLeft,
191  uint8_t upperRight,
192  uint8_t lowerLeft,
193  uint8_t lowerRight);
194 
195 void
197  uint8_t upperLeft,
198  uint8_t upperRight,
199  uint8_t lowerLeft,
200  uint8_t lowerRight);
201 
202 void
204  uint8_t *upperLeft,
205  uint8_t *upperRight,
206  uint8_t *lowerLeft,
207  uint8_t *lowerRight);
208 
209 void
211 
212 void
214  GX2CompareFunction func,
215  float ref);
216 
217 void
219  BOOL alphaTest,
220  GX2CompareFunction func,
221  float ref);
222 
223 void
225  BOOL *alphaTest,
226  GX2CompareFunction *func,
227  float *ref);
228 
229 void
231 
232 void
234  GX2AlphaToMaskMode mode);
235 
236 void
238  BOOL alphaToMask,
239  GX2AlphaToMaskMode mode);
240 
241 void
243  BOOL *alphaToMask,
244  GX2AlphaToMaskMode *mode);
245 
246 void
248 
249 void
251  float green,
252  float blue,
253  float alpha);
254 
255 void
257  float red,
258  float green,
259  float blue,
260  float alpha);
261 
262 void
264  float *red,
265  float *green,
266  float *blue,
267  float *alpha);
268 
269 void
271 
272 void
274  GX2BlendMode colorSrcBlend,
275  GX2BlendMode colorDstBlend,
276  GX2BlendCombineMode colorCombine,
277  BOOL useAlphaBlend,
278  GX2BlendMode alphaSrcBlend,
279  GX2BlendMode alphaDstBlend,
280  GX2BlendCombineMode alphaCombine);
281 
282 void
284  GX2RenderTarget target,
285  GX2BlendMode colorSrcBlend,
286  GX2BlendMode colorDstBlend,
287  GX2BlendCombineMode colorCombine,
288  BOOL useAlphaBlend,
289  GX2BlendMode alphaSrcBlend,
290  GX2BlendMode alphaDstBlend,
291  GX2BlendCombineMode alphaCombine);
292 
293 void
295  GX2RenderTarget *target,
296  GX2BlendMode *colorSrcBlend,
297  GX2BlendMode *colorDstBlend,
298  GX2BlendCombineMode *colorCombine,
299  BOOL *useAlphaBlend,
300  GX2BlendMode *alphaSrcBlend,
301  GX2BlendMode *alphaDstBlend,
302  GX2BlendCombineMode *alphaCombine);
303 
304 void
306 
307 void
309  uint8_t targetBlendEnable,
310  BOOL multiWriteEnable,
311  BOOL colorWriteEnable);
312 
313 void
315  GX2LogicOp rop3,
316  uint8_t targetBlendEnable,
317  BOOL multiWriteEnable,
318  BOOL colorWriteEnable);
319 
320 void
322  GX2LogicOp *rop3,
323  uint8_t *targetBlendEnable,
324  BOOL *multiWriteEnable,
325  BOOL *colorWriteEnable);
326 
327 void
329 
330 void
332  BOOL depthWrite,
333  GX2CompareFunction depthCompare);
334 
335 void
337  BOOL depthWrite,
338  GX2CompareFunction depthCompare,
339  BOOL stencilTest,
340  BOOL backfaceStencil,
341  GX2CompareFunction frontStencilFunc,
342  GX2StencilFunction frontStencilZPass,
343  GX2StencilFunction frontStencilZFail,
344  GX2StencilFunction frontStencilFail,
345  GX2CompareFunction backStencilFunc,
346  GX2StencilFunction backStencilZPass,
347  GX2StencilFunction backStencilZFail,
348  GX2StencilFunction backStencilFail);
349 
350 void
352  BOOL depthTest,
353  BOOL depthWrite,
354  GX2CompareFunction depthCompare,
355  BOOL stencilTest,
356  BOOL backfaceStencil,
357  GX2CompareFunction frontStencilFunc,
358  GX2StencilFunction frontStencilZPass,
359  GX2StencilFunction frontStencilZFail,
360  GX2StencilFunction frontStencilFail,
361  GX2CompareFunction backStencilFunc,
362  GX2StencilFunction backStencilZPass,
363  GX2StencilFunction backStencilZFail,
364  GX2StencilFunction backStencilFail);
365 
366 void
368  BOOL *depthTest,
369  BOOL *depthWrite,
370  GX2CompareFunction *depthCompare,
371  BOOL *stencilTest,
372  BOOL *backfaceStencil,
373  GX2CompareFunction *frontStencilFunc,
374  GX2StencilFunction *frontStencilZPass,
375  GX2StencilFunction *frontStencilZFail,
376  GX2StencilFunction *frontStencilFail,
377  GX2CompareFunction *backStencilFunc,
378  GX2StencilFunction *backStencilZPass,
379  GX2StencilFunction *backStencilZFail,
380  GX2StencilFunction *backStencilFail);
381 
382 void
384 
385 void
386 GX2SetStencilMask(uint8_t frontMask,
387  uint8_t frontWriteMask,
388  uint8_t frontRef,
389  uint8_t backMask,
390  uint8_t backWriteMask,
391  uint8_t backRef);
392 
393 void
395  uint8_t frontMask,
396  uint8_t frontWriteMask,
397  uint8_t frontRef,
398  uint8_t backMask,
399  uint8_t backWriteMask,
400  uint8_t backRef);
401 
402 void
404  uint8_t *frontMask,
405  uint8_t *frontWriteMask,
406  uint8_t *frontRef,
407  uint8_t *backMask,
408  uint8_t *backWriteMask,
409  uint8_t *backRef);
410 
411 void
413 
414 void
415 GX2SetLineWidth(float width);
416 
417 void
419  float width);
420 
421 void
423  float *width);
424 
425 void
427 
428 void
429 GX2SetPointSize(float width,
430  float height);
431 
432 void
434  float width,
435  float height);
436 
437 void
439  float *width,
440  float *height);
441 
442 void
444 
445 void
447  float max);
448 
449 void
451  float min,
452  float max);
453 
454 void
456  float *min,
457  float *max);
458 
459 void
461 
462 void
464  BOOL cullFront,
465  BOOL cullBack);
466 
467 void
469  BOOL cullFront,
470  BOOL cullBack,
471  BOOL polyMode,
472  GX2PolygonMode polyModeFront,
473  GX2PolygonMode polyModeBack,
474  BOOL polyOffsetFrontEnable,
475  BOOL polyOffsetBackEnable,
476  BOOL polyOffsetParaEnable);
477 
478 void
480  GX2FrontFace frontFace,
481  BOOL cullFront,
482  BOOL cullBack,
483  BOOL polyMode,
484  GX2PolygonMode polyModeFront,
485  GX2PolygonMode polyModeBack,
486  BOOL polyOffsetFrontEnable,
487  BOOL polyOffsetBackEnable,
488  BOOL polyOffsetParaEnable);
489 
490 void
492  GX2FrontFace *frontFace,
493  BOOL *cullFront,
494  BOOL *cullBack,
495  BOOL *polyMode,
496  GX2PolygonMode *polyModeFront,
497  GX2PolygonMode *polyModeBack,
498  BOOL *polyOffsetFrontEnable,
499  BOOL *polyOffsetBackEnable,
500  BOOL *polyOffsetParaEnable);
501 
502 void
504 
505 void
506 GX2SetPolygonOffset(float frontOffset,
507  float frontScale,
508  float backOffset,
509  float backScale,
510  float clamp);
511 
512 void
514  float frontOffset,
515  float frontScale,
516  float backOffset,
517  float backScale,
518  float clamp);
519 
520 void
522  float *frontOffset,
523  float *frontScale,
524  float *backOffset,
525  float *backScale,
526  float *clamp);
527 
528 void
530 
531 void
532 GX2SetScissor(uint32_t x,
533  uint32_t y,
534  uint32_t width,
535  uint32_t height);
536 
537 void
539  uint32_t x,
540  uint32_t y,
541  uint32_t width,
542  uint32_t height);
543 
544 void
546  uint32_t *x,
547  uint32_t *y,
548  uint32_t *width,
549  uint32_t *height);
550 
551 void
553 
554 void
556  GX2ChannelMask mask1,
557  GX2ChannelMask mask2,
558  GX2ChannelMask mask3,
559  GX2ChannelMask mask4,
560  GX2ChannelMask mask5,
561  GX2ChannelMask mask6,
562  GX2ChannelMask mask7);
563 
564 void
566  GX2ChannelMask mask0,
567  GX2ChannelMask mask1,
568  GX2ChannelMask mask2,
569  GX2ChannelMask mask3,
570  GX2ChannelMask mask4,
571  GX2ChannelMask mask5,
572  GX2ChannelMask mask6,
573  GX2ChannelMask mask7);
574 
575 void
577  GX2ChannelMask *mask0,
578  GX2ChannelMask *mask1,
579  GX2ChannelMask *mask2,
580  GX2ChannelMask *mask3,
581  GX2ChannelMask *mask4,
582  GX2ChannelMask *mask5,
583  GX2ChannelMask *mask6,
584  GX2ChannelMask *mask7);
585 
586 void
588 
589 void
591  float y,
592  float width,
593  float height,
594  float nearZ,
595  float farZ);
596 
597 void
599  float x,
600  float y,
601  float width,
602  float height,
603  float nearZ,
604  float farZ);
605 
606 void
608  float *x,
609  float *y,
610  float *width,
611  float *height,
612  float *nearZ,
613  float *farZ);
614 
615 void
617 
618 void
620  BOOL zclipEnable);
621 
622 void
624  BOOL zclipEnable,
625  BOOL halfZ);
626 
627 void
629  BOOL zclipEnable,
630  BOOL halfZ);
631 
632 #ifdef __cplusplus
633 }
634 #endif
635 
GX2AlphaToMaskMode
Definition: enum.h:38
GX2ChannelMask
Definition: enum.h:152
GX2FrontFace
Definition: enum.h:224
GX2StencilFunction
Definition: enum.h:403
GX2LogicOp
Definition: enum.h:269
GX2RenderTarget
Definition: enum.h:314
GX2CompareFunction
Definition: enum.h:180
GX2BlendMode
Definition: enum.h:111
GX2BlendCombineMode
Definition: enum.h:136
GX2PolygonMode
Definition: enum.h:307
uint32_t pa_sc_generic_scissor_br
Definition: registers.h:147
uint32_t sx_alpha_test_control
Definition: registers.h:42
uint32_t pa_su_sc_mode_cntl
Definition: registers.h:124
uint32_t db_alpha_to_mask
Definition: registers.h:51
uint32_t cb_blend_control
Definition: registers.h:59
uint32_t pa_su_poly_offset_clamp
Definition: registers.h:135
uint32_t db_stencilrefmask
Definition: registers.h:94
uint32_t pa_cl_vport_yoffset
Definition: registers.h:165
uint32_t pa_cl_gb_vert_disc_adj
Definition: registers.h:169
uint32_t db_stencilrefmask_bf
Definition: registers.h:95
uint32_t pa_su_poly_offset_front_offset
Definition: registers.h:132
uint32_t cb_color_control
Definition: registers.h:80
uint32_t pa_su_point_size
Definition: registers.h:110
uint32_t pa_cl_gb_horz_disc_adj
Definition: registers.h:171
uint32_t pa_cl_gb_horz_clip_adj
Definition: registers.h:170
uint32_t pa_cl_vport_xoffset
Definition: registers.h:163
uint32_t pa_su_poly_offset_front_scale
Definition: registers.h:131
uint32_t pa_su_poly_offset_back_offset
Definition: registers.h:134
uint32_t pa_sc_aa_mask
Definition: registers.h:35
GX2RenderTarget target
Definition: registers.h:58
uint32_t pa_sc_vport_zmin
Definition: registers.h:172
uint32_t pa_sc_vport_zmax
Definition: registers.h:173
uint32_t pa_sc_generic_scissor_tl
Definition: registers.h:146
uint32_t pa_cl_vport_yscale
Definition: registers.h:164
uint32_t pa_su_poly_offset_back_scale
Definition: registers.h:133
uint32_t pa_su_line_cntl
Definition: registers.h:103
uint32_t pa_cl_gb_vert_clip_adj
Definition: registers.h:168
uint32_t pa_cl_vport_zscale
Definition: registers.h:166
uint32_t sx_alpha_ref
Definition: registers.h:43
uint32_t pa_su_point_minmax
Definition: registers.h:117
uint32_t pa_cl_vport_zoffset
Definition: registers.h:167
uint32_t pa_cl_vport_xscale
Definition: registers.h:162
void GX2SetRasterizerClipControlHalfZ(BOOL rasterizer, BOOL zclipEnable, BOOL halfZ)
void GX2GetAlphaToMaskReg(const GX2AlphaToMaskReg *reg, BOOL *alphaToMask, GX2AlphaToMaskMode *mode)
void GX2SetViewport(float x, float y, float width, float height, float nearZ, float farZ)
void GX2SetPolygonControl(GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack, BOOL polyMode, GX2PolygonMode polyModeFront, GX2PolygonMode polyModeBack, BOOL polyOffsetFrontEnable, BOOL polyOffsetBackEnable, BOOL polyOffsetParaEnable)
void GX2SetBlendControl(GX2RenderTarget target, GX2BlendMode colorSrcBlend, GX2BlendMode colorDstBlend, GX2BlendCombineMode colorCombine, BOOL useAlphaBlend, GX2BlendMode alphaSrcBlend, GX2BlendMode alphaDstBlend, GX2BlendCombineMode alphaCombine)
void GX2GetPointSizeReg(GX2PointSizeReg *reg, float *width, float *height)
void GX2GetDepthStencilControlReg(GX2DepthStencilControlReg *reg, BOOL *depthTest, BOOL *depthWrite, GX2CompareFunction *depthCompare, BOOL *stencilTest, BOOL *backfaceStencil, GX2CompareFunction *frontStencilFunc, GX2StencilFunction *frontStencilZPass, GX2StencilFunction *frontStencilZFail, GX2StencilFunction *frontStencilFail, GX2CompareFunction *backStencilFunc, GX2StencilFunction *backStencilZPass, GX2StencilFunction *backStencilZFail, GX2StencilFunction *backStencilFail)
void GX2InitBlendConstantColorReg(GX2BlendConstantColorReg *reg, float red, float green, float blue, float alpha)
void GX2InitAlphaTestReg(GX2AlphaTestReg *reg, BOOL alphaTest, GX2CompareFunction func, float ref)
void GX2GetScissorReg(GX2ScissorReg *reg, uint32_t *x, uint32_t *y, uint32_t *width, uint32_t *height)
void GX2SetAAMaskReg(const GX2AAMaskReg *reg)
void GX2SetAlphaTest(BOOL alphaTest, GX2CompareFunction func, float ref)
void GX2InitStencilMaskReg(GX2StencilMaskReg *reg, uint8_t frontMask, uint8_t frontWriteMask, uint8_t frontRef, uint8_t backMask, uint8_t backWriteMask, uint8_t backRef)
void GX2GetPolygonOffsetReg(GX2PolygonOffsetReg *reg, float *frontOffset, float *frontScale, float *backOffset, float *backScale, float *clamp)
void GX2SetPolygonOffset(float frontOffset, float frontScale, float backOffset, float backScale, float clamp)
void GX2GetViewportReg(GX2ViewportReg *reg, float *x, float *y, float *width, float *height, float *nearZ, float *farZ)
void GX2SetAlphaToMask(BOOL alphaToMask, GX2AlphaToMaskMode mode)
void GX2SetRasterizerClipControlEx(BOOL rasterizer, BOOL zclipEnable, BOOL halfZ)
void GX2GetColorControlReg(GX2ColorControlReg *reg, GX2LogicOp *rop3, uint8_t *targetBlendEnable, BOOL *multiWriteEnable, BOOL *colorWriteEnable)
void GX2GetPolygonControlReg(GX2PolygonControlReg *reg, GX2FrontFace *frontFace, BOOL *cullFront, BOOL *cullBack, BOOL *polyMode, GX2PolygonMode *polyModeFront, GX2PolygonMode *polyModeBack, BOOL *polyOffsetFrontEnable, BOOL *polyOffsetBackEnable, BOOL *polyOffsetParaEnable)
void GX2GetStencilMaskReg(GX2StencilMaskReg *reg, uint8_t *frontMask, uint8_t *frontWriteMask, uint8_t *frontRef, uint8_t *backMask, uint8_t *backWriteMask, uint8_t *backRef)
void GX2SetAlphaToMaskReg(const GX2AlphaToMaskReg *reg)
void GX2InitPointSizeReg(GX2PointSizeReg *reg, float width, float height)
void GX2InitPointLimitsReg(GX2PointLimitsReg *reg, float min, float max)
void GX2SetDepthStencilControl(BOOL depthTest, BOOL depthWrite, GX2CompareFunction depthCompare, BOOL stencilTest, BOOL backfaceStencil, GX2CompareFunction frontStencilFunc, GX2StencilFunction frontStencilZPass, GX2StencilFunction frontStencilZFail, GX2StencilFunction frontStencilFail, GX2CompareFunction backStencilFunc, GX2StencilFunction backStencilZPass, GX2StencilFunction backStencilZFail, GX2StencilFunction backStencilFail)
void GX2SetAAMask(uint8_t upperLeft, uint8_t upperRight, uint8_t lowerLeft, uint8_t lowerRight)
void GX2SetScissorReg(const GX2ScissorReg *reg)
void GX2SetColorControl(GX2LogicOp rop3, uint8_t targetBlendEnable, BOOL multiWriteEnable, BOOL colorWriteEnable)
void GX2InitTargetChannelMasksReg(GX2TargetChannelMaskReg *reg, GX2ChannelMask mask0, GX2ChannelMask mask1, GX2ChannelMask mask2, GX2ChannelMask mask3, GX2ChannelMask mask4, GX2ChannelMask mask5, GX2ChannelMask mask6, GX2ChannelMask mask7)
void GX2InitPolygonControlReg(GX2PolygonControlReg *reg, GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack, BOOL polyMode, GX2PolygonMode polyModeFront, GX2PolygonMode polyModeBack, BOOL polyOffsetFrontEnable, BOOL polyOffsetBackEnable, BOOL polyOffsetParaEnable)
void GX2GetBlendControlReg(GX2BlendControlReg *reg, GX2RenderTarget *target, GX2BlendMode *colorSrcBlend, GX2BlendMode *colorDstBlend, GX2BlendCombineMode *colorCombine, BOOL *useAlphaBlend, GX2BlendMode *alphaSrcBlend, GX2BlendMode *alphaDstBlend, GX2BlendCombineMode *alphaCombine)
void GX2SetPointLimitsReg(const GX2PointLimitsReg *reg)
void GX2SetPointLimits(float min, float max)
void GX2InitAlphaToMaskReg(GX2AlphaToMaskReg *reg, BOOL alphaToMask, GX2AlphaToMaskMode mode)
void GX2InitScissorReg(GX2ScissorReg *reg, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void GX2GetBlendConstantColorReg(GX2BlendConstantColorReg *reg, float *red, float *green, float *blue, float *alpha)
void GX2SetBlendConstantColor(float red, float green, float blue, float alpha)
void GX2GetAAMaskReg(GX2AAMaskReg *reg, uint8_t *upperLeft, uint8_t *upperRight, uint8_t *lowerLeft, uint8_t *lowerRight)
void GX2SetCullOnlyControl(GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack)
void GX2SetAlphaTestReg(const GX2AlphaTestReg *reg)
void GX2SetRasterizerClipControl(BOOL rasterizer, BOOL zclipEnable)
void GX2GetTargetChannelMasksReg(GX2TargetChannelMaskReg *reg, GX2ChannelMask *mask0, GX2ChannelMask *mask1, GX2ChannelMask *mask2, GX2ChannelMask *mask3, GX2ChannelMask *mask4, GX2ChannelMask *mask5, GX2ChannelMask *mask6, GX2ChannelMask *mask7)
void GX2InitColorControlReg(GX2ColorControlReg *reg, GX2LogicOp rop3, uint8_t targetBlendEnable, BOOL multiWriteEnable, BOOL colorWriteEnable)
void GX2SetTargetChannelMasksReg(const GX2TargetChannelMaskReg *reg)
void GX2SetLineWidthReg(const GX2LineWidthReg *reg)
void GX2SetColorControlReg(const GX2ColorControlReg *reg)
void GX2SetPointSize(float width, float height)
void GX2SetLineWidth(float width)
void GX2SetStencilMask(uint8_t frontMask, uint8_t frontWriteMask, uint8_t frontRef, uint8_t backMask, uint8_t backWriteMask, uint8_t backRef)
void GX2InitDepthStencilControlReg(GX2DepthStencilControlReg *reg, BOOL depthTest, BOOL depthWrite, GX2CompareFunction depthCompare, BOOL stencilTest, BOOL backfaceStencil, GX2CompareFunction frontStencilFunc, GX2StencilFunction frontStencilZPass, GX2StencilFunction frontStencilZFail, GX2StencilFunction frontStencilFail, GX2CompareFunction backStencilFunc, GX2StencilFunction backStencilZPass, GX2StencilFunction backStencilZFail, GX2StencilFunction backStencilFail)
void GX2SetDepthStencilControlReg(const GX2DepthStencilControlReg *reg)
void GX2GetLineWidthReg(GX2LineWidthReg *reg, float *width)
void GX2InitPolygonOffsetReg(GX2PolygonOffsetReg *reg, float frontOffset, float frontScale, float backOffset, float backScale, float clamp)
void GX2SetViewportReg(const GX2ViewportReg *reg)
void GX2InitBlendControlReg(GX2BlendControlReg *reg, GX2RenderTarget target, GX2BlendMode colorSrcBlend, GX2BlendMode colorDstBlend, GX2BlendCombineMode colorCombine, BOOL useAlphaBlend, GX2BlendMode alphaSrcBlend, GX2BlendMode alphaDstBlend, GX2BlendCombineMode alphaCombine)
void GX2SetBlendConstantColorReg(const GX2BlendConstantColorReg *reg)
void GX2SetTargetChannelMasks(GX2ChannelMask mask0, GX2ChannelMask mask1, GX2ChannelMask mask2, GX2ChannelMask mask3, GX2ChannelMask mask4, GX2ChannelMask mask5, GX2ChannelMask mask6, GX2ChannelMask mask7)
void GX2SetBlendControlReg(const GX2BlendControlReg *reg)
void GX2GetAlphaTestReg(const GX2AlphaTestReg *reg, BOOL *alphaTest, GX2CompareFunction *func, float *ref)
void GX2InitViewportReg(GX2ViewportReg *reg, float x, float y, float width, float height, float nearZ, float farZ)
void GX2GetPointLimitsReg(GX2PointLimitsReg *reg, float *min, float *max)
void GX2SetPointSizeReg(const GX2PointSizeReg *reg)
void GX2InitAAMaskReg(GX2AAMaskReg *reg, uint8_t upperLeft, uint8_t upperRight, uint8_t lowerLeft, uint8_t lowerRight)
void GX2SetScissor(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
void GX2SetStencilMaskReg(const GX2StencilMaskReg *reg)
void GX2SetDepthOnlyControl(BOOL depthTest, BOOL depthWrite, GX2CompareFunction depthCompare)
void GX2SetPolygonControlReg(const GX2PolygonControlReg *reg)
void GX2SetPolygonOffsetReg(const GX2PolygonOffsetReg *reg)
void GX2InitLineWidthReg(GX2LineWidthReg *reg, float width)
int32_t BOOL
Definition: wut_types.h:7