From 385bb9538d2046901ea46b06652648ba9f29ae86 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Thu, 14 Nov 2024 20:10:40 +0300 Subject: [PATCH] Minor GX documentation improvements (#182) * doc: fix reference to GX_COLORZERO * doc: correct parameter type for GX_SetTevKColorS10 It takes the same input register as GX_SetTevKColor(). * doc: specify supported registers for GX_SetTevColor*() While setting GX_TEVPREV works in Dolphin, it does not work on a real hardware. --- gc/ogc/gx.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gc/ogc/gx.h b/gc/ogc/gx.h index 1ac9bc87..8202de2f 100644 --- a/gc/ogc/gx.h +++ b/gc/ogc/gx.h @@ -2566,7 +2566,7 @@ void GX_SetTevOp(u8 tevstage,u8 mode); * * \note This function can only set unsigned 8-bit colors. To set signed, 10-bit colors use GX_SetTevColorS10(). * - * \param[in] tev_regid \ref tevcoloutreg. + * \param[in] tev_regid \ref tevcoloutreg. Only GX_TEVREG0, GX_TEVREG1 and GX_TEVREG2 are supported. * \param[in] color Constant color value. * * \return none @@ -2582,7 +2582,7 @@ void GX_SetTevColor(u8 tev_regid,GXColor color); * * \note This function enables the color components to be signed 10-bit numbers. To set 8-bit unsigned colors (the common case), use GX_SetTevColor(). * - * \param[in] tev_regid \ref tevcoloutreg. + * \param[in] tev_regid \ref tevcoloutreg. Only GX_TEVREG0, GX_TEVREG1 and GX_TEVREG2 are supported. * \param[in] color Constant color value in S10 format. * * \return none @@ -3035,7 +3035,7 @@ void GX_SetNumChans(u8 num); * available for all the active TEV stages is set using GX_SetNumChans(). Active TEV stages should not reference more texture coordinates or colors * than are being generated.

* - * \note There are some special settings for the \a color argument. If you specify GX_COLOR_ZERO, you always get zero as rasterized color. If you specify + * \note There are some special settings for the \a color argument. If you specify GX_COLORZERO, you always get zero as rasterized color. If you specify * GX_ALPHA_BUMP or GX_ALPHA_BUMPN, you can use "Bump alpha" component from indirect texture unit as rasterized color input (see GX_SetTevIndirect() * for details about how to configure bump alpha). Since bump alpha contains only 5-bit data, GX_ALPHA_BUMP shifts them to higher bits, which makes the * value range 0-248. Meanwhile GX_ALPHA_BUMPN performs normalization and you can get the value range 0-255. @@ -3156,7 +3156,7 @@ void GX_SetTevKAlphaSel(u8 tevstage,u8 sel); * * \note This function takes 10-bit signed values as color values; use GX_SetTevColor() to give 8-bit values. * - * \param[in] sel \ref tevcoloutreg + * \param[in] sel \ref tevkcolorid * \param[in] col constant color value * * \return none