wut  1.0.0-beta9
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;
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
213 GX2SetAlphaTest(BOOL alphaTest,
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
233 GX2SetAlphaToMask(BOOL alphaToMask,
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
250 GX2SetBlendConstantColor(float red,
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
331 GX2SetDepthOnlyControl(BOOL depthTest,
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
446 GX2SetPointLimits(float min,
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
590 GX2SetViewport(float x,
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 #ifdef __cplusplus
619 }
620 #endif
621 
GX2LineWidthReg::pa_su_line_cntl
uint32_t pa_su_line_cntl
Definition: registers.h:103
GX2SetBlendConstantColorReg
void GX2SetBlendConstantColorReg(GX2BlendConstantColorReg *reg)
GX2ViewportReg::pa_cl_gb_horz_disc_adj
uint32_t pa_cl_gb_horz_disc_adj
Definition: registers.h:171
GX2BlendConstantColorReg::red
float red
Definition: registers.h:67
GX2ScissorReg::pa_sc_generic_scissor_tl
uint32_t pa_sc_generic_scissor_tl
Definition: registers.h:146
GX2AAMaskReg::pa_sc_aa_mask
uint32_t pa_sc_aa_mask
Definition: registers.h:35
GX2PolygonControlReg
Definition: registers.h:122
GX2SetPolygonControlReg
void GX2SetPolygonControlReg(GX2PolygonControlReg *reg)
surface.h
GX2SetViewportReg
void GX2SetViewportReg(GX2ViewportReg *reg)
GX2SetDepthStencilControlReg
void GX2SetDepthStencilControlReg(GX2DepthStencilControlReg *reg)
GX2BlendControlReg::target
GX2RenderTarget target
Definition: registers.h:58
GX2ViewportReg::pa_cl_vport_zscale
uint32_t pa_cl_vport_zscale
Definition: registers.h:166
GX2SetLineWidth
void GX2SetLineWidth(float width)
GX2InitBlendControlReg
void GX2InitBlendControlReg(GX2BlendControlReg *reg, GX2RenderTarget target, GX2BlendMode colorSrcBlend, GX2BlendMode colorDstBlend, GX2BlendCombineMode colorCombine, BOOL useAlphaBlend, GX2BlendMode alphaSrcBlend, GX2BlendMode alphaDstBlend, GX2BlendCombineMode alphaCombine)
GX2BlendCombineMode
GX2BlendCombineMode
Definition: enum.h:97
GX2GetColorControlReg
void GX2GetColorControlReg(GX2ColorControlReg *reg, GX2LogicOp *rop3, uint8_t *targetBlendEnable, BOOL *multiWriteEnable, BOOL *colorWriteEnable)
GX2PolygonOffsetReg::pa_su_poly_offset_front_scale
uint32_t pa_su_poly_offset_front_scale
Definition: registers.h:131
GX2FrontFace
GX2FrontFace
Definition: enum.h:180
GX2PointSizeReg::pa_su_point_size
uint32_t pa_su_point_size
Definition: registers.h:110
GX2AAMaskReg
Definition: registers.h:33
GX2AlphaToMaskReg
Definition: registers.h:49
GX2ViewportReg::pa_cl_vport_xscale
uint32_t pa_cl_vport_xscale
Definition: registers.h:162
GX2InitPolygonOffsetReg
void GX2InitPolygonOffsetReg(GX2PolygonOffsetReg *reg, float frontOffset, float frontScale, float backOffset, float backScale, float clamp)
GX2SetStencilMask
void GX2SetStencilMask(uint8_t frontMask, uint8_t frontWriteMask, uint8_t frontRef, uint8_t backMask, uint8_t backWriteMask, uint8_t backRef)
GX2GetPolygonOffsetReg
void GX2GetPolygonOffsetReg(GX2PolygonOffsetReg *reg, float *frontOffset, float *frontScale, float *backOffset, float *backScale, float *clamp)
GX2SetAlphaToMaskReg
void GX2SetAlphaToMaskReg(GX2AlphaToMaskReg *reg)
GX2SetScissor
void GX2SetScissor(uint32_t x, uint32_t y, uint32_t width, uint32_t height)
GX2StencilMaskReg
Definition: registers.h:92
GX2ViewportReg::pa_cl_gb_vert_clip_adj
uint32_t pa_cl_gb_vert_clip_adj
Definition: registers.h:168
GX2BlendConstantColorReg::blue
float blue
Definition: registers.h:69
GX2BlendConstantColorReg::alpha
float alpha
Definition: registers.h:70
GX2SetPointLimitsReg
void GX2SetPointLimitsReg(GX2PointLimitsReg *reg)
GX2AlphaTestReg
Definition: registers.h:40
GX2PointSizeReg
Definition: registers.h:108
GX2CompareFunction
GX2CompareFunction
Definition: enum.h:139
GX2SetBlendConstantColor
void GX2SetBlendConstantColor(float red, float green, float blue, float alpha)
GX2SetScissorReg
void GX2SetScissorReg(GX2ScissorReg *reg)
GX2GetLineWidthReg
void GX2GetLineWidthReg(GX2LineWidthReg *reg, float *width)
GX2SetPolygonOffset
void GX2SetPolygonOffset(float frontOffset, float frontScale, float backOffset, float backScale, float clamp)
GX2GetBlendControlReg
void GX2GetBlendControlReg(GX2BlendControlReg *reg, GX2RenderTarget *target, GX2BlendMode *colorSrcBlend, GX2BlendMode *colorDstBlend, GX2BlendCombineMode *colorCombine, BOOL *useAlphaBlend, GX2BlendMode *alphaSrcBlend, GX2BlendMode *alphaDstBlend, GX2BlendCombineMode *alphaCombine)
GX2StencilFunction
GX2StencilFunction
Definition: enum.h:310
GX2SetColorControlReg
void GX2SetColorControlReg(GX2ColorControlReg *reg)
GX2LogicOp
GX2LogicOp
Definition: enum.h:219
wut.h
GX2SetPointSizeReg
void GX2SetPointSizeReg(GX2PointSizeReg *reg)
GX2StencilMaskReg::db_stencilrefmask
uint32_t db_stencilrefmask
Definition: registers.h:94
GX2InitViewportReg
void GX2InitViewportReg(GX2ViewportReg *reg, float x, float y, float width, float height, float nearZ, float farZ)
GX2ViewportReg::pa_cl_vport_xoffset
uint32_t pa_cl_vport_xoffset
Definition: registers.h:163
GX2GetAlphaToMaskReg
void GX2GetAlphaToMaskReg(const GX2AlphaToMaskReg *reg, BOOL *alphaToMask, GX2AlphaToMaskMode *mode)
GX2InitLineWidthReg
void GX2InitLineWidthReg(GX2LineWidthReg *reg, float width)
GX2SetBlendControl
void GX2SetBlendControl(GX2RenderTarget target, GX2BlendMode colorSrcBlend, GX2BlendMode colorDstBlend, GX2BlendCombineMode colorCombine, BOOL useAlphaBlend, GX2BlendMode alphaSrcBlend, GX2BlendMode alphaDstBlend, GX2BlendCombineMode alphaCombine)
GX2GetAlphaTestReg
void GX2GetAlphaTestReg(const GX2AlphaTestReg *reg, BOOL *alphaTest, GX2CompareFunction *func, float *ref)
GX2GetAAMaskReg
void GX2GetAAMaskReg(GX2AAMaskReg *reg, uint8_t *upperLeft, uint8_t *upperRight, uint8_t *lowerLeft, uint8_t *lowerRight)
GX2SetBlendControlReg
void GX2SetBlendControlReg(GX2BlendControlReg *reg)
GX2ScissorReg
Definition: registers.h:144
GX2AlphaToMaskMode
GX2AlphaToMaskMode
Definition: enum.h:35
GX2BlendConstantColorReg::green
float green
Definition: registers.h:68
GX2ScissorReg::pa_sc_generic_scissor_br
uint32_t pa_sc_generic_scissor_br
Definition: registers.h:147
GX2InitBlendConstantColorReg
void GX2InitBlendConstantColorReg(GX2BlendConstantColorReg *reg, float red, float green, float blue, float alpha)
GX2GetDepthStencilControlReg
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)
GX2InitAAMaskReg
void GX2InitAAMaskReg(GX2AAMaskReg *reg, uint8_t upperLeft, uint8_t upperRight, uint8_t lowerLeft, uint8_t lowerRight)
GX2SetPointLimits
void GX2SetPointLimits(float min, float max)
GX2SetAAMaskReg
void GX2SetAAMaskReg(GX2AAMaskReg *reg)
GX2GetStencilMaskReg
void GX2GetStencilMaskReg(GX2StencilMaskReg *reg, uint8_t *frontMask, uint8_t *frontWriteMask, uint8_t *frontRef, uint8_t *backMask, uint8_t *backWriteMask, uint8_t *backRef)
GX2ViewportReg::pa_cl_gb_horz_clip_adj
uint32_t pa_cl_gb_horz_clip_adj
Definition: registers.h:170
GX2GetScissorReg
void GX2GetScissorReg(GX2ScissorReg *reg, uint32_t *x, uint32_t *y, uint32_t *width, uint32_t *height)
GX2PolygonMode
GX2PolygonMode
Definition: enum.h:251
GX2AlphaToMaskReg::db_alpha_to_mask
uint32_t db_alpha_to_mask
Definition: registers.h:51
GX2SetPointSize
void GX2SetPointSize(float width, float height)
GX2ColorControlReg
Definition: registers.h:78
GX2PolygonOffsetReg::pa_su_poly_offset_back_scale
uint32_t pa_su_poly_offset_back_scale
Definition: registers.h:133
GX2LineWidthReg
Definition: registers.h:101
GX2BlendConstantColorReg
Definition: registers.h:65
GX2SetAlphaTestReg
void GX2SetAlphaTestReg(GX2AlphaTestReg *reg)
GX2RenderTarget
GX2RenderTarget
Definition: enum.h:258
GX2InitTargetChannelMasksReg
void GX2InitTargetChannelMasksReg(GX2TargetChannelMaskReg *reg, GX2ChannelMask mask0, GX2ChannelMask mask1, GX2ChannelMask mask2, GX2ChannelMask mask3, GX2ChannelMask mask4, GX2ChannelMask mask5, GX2ChannelMask mask6, GX2ChannelMask mask7)
GX2ChannelMask
GX2ChannelMask
Definition: enum.h:113
GX2DepthStencilControlReg
Definition: registers.h:85
GX2BlendControlReg
Definition: registers.h:56
GX2InitPointSizeReg
void GX2InitPointSizeReg(GX2PointSizeReg *reg, float width, float height)
GX2ViewportReg
Definition: registers.h:160
GX2SetPolygonOffsetReg
void GX2SetPolygonOffsetReg(GX2PolygonOffsetReg *reg)
GX2SetColorControl
void GX2SetColorControl(GX2LogicOp rop3, uint8_t targetBlendEnable, BOOL multiWriteEnable, BOOL colorWriteEnable)
GX2GetViewportReg
void GX2GetViewportReg(GX2ViewportReg *reg, float *x, float *y, float *width, float *height, float *nearZ, float *farZ)
GX2SetPolygonControl
void GX2SetPolygonControl(GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack, BOOL polyMode, GX2PolygonMode polyModeFront, GX2PolygonMode polyModeBack, BOOL polyOffsetFrontEnable, BOOL polyOffsetBackEnable, BOOL polyOffsetParaEnable)
GX2GetPointLimitsReg
void GX2GetPointLimitsReg(GX2PointLimitsReg *reg, float *min, float *max)
GX2SetAlphaToMask
void GX2SetAlphaToMask(BOOL alphaToMask, GX2AlphaToMaskMode mode)
GX2SetViewport
void GX2SetViewport(float x, float y, float width, float height, float nearZ, float farZ)
GX2ViewportReg::pa_cl_vport_yoffset
uint32_t pa_cl_vport_yoffset
Definition: registers.h:165
GX2PointLimitsReg
Definition: registers.h:115
GX2SetCullOnlyControl
void GX2SetCullOnlyControl(GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack)
GX2InitScissorReg
void GX2InitScissorReg(GX2ScissorReg *reg, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
GX2InitPolygonControlReg
void GX2InitPolygonControlReg(GX2PolygonControlReg *reg, GX2FrontFace frontFace, BOOL cullFront, BOOL cullBack, BOOL polyMode, GX2PolygonMode polyModeFront, GX2PolygonMode polyModeBack, BOOL polyOffsetFrontEnable, BOOL polyOffsetBackEnable, BOOL polyOffsetParaEnable)
GX2PolygonOffsetReg
Definition: registers.h:129
GX2SetAAMask
void GX2SetAAMask(uint8_t upperLeft, uint8_t upperRight, uint8_t lowerLeft, uint8_t lowerRight)
GX2SetStencilMaskReg
void GX2SetStencilMaskReg(GX2StencilMaskReg *reg)
GX2GetPolygonControlReg
void GX2GetPolygonControlReg(GX2PolygonControlReg *reg, GX2FrontFace *frontFace, BOOL *cullFront, BOOL *cullBack, BOOL *polyMode, GX2PolygonMode *polyModeFront, GX2PolygonMode *polyModeBack, BOOL *polyOffsetFrontEnable, BOOL *polyOffsetBackEnable, BOOL *polyOffsetParaEnable)
GX2SetDepthOnlyControl
void GX2SetDepthOnlyControl(BOOL depthTest, BOOL depthWrite, GX2CompareFunction depthCompare)
GX2GetTargetChannelMasksReg
void GX2GetTargetChannelMasksReg(GX2TargetChannelMaskReg *reg, GX2ChannelMask *mask0, GX2ChannelMask *mask1, GX2ChannelMask *mask2, GX2ChannelMask *mask3, GX2ChannelMask *mask4, GX2ChannelMask *mask5, GX2ChannelMask *mask6, GX2ChannelMask *mask7)
GX2DepthStencilControlReg::db_depth_control
uint32_t db_depth_control
Definition: registers.h:87
GX2BlendControlReg::cb_blend_control
uint32_t cb_blend_control
Definition: registers.h:59
GX2PolygonControlReg::pa_su_sc_mode_cntl
uint32_t pa_su_sc_mode_cntl
Definition: registers.h:124
GX2InitAlphaTestReg
void GX2InitAlphaTestReg(GX2AlphaTestReg *reg, BOOL alphaTest, GX2CompareFunction func, float ref)
GX2SetLineWidthReg
void GX2SetLineWidthReg(GX2LineWidthReg *reg)
GX2BlendMode
GX2BlendMode
Definition: enum.h:74
GX2PolygonOffsetReg::pa_su_poly_offset_clamp
uint32_t pa_su_poly_offset_clamp
Definition: registers.h:135
GX2ViewportReg::pa_sc_vport_zmax
uint32_t pa_sc_vport_zmax
Definition: registers.h:173
GX2InitPointLimitsReg
void GX2InitPointLimitsReg(GX2PointLimitsReg *reg, float min, float max)
GX2SetTargetChannelMasksReg
void GX2SetTargetChannelMasksReg(GX2TargetChannelMaskReg *reg)
GX2StencilMaskReg::db_stencilrefmask_bf
uint32_t db_stencilrefmask_bf
Definition: registers.h:95
GX2GetBlendConstantColorReg
void GX2GetBlendConstantColorReg(GX2BlendConstantColorReg *reg, float *red, float *green, float *blue, float *alpha)
GX2AlphaTestReg::sx_alpha_ref
uint32_t sx_alpha_ref
Definition: registers.h:43
BOOL
int32_t BOOL
Definition: wut_types.h:4
GX2ViewportReg::pa_cl_vport_zoffset
uint32_t pa_cl_vport_zoffset
Definition: registers.h:167
GX2AlphaTestReg::sx_alpha_test_control
uint32_t sx_alpha_test_control
Definition: registers.h:42
GX2SetTargetChannelMasks
void GX2SetTargetChannelMasks(GX2ChannelMask mask0, GX2ChannelMask mask1, GX2ChannelMask mask2, GX2ChannelMask mask3, GX2ChannelMask mask4, GX2ChannelMask mask5, GX2ChannelMask mask6, GX2ChannelMask mask7)
GX2GetPointSizeReg
void GX2GetPointSizeReg(GX2PointSizeReg *reg, float *width, float *height)
GX2SetAlphaTest
void GX2SetAlphaTest(BOOL alphaTest, GX2CompareFunction func, float ref)
GX2PolygonOffsetReg::pa_su_poly_offset_back_offset
uint32_t pa_su_poly_offset_back_offset
Definition: registers.h:134
GX2PolygonOffsetReg::pa_su_poly_offset_front_offset
uint32_t pa_su_poly_offset_front_offset
Definition: registers.h:132
GX2InitAlphaToMaskReg
void GX2InitAlphaToMaskReg(GX2AlphaToMaskReg *reg, BOOL alphaToMask, GX2AlphaToMaskMode mode)
GX2TargetChannelMaskReg::cb_target_mask
uint32_t cb_target_mask
Definition: registers.h:155
GX2ViewportReg::pa_cl_vport_yscale
uint32_t pa_cl_vport_yscale
Definition: registers.h:164
GX2SetDepthStencilControl
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)
GX2InitColorControlReg
void GX2InitColorControlReg(GX2ColorControlReg *reg, GX2LogicOp rop3, uint8_t targetBlendEnable, BOOL multiWriteEnable, BOOL colorWriteEnable)
GX2PointLimitsReg::pa_su_point_minmax
uint32_t pa_su_point_minmax
Definition: registers.h:117
GX2ColorControlReg::cb_color_control
uint32_t cb_color_control
Definition: registers.h:80
GX2TargetChannelMaskReg
Definition: registers.h:153
GX2InitDepthStencilControlReg
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)
GX2ViewportReg::pa_sc_vport_zmin
uint32_t pa_sc_vport_zmin
Definition: registers.h:172
GX2ViewportReg::pa_cl_gb_vert_disc_adj
uint32_t pa_cl_gb_vert_disc_adj
Definition: registers.h:169
GX2InitStencilMaskReg
void GX2InitStencilMaskReg(GX2StencilMaskReg *reg, uint8_t frontMask, uint8_t frontWriteMask, uint8_t frontRef, uint8_t backMask, uint8_t backWriteMask, uint8_t backRef)
enum.h