PicaMacroHeaderThese are the PICA register macro headers.
| PicaDataFragLightSampler | The type of the lookup table for fragment lighting. Used with the PICA_REG_FRAG_LIGHT_LUT register (0x1c5). |
|
|---|---|---|
| PicaDataFragLightEnvLutInput | Used for the PICA_REG_FRAG_LIGHT_LUTINPUT register (0x1d1), which is used for setting lookup table entries. This corresponds to setting the dmp_LightEnv.lutInput* uniform. |
|
| PicaDataFragLightEnvLutScale | Used for the PICA_REG_FRAG_LIGHT_LUTSCALE register (0x1d2), which sets the scaling of output values from the lookup table. This corresponds to setting the dmp_LightEnv.lutScale* uniform. |
|
| PicaDataFragLightEnvTexture | Used for the PICA_REG_FRAG_LIGHT_FUNC_MODE registers (0x1c3[23:22], 0x1c3[25:24]), which are used for setting fragment lighting textures. This corresponds to setting the dmp_LightEnv.shadowSelector and dmp_LightEnv.bumpSelector uniforms. |
|
| PicaDataFragLightEnvLayerConfig | Used for the PICA_REG_FRAG_LIGHT_FUNC_MODE register (0x1c3[7:4]), which sets the layer configurations for fragment lighting. This corresponds to setting the dmp_LightEnv.config uniform. |
|
| PicaDataFragLightEnvFresnel | Used for the PICA_REG_FRAG_LIGHT_FUNC_MODE register (0x1c3[3:2]), which is used for setting the Fresnel factor for fragment lighting. This corresponds to setting the dmp_LightEnv.fresnelSelector uniform. |
|
| PicaDataFragLightEnvBump | Used for the PICA_REG_FRAG_LIGHT_FUNC_MODE register (0x1c3[29:28]), which is used when bump mapping with fragment lighting to set how normals and tangents. This corresponds to setting the dmp_LightEnv.bumpMode uniform. |
|
| PicaDataColorPixelSize | The pixel size for a color buffer format. Used with the PICA_REG_RENDER_BUFFER_COLOR_MODE register (0x117[1:0]). |
|
| PicaDataColor | The color buffer format. Used with the PICA_REG_RENDER_BUFFER_COLOR_MODE register (0x117[18:16]). |
|
| PicaDataDepth | The depth buffer format. Used with the PICA_REG_RENDER_BUFFER_DEPTH_MODE register (0x116[1:0]). |
|
| PicaDataGasColorLutInput | Input for a gas shading lookup table. Used with the PICA_REG_GAS_LIGHT_Z_COLOR register (0x122[8:8]). Corresponds to the dmp_Gas.colorLutInput uniform. |
|
| PicaDataDepthTest2 | Sets the comparison function for a depth test. Used with the PICA_REG_GAS_DELTAZ_DEPTH register (0x126[25:24]). Corresponds to the glDepthFunc function argument func. |
|
| PicaDataFogMode | Sets the fog feature. Used with the PICA_REG_GAS_FOG_MODE register (0x0e0[2:0]). Corresponds to the dmp_Fog.mode uniform. |
|
| PicaDataGasShadingDensitySrc | Sets the density information to use for gas shading. Used with the PICA_REG_GAS_FOG_MODE register (0x0e0[3:0]). Corresponds to the dmp_Gas.shadingDensitySrc uniform. |
|
| PicaDataFragOpMode | Sets fragment operations. Used with the PICA_REG_COLOR_OPERATION register (0x100[1:0]). Corresponds to the dmp_FragOperation.mode uniform. |
|
| PicaDataColorLogicOp | Sets logical operations and blending. Used with the PICA_REG_COLOR_OPERATION register (0x100[8:0]). Corresponds to glEnable(GL_COLOR_LOGIC_OP) and glDisable(GL_COLOR_LOGIC_OP). |
|
| PicaDataAlphaTest | Sets the comparison function for the Alpha test. Used with the PICA_REG_FRAGOP_ALPHA_TEST register (0x104[6:4] ). Corresponds to the dmp_FragOperation.alphaTestFunc uniform. |
|
| PicaDataDepthTest | Sets the comparison function for a depth test. Used with the PICA_REG_DEPTH_COLOR_MASK register (0x107[6:4]). Corresponds to the glDepthFunc function argument func. |
|
| PicaDataBlendEquation | Sets the blending mode. Used with the PICA_REG_DEPTH_COLOR_MASK register (0x101[2:0]). Corresponds to the functions glBlendEquation and glBlendEquationSeparate. |
|
| PicaDataBlendFunc | Sets the blending function. Used with the PICA_REG_DEPTH_COLOR_MASK register (0x101[19:16]). Corresponds to the arguments of the functions glBlendFunc and glBlendFuncSeparate. |
|
| PicaDataLogicOp | Sets the logical operation. Used with the PICA_REG_LOGIC_OP register (0x102[3:0]). Corresponds to the glLogicOp function argument opcode. |
|
| PicaDataEarlyDepth | Sets the comparison function for the early depth test. Used with the PICA_REG_EARLY_DEPTH_FUNC register (0x061[1:0]). Corresponds to the glEarlyDepthFuncDMP function. |
|
| PicaDataStencilTest | Sets the comparison function for a stencil test. Used with the PICA_REG_STENCIL_TEST register (0x105[6:4] ). Corresponds to the glStencilFunc function argument func. |
|
| PicaDataStencilOp | Sets the method for changing the stencil buffer. Used with the PICA_REG_STENCIL_OP registers (0x106[2:0], [6:4], [10:8]). Corresponds to the glStencilOp function arguments func, zfail, and zpass. |
|
| PicaDataRenderBlockFormat | Sets the block format for rendering. Used with the PICA_REG_RENDER_BLOCK_FORMAT register (0 0x11b[0:0]). Corresponds to the glRenderBlockModeDMPfunction. |
|
| PicaReg | Enumerated type for the PICA register. | |
| PicaDataVSFloat | Sets the floating point input mode for the vertex shader. Used with the PICA_REG_VS_FLOAT_ADDR register (0x2c0[31:31]). |
|
| PicaDataDrawMode | Sets the rendering mode. Used with the PICA_REG_VS_OUT_REG_NUM3 register (0x25e[8:8]). |
|
| PicaDataVSOutAttr | Sets the attributes of the output from the vertex shader. Used with the PICA_REG_VS_OUT_REG_NUM3 registers (0x050-0x056). |
|
| PicaDataVertexAttrType | Sets the type of the internal vertex attribute. Used with the PICA_REG_VERTEX_ATTR_ARRAYS0-1 registers (00x201-0x202) Corresponds to the glVertexAttribPointer function. |
|
| PicaDataVertexAttr | Sets the load array elements. Used with the PICA_REG_LOAD_ARRAY_ELEMENTS0-1 registers (0x204-0x205). |
|
| PicaDataGSFloat | Sets the floating point input mode for the geometry shader. Used with the PICA_REG_GS_FLOAT_ADDR register (0x290[31:31]). |
|
| PicaDataGSMode | Sets the mode of the geometry shader. Used with the PICA_REG_GS_MISC_REG0 register (0x252[31:0]). |
|
| PicaDataTexture | Sets the target for texture 0. | |
| PicaDataTexEnvSrc | Sets srcRgb and srcAlpha for the texture combiners. Used with the PICA_REG_TEX_ENV* registers. Corresponds to the dmp_TexEnv[i].srcRgb and dmp_TexEnv[i].srcAlpha uniforms. |
|
| PicaDataTexEnvOperand | Sets operandRgb and operandAlpha for the texture combiners. Used with the PICA_REG_TEX_ENV*_OPERAND registers. Corresponds to the dmp_TexEnv[i].srcRgb and dmp_TexEnv[i].srcAlpha uniforms. |
|
| PicaDataTexEnvCombine | Sets combineRgb and combineAlpha for the texture combiners. Used with the PICA_REG_TEX_ENV*_COMBINE registers. Corresponds to the dmp_TexEnv[i].combineRgb and dmp_TexEnv[i].combineAlpha uniforms. |
|
| PicaDataTexEnvScale | Sets scaleRgb and scaleAlpha for the texture combiners. Used with the PICA_REG_TEX_ENV*_SCALE registers. Corresponds to the dmp_TexEnv[i].scaleRgb and dmp_TexEnv[i].scaleAlpha uniforms. |
|
| PicaDataTexEnvBufferInput | Sets bufferInput for the texture combiners. Used with the PPICA_REG_TEX_ENV_BUF_INPUT register (0x0e0). Corresponds to the dmp_TexEnv[i].bufferInput uniform. |
|
| PicaDataTexture0SamplerType | Sets the sampler type for texture 0. Used with the PICA_REG_TEXTURE_FUNC register (0x080[30:28]). Corresponds to the dmp_Texture[0].samplerType uniform. |
|
| PicaDataTexture1SamplerType | Sets the sampler type for texture 1. Used with the PICA_REG_TEXTURE_FUNC register (0x080[1:1]). Corresponds to the dmp_Texture[1].samplerType uniform. |
|
| PicaDataTexture2SamplerType | Sets the sampler type for texture 2. Used with the PICA_REG_TEXTURE_FUNC register (0x080[2:2]). Corresponds to the dmp_Texture[2].samplerType uniform. |
|
| PicaDataTexture3SamplerType | Sets the sampler type for texture 3. Used with the PICA_REG_TEXTURE_FUNC register (0x080 [10:10]). Corresponds to the dmp_Texture[3].samplerType uniform. |
|
| PicaDataTexture2TexCoord | Sets the texture coordinates for texture 2. Used with the PICA_REG_TEXTURE_FUNC register (0x080 [13:13]). Corresponds to the dmp_Texture[2].texcoord uniform. |
|
| PicaDataTexture3TexCoord | Sets the texture coordinates for texture 3. Used with the PICA_REG_TEXTURE_FUNC register (0x080[9:8]). Corresponds to the dmp_Texture[3].texcoord uniform. |
|
| PicaDataProcTexMap | Sets the function to use to calculate procedural textures. Used with the PICA_REG_TEXTURE3_PROCTEX0 register (0x0a8[9:6]). Corresponds to the dmp_Texture[3].ptRgbMap and dmp_Texture[3].ptAlphaMap uniforms. |
|
| PicaDataProcTexClamp | Sets the clamping method for procedural textures. Used with the PICA_REG_TEXTURE3_PROCTEX0 register (0x0a8[2:0], [5:3]). Corresponds to the dmp_Texture[3].ptClampU and dmp_Texture[3].ptClampV uniforms. |
|
| PicaDataProcTexShift | Sets the coordinate shift method for procedural textures. Used with the PICA_REG_TEXTURE3_PROCTEX0 registers (0x0a8[17:16], [19:18]). Corresponds to the dmp_Texture[3].ptShiftU and dmp_Texture[3].ptShiftV uniforms. |
|
| PicaDataProcTexFilter | Sets MinFilter for procedural textures. Used with the PICA_REG_TEXTURE3_PROCTEX0 register (0x0a8[2:0]). Corresponds to the dmp_Texture[3].ptMinFilter uniform. |
|
| PicaDataProcTexRefTable | Sets the lookup table for procedural textures. Used with the PICA_REG_PROCTEX_LUT register (0x0af [2:0]). Corresponds to the dmp_Texture[3].ptSampler uniform. |
|
| PicaDataTextureFormat | Sets the texture format. Used with the PICA_REG_TEXTURE*_FORMAT registers (0x08e[3:0], 0x096[3:0], 0x09e[3:0]). Corresponds to the glTexImage2D function arguments format and type and the glCompressedTexImage2D function argument internalformat. |
|
| PicaDataTextureMagFilter | Sets the texture's MAG filter mode. Used with the PICA_REG_TEXTURE*_WRAP_FILTER registers (0x83[1:1], 0x93[1:1], 0x9b[1:1]). Corresponds to glTexParameter{if}( TEXTURE_MAG_FILTER, ...). |
|
| PicaDataTextureMinFilter | Sets the texture's MIN filter mode. Used with the PICA_REG_TEXTURE*_WRAP_FILTER registers (0x83[24:24, 2:2], 0x93[24:24, 2:2], 0x9b[24:24, 2:2]). Corresponds to glTexParameter{if}( TEXTURE_MIN_FILTER, ...). |
|
| PicaDataTextureWrap | Sets the texture's wrap mode. Used with the PICA_REG_TEXTURE*_WRAP_FILTER registers (0x83[14:12, 10:8], 0x93[14:12, 10:8], 0x9b[14:12, 10:8]). Corresponds to glTexParameter{if}( TEXTURE_WRAP_*, ...). |
CONFIDENTIAL