|
psl1ght
A free SDK for Sony's PS3 console
|
Go to the source code of this file.
Functions | |
| void RSX_FUNC() | SetFrontFace (gcmContextData *context, u32 dir) |
| Set drawing direction of front face. | |
| void RSX_FUNC() | SetCullFace (gcmContextData *context, u32 cull) |
| Set culling mode. | |
| void RSX_FUNC() | SetCullFaceEnable (gcmContextData *context, u32 enable) |
| Enable/Disable face culling. | |
| void RSX_FUNC() | SetFrontPolygonMode (gcmContextData *context, u32 mode) |
| Control front-facing polygon rendering. | |
| void RSX_FUNC() | SetBackPolygonMode (gcmContextData *context, u32 mode) |
| Control back-facing polygon rendering. | |
| void RSX_FUNC() | SetPolygonOffsetFillEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetPolygonOffset (gcmContextData *context, f32 factor, f32 units) |
| void RSX_FUNC() | SetPolygonOffsetLineEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetDepthWriteEnable (gcmContextData *context, u32 enable) |
| Enable/Disable write to depth buffer. | |
| void RSX_FUNC() | DrawVertexEnd (gcmContextData *context) |
| Stop the render sequence. | |
| void RSX_FUNC() | SetShadeModel (gcmContextData *context, u32 shadeModel) |
| Set the shading model for the render sequence. | |
| void RSX_FUNC() | DrawVertexBegin (gcmContextData *context, u32 type) |
| Start the render sequence. | |
| void RSX_FUNC() | DrawVertex1f (gcmContextData *context, u8 idx, f32 v) |
| void RSX_FUNC() | DrawVertex2f (gcmContextData *context, u8 idx, const f32 v[2]) |
| void RSX_FUNC() | DrawVertex3f (gcmContextData *context, u8 idx, const f32 v[3]) |
| void RSX_FUNC() | DrawVertex4f (gcmContextData *context, u8 idx, const f32 v[4]) |
| void RSX_FUNC() | DrawVertex4s (gcmContextData *context, u8 idx, const s16 v[4]) |
| void RSX_FUNC() | DrawVertexScaled4s (gcmContextData *context, u8 idx, const s16 v[4]) |
| void RSX_FUNC() | DrawVertex2s (gcmContextData *context, u8 idx, const s16 v[2]) |
| void RSX_FUNC() | DrawVertex4ub (gcmContextData *context, u8 idx, const u8 v[4]) |
| void RSX_FUNC() | SetScissor (gcmContextData *context, u16 x, u16 y, u16 w, u16 h) |
| void RSX_FUNC() | SetDepthFunc (gcmContextData *context, u32 func) |
| Specify the value used for depth buffer comparisons. | |
| void RSX_FUNC() | SetDepthTestEnable (gcmContextData *context, u32 enable) |
| Enable or disable the depth test. | |
| void RSX_FUNC() | SetDepthFormat (gcmContextData *context, u32 format) |
| Set depth format. | |
| void RSX_FUNC() | ClearSurface (gcmContextData *context, u32 clear_mask) |
| Clear the render surface. | |
| void RSX_FUNC() | SetClearDepthStencil (gcmContextData *context, u32 value) |
| Set the clear depth value. | |
| void RSX_FUNC() | SetReturnCommand (gcmContextData *context) |
| void RSX_FUNC() | SetCallCommand (gcmContextData *context, u32 offset) |
| void RSX_FUNC() | SetJumpCommand (gcmContextData *context, u32 offset) |
| void RSX_FUNC() | SetNopCommand (gcmContextData *context, u32 count) |
| void RSX_FUNC() | SetSkipNop (gcmContextData *context, u32 count) |
| void RSX_FUNC() | SetClearColor (gcmContextData *context, u32 color) |
| Set the clear color. | |
| void RSX_FUNC() | SetColorMask (gcmContextData *context, u32 mask) |
| Enable or disable write access to the framebuffer color components. | |
| void RSX_FUNC() | SetColorMaskMrt (gcmContextData *context, u32 mask) |
| Enable or disable write access to the framebuffer color components (Multiple Render Target output). | |
| void RSX_FUNC() | SetPointSpriteControl (gcmContextData *context, u32 enable, u32 rmode, u32 texcoordMask) |
| void RSX_FUNC() | SetPointSize (gcmContextData *context, f32 size) |
| void RSX_FUNC() | SetAntialiasingControl (gcmContextData *context, u32 enable, u32 alphaToCoverage, u32 alphaToOne, u32 sampleMask) |
| void RSX_FUNC() | SetCylindricalWrap (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetStencilFunc (gcmContextData *context, u32 func, u32 ref, u32 mask) |
| void RSX_FUNC() | SetStencilMask (gcmContextData *context, u32 mask) |
| void RSX_FUNC() | SetStencilOp (gcmContextData *context, u32 fail, u32 depthFail, u32 depthPass) |
| void RSX_FUNC() | SetStencilTestEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetBackStencilFunc (gcmContextData *context, u32 func, u32 ref, u32 mask) |
| void RSX_FUNC() | SetBackStencilMask (gcmContextData *context, u32 mask) |
| void RSX_FUNC() | SetBackStencilOp (gcmContextData *context, u32 fail, u32 depthFail, u32 depthPass) |
| void RSX_FUNC() | SetTwoSidedStencilTestEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetTwoSideLightEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetRenderEnable (gcmContextData *context, u8 mode, u32 index) |
| void RSX_FUNC() | SetReport (gcmContextData *context, u32 type, u32 index) |
| void RSX_FUNC() | SetClearReport (gcmContextData *context, u32 type) |
| void RSX_FUNC() | SetSCullControl (gcmContextData *context, u8 sFunc, u8 sRef, u8 sMask) |
| void RSX_FUNC() | SetZCullEnable (gcmContextData *context, u32 depth, u32 stencil) |
| void RSX_FUNC() | SetClearZCullSurface (gcmContextData *context, u32 depth, u32 stencil) |
| void RSX_FUNC() | SetZCullLimit (gcmContextData *context, u16 moveforwardlimit, u16 pushbacklimit) |
| void RSX_FUNC() | SetZCullControl (gcmContextData *context, u8 zculldir, u8 zcullformat) |
| void RSX_FUNC() | SetZCullStatsEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetZCullInvalidate (gcmContextData *context) |
| void RSX_FUNC() | SetPolygonSmoothEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetDitherEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetSurface (gcmContextData *context, const gcmSurface *surface) |
| Setup the render surface. | |
| void RSX_FUNC() | SetReferenceCommand (gcmContextData *context, u32 ref_value) |
| void RSX_FUNC() | SetWaitLabel (gcmContextData *context, u8 index, u32 value) |
| Enqueues a Wait for label command. | |
| void RSX_FUNC() | SetWriteCommandLabel (gcmContextData *context, u8 index, u32 value) |
| Enqueues a Write Command label command. | |
| void RSX_FUNC() | SetWriteBackendLabel (gcmContextData *context, u8 index, u32 value) |
| Enqueues a Write Backend label command. | |
| void RSX_FUNC() | SetWriteTextureLabel (gcmContextData *context, u8 index, u32 value) |
| void RSX_FUNC() | SetViewportClip (gcmContextData *context, u8 sel, u16 width, u16 height) |
| void RSX_FUNC() | SetViewport (gcmContextData *context, u16 x, u16 y, u16 width, u16 height, f32 min, f32 max, const f32 scale[4], const f32 offset[4]) |
| Set viewport. | |
| void RSX_FUNC() | InvalidateTextureCache (gcmContextData *context, u32 type) |
| Invalidates a texture cache. | |
| void RSX_FUNC() | InvalidateVertexCache (gcmContextData *context) |
| void RSX_FUNC() | LoadTexture (gcmContextData *context, u8 index, const gcmTexture *texture) |
| Loads a texture. | |
| void RSX_FUNC() | TextureControl (gcmContextData *context, u8 index, u32 enable, u16 minlod, u16 maxlod, u8 maxaniso) |
| Set texture control parameters. | |
| void RSX_FUNC() | TextureFilter (gcmContextData *context, u8 index, u16 bias, u8 min, u8 mag, u8 conv) |
| void RSX_FUNC() | TextureWrapMode (gcmContextData *context, u8 index, u8 wraps, u8 wrapt, u8 wrapr, u8 unsignedRemap, u8 zfunc, u8 gamma) |
| void RSX_FUNC() | TextureBorderColor (gcmContextData *context, u8 index, u32 color) |
| void RSX_FUNC() | TextureOptimization (gcmContextData *context, u8 index, u8 slope, u8 iso, u8 aniso) |
| void RSX_FUNC() | TextureAnisoSpread (gcmContextData *context, u8 index, u8 reduceSamplesEnable, u8 hReduceSamplesEnable, u8 vReduceSamplesEnable, u8 spacingSelect, u8 hSpacingSelect, u8 vSpacingSelect) |
| void RSX_FUNC() | LoadVertexTexture (gcmContextData *context, u8 index, const gcmTexture *texture) |
| void RSX_FUNC() | VertexTextureControl (gcmContextData *context, u8 index, u32 enable, u16 minlod, u16 maxlod) |
| void RSX_FUNC() | VertexTextureFilter (gcmContextData *context, u8 index, u16 bias) |
| void RSX_FUNC() | VertexTextureWrapMode (gcmContextData *context, u8 index, u8 wraps, u8 wrapt) |
| void RSX_FUNC() | VertexTextureBorderColor (gcmContextData *context, u8 index, u32 color) |
| void RSX_FUNC() | LoadVertexProgram (gcmContextData *context, const rsxVertexProgram *program, const void *ucode) |
| Load a compiled vertex shader program. | |
| void RSX_FUNC() | LoadFragmentProgramLocation (gcmContextData *context, const rsxFragmentProgram *program, u32 offset, u32 location) |
| Load a compiled fragment shader program. | |
| void RSX_FUNC() | UpdateFragmentProgramLocation (gcmContextData *context, u32 offset, u32 location) |
| void RSX_FUNC() | SetFragmentProgramControl (gcmContextData *context, const rsxFragmentProgram *program, u8 allowTex, u8 reserved0, u8 reserved1) |
| void RSX_FUNC() | LoadVertexProgramBlock (gcmContextData *context, const rsxVertexProgram *program, const void *ucode) |
| void RSX_FUNC() | LoadVertexProgramParameterBlock (gcmContextData *context, u32 base_const, u32 const_cnt, const f32 *value) |
| void RSX_FUNC() | SetVertexProgramParameter (gcmContextData *context, const rsxVertexProgram *program, const rsxProgramConst *param, const f32 *value) |
| void RSX_FUNC() | SetVertexProgramConstants (gcmContextData *context, u32 start, u32 count, const f32 *data) |
| void RSX_FUNC() | SetFragmentProgramParameter (gcmContextData *context, const rsxFragmentProgram *program, const rsxProgramConst *param, const f32 *value, u32 offset, u32 location) |
| void RSX_FUNC() | DrawVertexArray (gcmContextData *context, u32 type, u32 start, u32 count) |
| void RSX_FUNC() | BindVertexArrayAttrib (gcmContextData *context, u8 attr, u16 frequency, u32 offset, u8 stride, u8 elems, u8 dtype, u8 location) |
| void RSX_FUNC() | DrawIndexArray (gcmContextData *context, u8 type, u32 offset, u32 count, u8 data_type, u8 location) |
| void RSX_FUNC() | DrawInlineIndexArray16 (gcmContextData *context, u8 type, u32 start, u32 count, const u16 *data) |
| void RSX_FUNC() | DrawInlineIndexArray32 (gcmContextData *context, u8 type, u32 start, u32 count, const u32 *data) |
| void RSX_FUNC() | InlineTransfer (gcmContextData *context, u32 dstOffset, const void *srcAddress, u32 sizeInWords, u8 location) |
| void RSX_FUNC() | SetUserClipPlaneControl (gcmContextData *context, u32 plane0, u32 plane1, u32 plane2, u32 plane3, u32 plane4, u32 plane5) |
| void RSX_FUNC() | SetAlphaFunc (gcmContextData *context, u32 alphaFunc, u32 ref) |
| void RSX_FUNC() | SetAlphaTestEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetBlendEnableMrt (gcmContextData *context, u32 mrt1, u32 mrt2, u32 mrt3) |
| void RSX_FUNC() | SetBlendOptimization (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetLogicOp (gcmContextData *context, u32 op) |
| void RSX_FUNC() | SetLogicOpEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetFogMode (gcmContextData *context, u32 mode) |
| void RSX_FUNC() | SetFogParams (gcmContextData *context, f32 p0, f32 p1) |
| void RSX_FUNC() | SetZMinMaxControl (gcmContextData *context, u8 cullNearFar, u8 zClampEnable, u8 cullIgnoreW) |
| void RSX_FUNC() | SetZPixelCountEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetVertexAttribOutputMask (gcmContextData *context, u32 mask) |
| void RSX_FUNC() | SetFrequencyDividerOperation (gcmContextData *context, u16 operation) |
| void RSX_FUNC() | SetFragmentProgramGammaEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetRestartIndexEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetRestartIndex (gcmContextData *context, u32 index) |
| void RSX_FUNC() | SetDepthBoundsTestEnable (gcmContextData *context, u32 enable) |
| void RSX_FUNC() | SetDepthBounds (gcmContextData *context, f32 zMin, f32 zMax) |
| void RSX_FUNC() | SetBlendFunc (gcmContextData *context, u16 sfcolor, u16 dfcolor, u16 sfalpha, u16 dfalpha) |
| Specify pixel arithmetic. | |
| void RSX_FUNC() | SetBlendEquation (gcmContextData *context, u16 color, u16 alpha) |
| Set the blend equation. | |
| void RSX_FUNC() | SetBlendColor (gcmContextData *context, u32 color0, u32 color1) |
| Set the blending constant color. | |
| void RSX_FUNC() | SetBlendEnable (gcmContextData *context, u32 enable) |
| Enable or disable blending. | |
| void RSX_FUNC() | SetTransformBranchBits (gcmContextData *context, u32 branchBits) |
| void RSX_FUNC() | SetTransferDataMode (gcmContextData *context, u8 mode) |
| Configuration the mode for an upcoming asynchronous RSX DMA transfer. | |
| void RSX_FUNC() | SetTransferDataOffset (gcmContextData *context, u32 dst, u32 src) |
| Specify the memory locations for an RSX DMA transfer. This function should be called after rsxSetTransferDataMode() and rsxSetTransferDataFormat(). | |
| void RSX_FUNC() | SetTransferDataFormat (gcmContextData *context, s32 inpitch, s32 outpitch, u32 linelength, u32 linecount, u8 inbytes, u8 outbytes) |
| Format an upcoming asynchronous RSX DMA transfer. | |
| void RSX_FUNC() | SetTransferData (gcmContextData *context, u8 mode, u32 dst, u32 outpitch, u32 src, u32 inpitch, u32 linelength, u32 linecount) |
| Initiate an asynchronous RSX DMA transfer. | |
| void RSX_FUNC() | SetTransferScaleMode (gcmContextData *context, u8 mode, u8 surface) |
| Configure an upcoming asynchronous RSX blit. | |
| void RSX_FUNC() | SetTransferScaleSurface (gcmContextData *context, const gcmTransferScale *scale, const gcmTransferSurface *surface) |
| Initiate an asynchronous RSX blit. | |
| void RSX_FUNC() | SetTransferImage (gcmContextData *context, u8 mode, u32 dstOffset, u32 dstPitch, u32 dstX, u32 dstY, u32 srcOffset, u32 srcPitch, u32 srcX, u32 srcY, u32 width, u32 height, u32 bytesPerPixel) |
| Initialiate an asynchronous transfer of a rectangular image from one area of memory to another. | |
| void RSX_FUNC() | SetTimeStamp (gcmContextData *context, u32 index) |
| void RSX_FUNC() | SetConvertSwizzleFormat (gcmContextData *context, u32 dstOffset, u32 dstWidth, u32 dstHeight, u32 dstX, u32 dstY, u32 srcOffset, u32 srcPitch, u32 srcX, u32 srcY, u32 width, u32 height, u32 bytesPerPixel, u32 mode) |
| void RSX_FUNC() | SetTransferScaleSwizzle (gcmContextData *context, const gcmTransferScale *scale, const gcmTransferSwizzle *swizzle) |
| void RSX_FUNC() | SetWaitForIdle (gcmContextData *context) |
| void RSX_FUNC() | FlushBuffer (gcmContextData *context) |
| Flushes the RSX command buffer. | |
| void RSX_FUNC() | ResetCommandBuffer (gcmContextData *context) |
| Reset the RSX command buffer. | |
| void RSX_FUNC() | Finish (gcmContextData *context, u32 ref_value) |
| void RSX_FUNC() BindVertexArrayAttrib | ( | gcmContextData * | context, |
| u8 | attr, | ||
| u16 | frequency, | ||
| u32 | offset, | ||
| u8 | stride, | ||
| u8 | elems, | ||
| u8 | dtype, | ||
| u8 | location | ||
| ) |
| void RSX_FUNC() ClearSurface | ( | gcmContextData * | context, |
| u32 | clear_mask | ||
| ) |
Clear the render surface.
This function clears the chosen selection of color components, depth and stencil values for all pixels in the destination surface. The clear color can be chosen using rsxSetClearColor, and the clear value for the depth buffer is set using rsxSetClearDepthValue.
| context | Pointer to the context object. |
| clear_mask | A selection of components to be cleared. Must be an OR combination of the following values:
|
| void RSX_FUNC() DrawIndexArray | ( | gcmContextData * | context, |
| u8 | type, | ||
| u32 | offset, | ||
| u32 | count, | ||
| u8 | data_type, | ||
| u8 | location | ||
| ) |
| void RSX_FUNC() DrawInlineIndexArray16 | ( | gcmContextData * | context, |
| u8 | type, | ||
| u32 | start, | ||
| u32 | count, | ||
| const u16 * | data | ||
| ) |
| void RSX_FUNC() DrawInlineIndexArray32 | ( | gcmContextData * | context, |
| u8 | type, | ||
| u32 | start, | ||
| u32 | count, | ||
| const u32 * | data | ||
| ) |
| void RSX_FUNC() DrawVertex1f | ( | gcmContextData * | context, |
| u8 | idx, | ||
| f32 | v | ||
| ) |
| void RSX_FUNC() DrawVertex2f | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const f32 | v[2] | ||
| ) |
| void RSX_FUNC() DrawVertex2s | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const s16 | v[2] | ||
| ) |
| void RSX_FUNC() DrawVertex3f | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const f32 | v[3] | ||
| ) |
| void RSX_FUNC() DrawVertex4f | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const f32 | v[4] | ||
| ) |
| void RSX_FUNC() DrawVertex4s | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const s16 | v[4] | ||
| ) |
| void RSX_FUNC() DrawVertex4ub | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const u8 | v[4] | ||
| ) |
| void RSX_FUNC() DrawVertexArray | ( | gcmContextData * | context, |
| u32 | type, | ||
| u32 | start, | ||
| u32 | count | ||
| ) |
| void RSX_FUNC() DrawVertexBegin | ( | gcmContextData * | context, |
| u32 | type | ||
| ) |
Start the render sequence.
Starts the rendering for a primitive.
| context | Pointer to the context object. |
| type | Type of primitive to render. Possible values are: |
| void RSX_FUNC() DrawVertexEnd | ( | gcmContextData * | context | ) |
Stop the render sequence.
Stops the rendering for a primitive, started by rsxDrawVertexBegin.
| context | Pointer to the context object. |
| void RSX_FUNC() DrawVertexScaled4s | ( | gcmContextData * | context, |
| u8 | idx, | ||
| const s16 | v[4] | ||
| ) |
| void RSX_FUNC() Finish | ( | gcmContextData * | context, |
| u32 | ref_value | ||
| ) |
| void RSX_FUNC() FlushBuffer | ( | gcmContextData * | context | ) |
Flushes the RSX command buffer.
This ensures all remaining commands in the command buffer are executed, and that the buffer is empty when that function returns.
| context | Pointer to the context object. |
| void RSX_FUNC() InlineTransfer | ( | gcmContextData * | context, |
| u32 | dstOffset, | ||
| const void * | srcAddress, | ||
| u32 | sizeInWords, | ||
| u8 | location | ||
| ) |
| void RSX_FUNC() InvalidateTextureCache | ( | gcmContextData * | context, |
| u32 | type | ||
| ) |
Invalidates a texture cache.
| context | Pointer to the context object. |
| type | Type of texture cache to be invalidated. Possible values are: |
| void RSX_FUNC() InvalidateVertexCache | ( | gcmContextData * | context | ) |
| void RSX_FUNC() LoadFragmentProgramLocation | ( | gcmContextData * | context, |
| const rsxFragmentProgram * | program, | ||
| u32 | offset, | ||
| u32 | location | ||
| ) |
Load a compiled fragment shader program.
| context | Pointer to the context object |
| program | Pointer to the fragment program configuration |
| offset | Memory offset of fragment program |
| location | Memory location type where the program relies. Possible values are: |
| void RSX_FUNC() LoadTexture | ( | gcmContextData * | context, |
| u8 | index, | ||
| const gcmTexture * | texture | ||
| ) |
Loads a texture.
| context | Pointer to the context object. |
| index | Texture index. |
| texture | Pointer to the texture data. |
| void RSX_FUNC() LoadVertexProgram | ( | gcmContextData * | context, |
| const rsxVertexProgram * | program, | ||
| const void * | ucode | ||
| ) |
Load a compiled vertex shader program.
| context | Pointer to the context object |
| program | Pointer to the vertex program configuration |
| ucode | Pointer to the shader micro code |
| void RSX_FUNC() LoadVertexProgramBlock | ( | gcmContextData * | context, |
| const rsxVertexProgram * | program, | ||
| const void * | ucode | ||
| ) |
| void RSX_FUNC() LoadVertexProgramParameterBlock | ( | gcmContextData * | context, |
| u32 | base_const, | ||
| u32 | const_cnt, | ||
| const f32 * | value | ||
| ) |
| void RSX_FUNC() LoadVertexTexture | ( | gcmContextData * | context, |
| u8 | index, | ||
| const gcmTexture * | texture | ||
| ) |
| void RSX_FUNC() ResetCommandBuffer | ( | gcmContextData * | context | ) |
Reset the RSX command buffer.
| context | Pointer to the context object. |
| void RSX_FUNC() SetAlphaFunc | ( | gcmContextData * | context, |
| u32 | alphaFunc, | ||
| u32 | ref | ||
| ) |
| void RSX_FUNC() SetAlphaTestEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetAntialiasingControl | ( | gcmContextData * | context, |
| u32 | enable, | ||
| u32 | alphaToCoverage, | ||
| u32 | alphaToOne, | ||
| u32 | sampleMask | ||
| ) |
| void RSX_FUNC() SetBackPolygonMode | ( | gcmContextData * | context, |
| u32 | mode | ||
| ) |
Control back-facing polygon rendering.
| context | Pointer to the context object. |
| enable | Drawing mode. Possible values are: |
| void RSX_FUNC() SetBackStencilFunc | ( | gcmContextData * | context, |
| u32 | func, | ||
| u32 | ref, | ||
| u32 | mask | ||
| ) |
| void RSX_FUNC() SetBackStencilMask | ( | gcmContextData * | context, |
| u32 | mask | ||
| ) |
| void RSX_FUNC() SetBackStencilOp | ( | gcmContextData * | context, |
| u32 | fail, | ||
| u32 | depthFail, | ||
| u32 | depthPass | ||
| ) |
| void RSX_FUNC() SetBlendColor | ( | gcmContextData * | context, |
| u32 | color0, | ||
| u32 | color1 | ||
| ) |
Set the blending constant color.
| context | Pointer to the context object |
| color0 | all A, R, G, B components in 8-bit component mode |
| color1 | reserved for 16-bit components |
| void RSX_FUNC() SetBlendEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
Enable or disable blending.
| context | Pointer to the context object |
| enable |
|
| void RSX_FUNC() SetBlendEnableMrt | ( | gcmContextData * | context, |
| u32 | mrt1, | ||
| u32 | mrt2, | ||
| u32 | mrt3 | ||
| ) |
| void RSX_FUNC() SetBlendEquation | ( | gcmContextData * | context, |
| u16 | color, | ||
| u16 | alpha | ||
| ) |
Set the blend equation.
The blend equations determine how a new pixel (the “source” color) is combined with a pixel already in the framebuffer (the “destination” color). This function specifies one blend equation for the RGB-color components and one blend equation for the alpha component.
These equations use the source and destination blend factors specified by rsxSetBlendFunc. See rsxSetBlendFunc for a description of the various blend factors.
In the equations that follow, source and destination color components are referred to as Rs, Gs, Bs, As and Rd, Gd, Bd, Ad, respectively. The result color is referred to as Rr, Gr, Br, Ar. The source and destination blend factors are denoted sR, sG, sB, sA and dR, dG, dB, dA, respectively. For these equations all color components are understood to have values in the range [0,1].
| Mode | Rr | Gr | Br | Ar |
|---|---|---|---|---|
| GCM_FUNC_ADD | RssR+RddR | GssG+GddG | BssB+BddB | AssA+AddA |
| GCM_MIN | min(Rs,Rd) | min(Gs,Gd) | min(Bs,Bd) | min(As,Ad) |
| GCM_MAX | max(Rs,Rd) | max(Gs,Gd) | max(Bs,Bd) | max(As,Ad) |
| GCM_FUNC_SUBTRACT | RssR-RddR | GssG-GddG | BssB-BddB | AssA-AddA |
| GCM_FUNC_REVERSE_SUBTRACT | RddR-RssR | GddG-GssG | BddB-BssB | AddA-AssA |
The results of these equations are clamped to the range [0,1].
The GCM_MIN and GCM_MAX equations are useful for applications that analyze image data (image thresholding against a constant color, for example). The GCM_FUNC_ADD equation is useful for antialiasing and transparency, among other things.
Initially, both the RGB blend equation and the alpha blend equation are set to GCM_FUNC_ADD.
The GCM_MIN, and GCM_MAX equations do not use the source or destination factors, only the source and destination colors.
| context | Pointer to the context object |
| color | Specifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. |
| alpha | Specifies the alpha blend equation, how the alpha component of the source and destination colors are combined. |
| void RSX_FUNC() SetBlendFunc | ( | gcmContextData * | context, |
| u16 | sfcolor, | ||
| u16 | dfcolor, | ||
| u16 | sfalpha, | ||
| u16 | dfalpha | ||
| ) |
Specify pixel arithmetic.
In RGBA mode, pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). Blending is initially disabled. Use rsxSetBlendEnable to enable and disable blending.
rsxSetBlendFunc defines the operation of blending when it is enabled. sfcolor and and sfalpha specify which method is used to scale the source color and alpha components. dfcolor and and dfalpha specify which method is used to scale the destination color and alpha components. The possible methods are described in the following table. Each method defines four scale factors, one each for red, green, blue, and alpha. In the table and in subsequent equations, source and destination color components are referred to as Rs, Gs, Bs, As and Rd, Gd, Bd, Ad, respectively. The color specified by rsxSetBlendColor is referred to as Rc, Gc, Bc, Ac. They are understood to have integer values between 0 and kR, kG, kB, kA, where
kc = 2mc - 1
and mR, mG, mB, mA is the number of red, green, blue, and alpha bitplanes.
Source and destination scale factors are referred to as sR, sG, sB, sA and dR, dG, dB, dA. The scale factors described in the table, denoted fR, fG, fB, fA, represent either source or destination factors. All scale factors have range [0,1].
| Parameter | fR | fG | fB | fA |
|---|---|---|---|---|
| GCM_ZERO | 0 | 0 | 0 | 0 |
| GCM_ONE | 1 | 1 | 1 | 1 |
| GCM_SRC_COLOR | Rs/kR | Gs/kG | Bs/kB | As/kA |
| GCM_ONE_MINUS_SRC_COLOR | 1-Rs/kR | 1-Gs/kG | 1-Bs/kB | 1-As/kA |
| GCM_DST_COLOR | Rd/kR | Gd/kG | Bd/kB | Ad/kA |
| GCM_ONE_MINUS_DST_COLOR | 1-Rd/kR | 1-Gd/kG | 1-Bd/kB | 1-Ad/kA |
| GCM_SRC_ALPHA | As/kA | As/kA | As/kA | As/kA |
| GCM_ONE_MINUS_SRC_ALPHA | 1-As/kA | 1-As/kA | 1-As/kA | 1-As/kA |
| GCM_DST_ALPHA | Ad/kA | Ad/kA | Ad/kA | Ad/kA |
| GCM_ONE_MINUS_DST_ALPHA | 1-Ad/kA | 1-Ad/kA | 1-Ad/kA | 1-Ad/kA |
| GCM_CONSTANT_COLOR | Rc | Gc | Bc | Ac |
| GCM_ONE_MINUS_CONSTANT_COLOR | 1-Rc | 1-Gc | 1-Bc | 1-Ac |
| GCM_CONSTANT_ALPHA | Ac | Ac | Ac | Ac |
| GCM_ONE_MINUS_CONSTANT_ALPHA | 1-Ac | 1-Ac | 1-Ac | 1-Ac |
| GCM_SRC_ALPHA_SATURATE | i | i | i | 1 |
In the table,
i = min(As/kA, 1 - Ad/kA)
To determine the blended RGBA values of a pixel when drawing in RGBA mode, the equation defined by rsxSetBlendEquation us used. In the default mode (GCM_FUNC_ADD for RGB and alpha equations), the equations are the following:
Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend factor equal to 0 reduces its multiplicand to 0. For example, when sfcolor is GCM_SRC_ALPHA, fdcolor is GCM_ONE_MINUS_SRC_ALPHA, and As is equal to kA, the equations reduce to simple replacement:
Rd = Rs ; Gd = Gs ; Bd = Bs
Transparency is best implemented using blend function (sfcolor = sfalpha = GCM_SRC_ALPHA, dfcolor = dfalpha = GCM_ONE_MINUS_SRC_ALPHA) with primitives sorted from farthest to nearest. Note that this transparency calculation does not require the presence of alpha bitplanes in the frame buffer.
Blend function (GCM_SRC_ALPHA, GCM_ONE_MINUS_SRC_ALPHA) is also useful for rendering antialiased points and lines in arbitrary order.
Polygon antialiasing is optimized using blend function (GCM_SRC_ALPHA_SATURATE, GCM_ONE) with polygons sorted from nearest to farthest.
Destination alpha bitplanes, which must be present for this blend function to operate correctly, store the accumulated coverage.
Incoming (source) alpha is correctly thought of as a material opacity, ranging from 1.0 ( kA ), representing complete opacity, to 0.0 (0), representing complete transparency.
| context | Pointer to the context object |
| sfcolor | Specifies how the red, green, and blue source blending factors are computed. |
| dfcolor | Specifies how the red, green, and blue source blending factors are computed. |
| sfalpha | Specifies how the alpha source blending factor is computed. |
| dfalpha | Specifies how the alpha destination blending factor is computed. |
| void RSX_FUNC() SetBlendOptimization | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetCallCommand | ( | gcmContextData * | context, |
| u32 | offset | ||
| ) |
| void RSX_FUNC() SetClearColor | ( | gcmContextData * | context, |
| u32 | color | ||
| ) |
Set the clear color.
The clear color value is used by the rsxClearSurface function.
| context | Pointer to the context object. |
| color | The clear color value. |
| void RSX_FUNC() SetClearDepthStencil | ( | gcmContextData * | context, |
| u32 | value | ||
| ) |
Set the clear depth value.
This value is used by the rsxClearSurface function.
| context | Pointer to the context object. |
| value | Color value |
| void RSX_FUNC() SetClearReport | ( | gcmContextData * | context, |
| u32 | type | ||
| ) |
| void RSX_FUNC() SetClearZCullSurface | ( | gcmContextData * | context, |
| u32 | depth, | ||
| u32 | stencil | ||
| ) |
| void RSX_FUNC() SetColorMask | ( | gcmContextData * | context, |
| u32 | mask | ||
| ) |
Enable or disable write access to the framebuffer color components.
| context | Pointer to the context object. |
| mask | A selection of the components to enable write access. It is an OR combination of the following values: |
| void RSX_FUNC() SetColorMaskMrt | ( | gcmContextData * | context, |
| u32 | mask | ||
| ) |
Enable or disable write access to the framebuffer color components (Multiple Render Target output).
| context | Pointer to the context object. |
| mask | A selection of the components to enable write access. It is an OR combination of the following values: |
| void RSX_FUNC() SetConvertSwizzleFormat | ( | gcmContextData * | context, |
| u32 | dstOffset, | ||
| u32 | dstWidth, | ||
| u32 | dstHeight, | ||
| u32 | dstX, | ||
| u32 | dstY, | ||
| u32 | srcOffset, | ||
| u32 | srcPitch, | ||
| u32 | srcX, | ||
| u32 | srcY, | ||
| u32 | width, | ||
| u32 | height, | ||
| u32 | bytesPerPixel, | ||
| u32 | mode | ||
| ) |
| void RSX_FUNC() SetCullFace | ( | gcmContextData * | context, |
| u32 | cull | ||
| ) |
Set culling mode.
| context | Pointer to context object. |
| cull | Type of cull mode. Possible values are: |
| void RSX_FUNC() SetCullFaceEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetCylindricalWrap | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetDepthBounds | ( | gcmContextData * | context, |
| f32 | zMin, | ||
| f32 | zMax | ||
| ) |
| void RSX_FUNC() SetDepthBoundsTestEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetDepthFormat | ( | gcmContextData * | context, |
| u32 | format | ||
| ) |
Set depth format.
| void RSX_FUNC() SetDepthFunc | ( | gcmContextData * | context, |
| u32 | func | ||
| ) |
Specify the value used for depth buffer comparisons.
| context | Pointer to the context object. |
| func | Specifies the depth comparison function. Possible values are: |
| void RSX_FUNC() SetDepthTestEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
Enable or disable the depth test.
If depth test is enabled, the GPU performs depth comparisons and updates the depth buffer. Note that even if the depth buffer exists and the depth mask is non-zero, the depth buffer is not updated if the depth test is disabled.
| void RSX_FUNC() SetDepthWriteEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetDitherEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetFogMode | ( | gcmContextData * | context, |
| u32 | mode | ||
| ) |
| void RSX_FUNC() SetFogParams | ( | gcmContextData * | context, |
| f32 | p0, | ||
| f32 | p1 | ||
| ) |
| void RSX_FUNC() SetFragmentProgramControl | ( | gcmContextData * | context, |
| const rsxFragmentProgram * | program, | ||
| u8 | allowTex, | ||
| u8 | reserved0, | ||
| u8 | reserved1 | ||
| ) |
| void RSX_FUNC() SetFragmentProgramGammaEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetFragmentProgramParameter | ( | gcmContextData * | context, |
| const rsxFragmentProgram * | program, | ||
| const rsxProgramConst * | param, | ||
| const f32 * | value, | ||
| u32 | offset, | ||
| u32 | location | ||
| ) |
| void RSX_FUNC() SetFrequencyDividerOperation | ( | gcmContextData * | context, |
| u16 | operation | ||
| ) |
| void RSX_FUNC() SetFrontFace | ( | gcmContextData * | context, |
| u32 | dir | ||
| ) |
Set drawing direction of front face.
| context | Pointer to the context object. |
| dir | Drawing direction of front face. Possible values are: |
| void RSX_FUNC() SetFrontPolygonMode | ( | gcmContextData * | context, |
| u32 | mode | ||
| ) |
Control front-facing polygon rendering.
| context | Pointer to the context object. |
| enable | Drawing mode. Possible values are: |
| void RSX_FUNC() SetJumpCommand | ( | gcmContextData * | context, |
| u32 | offset | ||
| ) |
| void RSX_FUNC() SetLogicOp | ( | gcmContextData * | context, |
| u32 | op | ||
| ) |
| void RSX_FUNC() SetLogicOpEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetNopCommand | ( | gcmContextData * | context, |
| u32 | count | ||
| ) |
| void RSX_FUNC() SetPointSize | ( | gcmContextData * | context, |
| f32 | size | ||
| ) |
| void RSX_FUNC() SetPointSpriteControl | ( | gcmContextData * | context, |
| u32 | enable, | ||
| u32 | rmode, | ||
| u32 | texcoordMask | ||
| ) |
| void RSX_FUNC() SetPolygonOffset | ( | gcmContextData * | context, |
| f32 | factor, | ||
| f32 | units | ||
| ) |
| void RSX_FUNC() SetPolygonOffsetFillEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetPolygonOffsetLineEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetPolygonSmoothEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetReferenceCommand | ( | gcmContextData * | context, |
| u32 | ref_value | ||
| ) |
| void RSX_FUNC() SetRenderEnable | ( | gcmContextData * | context, |
| u8 | mode, | ||
| u32 | index | ||
| ) |
| void RSX_FUNC() SetReport | ( | gcmContextData * | context, |
| u32 | type, | ||
| u32 | index | ||
| ) |
| void RSX_FUNC() SetRestartIndex | ( | gcmContextData * | context, |
| u32 | index | ||
| ) |
| void RSX_FUNC() SetRestartIndexEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetReturnCommand | ( | gcmContextData * | context | ) |
| void RSX_FUNC() SetScissor | ( | gcmContextData * | context, |
| u16 | x, | ||
| u16 | y, | ||
| u16 | w, | ||
| u16 | h | ||
| ) |
| void RSX_FUNC() SetSCullControl | ( | gcmContextData * | context, |
| u8 | sFunc, | ||
| u8 | sRef, | ||
| u8 | sMask | ||
| ) |
| void RSX_FUNC() SetShadeModel | ( | gcmContextData * | context, |
| u32 | shadeModel | ||
| ) |
Set the shading model for the render sequence.
| context | Pointer to the context object. |
| shadeModel | Type of shading model. Possible values are: |
| void RSX_FUNC() SetSkipNop | ( | gcmContextData * | context, |
| u32 | count | ||
| ) |
| void RSX_FUNC() SetStencilFunc | ( | gcmContextData * | context, |
| u32 | func, | ||
| u32 | ref, | ||
| u32 | mask | ||
| ) |
| void RSX_FUNC() SetStencilMask | ( | gcmContextData * | context, |
| u32 | mask | ||
| ) |
| void RSX_FUNC() SetStencilOp | ( | gcmContextData * | context, |
| u32 | fail, | ||
| u32 | depthFail, | ||
| u32 | depthPass | ||
| ) |
| void RSX_FUNC() SetStencilTestEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetSurface | ( | gcmContextData * | context, |
| const gcmSurface * | surface | ||
| ) |
Setup the render surface.
This function is used to setup the render target where RSX should render the frame into.
| context | Pointer to the context object. |
| surface | Pointer to the surface object. |
| void RSX_FUNC() SetTimeStamp | ( | gcmContextData * | context, |
| u32 | index | ||
| ) |
| void RSX_FUNC() SetTransferData | ( | gcmContextData * | context, |
| u8 | mode, | ||
| u32 | dst, | ||
| u32 | outpitch, | ||
| u32 | src, | ||
| u32 | inpitch, | ||
| u32 | linelength, | ||
| u32 | linecount | ||
| ) |
Initiate an asynchronous RSX DMA transfer.
| context | Pointer to the context object |
| mode | Specify source and destination memory areas. Possible values are: |
| dst | Destination memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory(). |
| outpitch | Pitch size, in bytes, of the destination buffer (e.g., for a buffer that represents a rectangular image, this would be the width multiplied by the number of bytes in each pixel). |
| src | Source memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory(). |
| inpitch | Pitch size, in bytes, of the source buffer (e.g., for a buffer that represents a rectangular image, this would be the width multiplied by the number of bytes in each pixel). |
| linelength | Size, in bytes, of each line of data that will be transfered. |
| linecount | Number of lines of data to transfer. |
| void RSX_FUNC() SetTransferDataFormat | ( | gcmContextData * | context, |
| s32 | inpitch, | ||
| s32 | outpitch, | ||
| u32 | linelength, | ||
| u32 | linecount, | ||
| u8 | inbytes, | ||
| u8 | outbytes | ||
| ) |
Format an upcoming asynchronous RSX DMA transfer.
| context | Pointer to the context object |
| inpitch | Pitch size, in bytes, of the source buffer (e.g., for a buffer that represents a rectangular image, this would be the width multiplied by the number of bytes in each pixel). |
| outpitch | Pitch size, in bytes, of the destination buffer (e.g., for a buffer that represents a rectangular image, this would be the width multiplied by the number of bytes in each pixel). |
| linelength | Size, in bytes, of each line of data that will be transfered. |
| linecount | Number of lines of data to transfer. |
| inbytes | Number of bytes for each block (e.g., pixel) of data to be transfered: 1, 2, or 4. Will perform scatter-gather transfer if different from outbytes. |
| outbytes | Number of bytes for each block (e.g., pixel) of data to be transfered: 1, 2, or 4. Will perform scatter-gather transfer if different from inbytes. |
| void RSX_FUNC() SetTransferDataMode | ( | gcmContextData * | context, |
| u8 | mode | ||
| ) |
Configuration the mode for an upcoming asynchronous RSX DMA transfer.
| context | Pointer to the context object |
| mode | Specify source and destination memory areas. Possible values are: |
| void RSX_FUNC() SetTransferDataOffset | ( | gcmContextData * | context, |
| u32 | dst, | ||
| u32 | src | ||
| ) |
Specify the memory locations for an RSX DMA transfer. This function should be called after rsxSetTransferDataMode() and rsxSetTransferDataFormat().
| context | Pointer to the context object |
| dst | Destination memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory(). |
| src | Source memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory(). |
| void RSX_FUNC() SetTransferImage | ( | gcmContextData * | context, |
| u8 | mode, | ||
| u32 | dstOffset, | ||
| u32 | dstPitch, | ||
| u32 | dstX, | ||
| u32 | dstY, | ||
| u32 | srcOffset, | ||
| u32 | srcPitch, | ||
| u32 | srcX, | ||
| u32 | srcY, | ||
| u32 | width, | ||
| u32 | height, | ||
| u32 | bytesPerPixel | ||
| ) |
Initialiate an asynchronous transfer of a rectangular image from one area of memory to another.
| context | Pointer to the context object |
| mode | Specify source and destination memory areas. Possible values are: |
| dstOffset | Destination memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory(). |
| dstPitch | Pitch size, in bytes, of the destination image data (width multiplied by the number of bytes in each pixel). |
| dstX | Origin of the destination data, relative to the beginning of the destination buffer. |
| dstY | Origin of the destination data, relative to the beginning of the destination buffer. |
| srcOffset | Source memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory(). |
| srcPitch | Pitch size, in bytes, of the source image data (width multiplied by the number of bytes in each pixel). |
| srcX | Origin of the source rectangle, relative to the beginning of the source buffer. |
| srcY | Origin of the source rectangle, relative to the beginning of the source buffer. |
| width | Width of the transfer rectangle. |
| height | Height of the transfer rectangle. |
| bytesPerPixel | Number of bytes per pixel to transfer: 2 or 4. |
| void RSX_FUNC() SetTransferScaleMode | ( | gcmContextData * | context, |
| u8 | mode, | ||
| u8 | surface | ||
| ) |
Configure an upcoming asynchronous RSX blit.
| context | Pointer to the context object |
| mode | Specify source and destination memory areas. Possible values are: |
| surface | Transfer surface mode. Possible values are: |
| void RSX_FUNC() SetTransferScaleSurface | ( | gcmContextData * | context, |
| const gcmTransferScale * | scale, | ||
| const gcmTransferSurface * | surface | ||
| ) |
Initiate an asynchronous RSX blit.
| context | Pointer to the context object |
| scale | Specify the transfer geometry & parameters. |
| surface | Specify the surface to blit to. |
| void RSX_FUNC() SetTransferScaleSwizzle | ( | gcmContextData * | context, |
| const gcmTransferScale * | scale, | ||
| const gcmTransferSwizzle * | swizzle | ||
| ) |
| void RSX_FUNC() SetTransformBranchBits | ( | gcmContextData * | context, |
| u32 | branchBits | ||
| ) |
| void RSX_FUNC() SetTwoSidedStencilTestEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetTwoSideLightEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetUserClipPlaneControl | ( | gcmContextData * | context, |
| u32 | plane0, | ||
| u32 | plane1, | ||
| u32 | plane2, | ||
| u32 | plane3, | ||
| u32 | plane4, | ||
| u32 | plane5 | ||
| ) |
| void RSX_FUNC() SetVertexAttribOutputMask | ( | gcmContextData * | context, |
| u32 | mask | ||
| ) |
| void RSX_FUNC() SetVertexProgramConstants | ( | gcmContextData * | context, |
| u32 | start, | ||
| u32 | count, | ||
| const f32 * | data | ||
| ) |
| void RSX_FUNC() SetVertexProgramParameter | ( | gcmContextData * | context, |
| const rsxVertexProgram * | program, | ||
| const rsxProgramConst * | param, | ||
| const f32 * | value | ||
| ) |
| void RSX_FUNC() SetViewport | ( | gcmContextData * | context, |
| u16 | x, | ||
| u16 | y, | ||
| u16 | width, | ||
| u16 | height, | ||
| f32 | min, | ||
| f32 | max, | ||
| const f32 | scale[4], | ||
| const f32 | offset[4] | ||
| ) |
Set viewport.
This function sets the viewport.
The origin (0,0) of the normalized device coordinate points to the center of the screen.
Performing viewport conversion, where the upper left corner is the origin is as follows:
Performing viewport conversion, where the lower left corner is the origin is as follows (this is equivalent to glViewport):
| context | Pointer to the context object. |
| x | Origin of the viewport rectangle in pixels (0 - 4095). Initial value is (0,0). |
| y | Origin of the viewport rectangle in pixels (0 - 4095). Initial value is (0,0). |
| width | Width of the viewport (0 - 4096). Initial value is 4096. |
| height | Height of the viewport (0 - 4096). Initial value is 4096. |
| min | Minimum Z clip value. Initial value is 0.0. |
| max | Maximum Z clip value. Initial value is 1.0. |
| scale | Scale values to be used for viewport conversion. Initial values are (2048.0,2048.0,0.5,0.0). |
| offset | Offset values to be used for viewport conversion. Initial values are (2048.0,2048.0,0.5,0.0). |
| void RSX_FUNC() SetViewportClip | ( | gcmContextData * | context, |
| u8 | sel, | ||
| u16 | width, | ||
| u16 | height | ||
| ) |
| void RSX_FUNC() SetWaitForIdle | ( | gcmContextData * | context | ) |
| void RSX_FUNC() SetWaitLabel | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | value | ||
| ) |
Enqueues a Wait for label command.
| context | Pointer to the context object. |
| index | Label index |
| valuie | Label value |
| void RSX_FUNC() SetWriteBackendLabel | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | value | ||
| ) |
Enqueues a Write Backend label command.
| context | Pointer to the context object. |
| index | Label index |
| value | Label value |
| void RSX_FUNC() SetWriteCommandLabel | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | value | ||
| ) |
Enqueues a Write Command label command.
| context | Pointer to the context object. |
| index | Label index |
| value | Label value |
| void RSX_FUNC() SetWriteTextureLabel | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | value | ||
| ) |
| void RSX_FUNC() SetZCullControl | ( | gcmContextData * | context, |
| u8 | zculldir, | ||
| u8 | zcullformat | ||
| ) |
| void RSX_FUNC() SetZCullEnable | ( | gcmContextData * | context, |
| u32 | depth, | ||
| u32 | stencil | ||
| ) |
| void RSX_FUNC() SetZCullInvalidate | ( | gcmContextData * | context | ) |
| void RSX_FUNC() SetZCullLimit | ( | gcmContextData * | context, |
| u16 | moveforwardlimit, | ||
| u16 | pushbacklimit | ||
| ) |
| void RSX_FUNC() SetZCullStatsEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() SetZMinMaxControl | ( | gcmContextData * | context, |
| u8 | cullNearFar, | ||
| u8 | zClampEnable, | ||
| u8 | cullIgnoreW | ||
| ) |
| void RSX_FUNC() SetZPixelCountEnable | ( | gcmContextData * | context, |
| u32 | enable | ||
| ) |
| void RSX_FUNC() TextureAnisoSpread | ( | gcmContextData * | context, |
| u8 | index, | ||
| u8 | reduceSamplesEnable, | ||
| u8 | hReduceSamplesEnable, | ||
| u8 | vReduceSamplesEnable, | ||
| u8 | spacingSelect, | ||
| u8 | hSpacingSelect, | ||
| u8 | vSpacingSelect | ||
| ) |
| void RSX_FUNC() TextureBorderColor | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | color | ||
| ) |
| void RSX_FUNC() TextureControl | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | enable, | ||
| u16 | minlod, | ||
| u16 | maxlod, | ||
| u8 | maxaniso | ||
| ) |
Set texture control parameters.
| context | Pointer to the context object. |
| index | Texture index. |
| enable | Enable flag. Possible values are: |
| minlod | minimum level of detail. |
| maxlod | maximum level of detail. |
| maxaniso | sample level of the anisotropic filter. Possible values are: |
| void RSX_FUNC() TextureFilter | ( | gcmContextData * | context, |
| u8 | index, | ||
| u16 | bias, | ||
| u8 | min, | ||
| u8 | mag, | ||
| u8 | conv | ||
| ) |
| void RSX_FUNC() TextureOptimization | ( | gcmContextData * | context, |
| u8 | index, | ||
| u8 | slope, | ||
| u8 | iso, | ||
| u8 | aniso | ||
| ) |
| void RSX_FUNC() TextureWrapMode | ( | gcmContextData * | context, |
| u8 | index, | ||
| u8 | wraps, | ||
| u8 | wrapt, | ||
| u8 | wrapr, | ||
| u8 | unsignedRemap, | ||
| u8 | zfunc, | ||
| u8 | gamma | ||
| ) |
| void RSX_FUNC() UpdateFragmentProgramLocation | ( | gcmContextData * | context, |
| u32 | offset, | ||
| u32 | location | ||
| ) |
| void RSX_FUNC() VertexTextureBorderColor | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | color | ||
| ) |
| void RSX_FUNC() VertexTextureControl | ( | gcmContextData * | context, |
| u8 | index, | ||
| u32 | enable, | ||
| u16 | minlod, | ||
| u16 | maxlod | ||
| ) |
| void RSX_FUNC() VertexTextureFilter | ( | gcmContextData * | context, |
| u8 | index, | ||
| u16 | bias | ||
| ) |
| void RSX_FUNC() VertexTextureWrapMode | ( | gcmContextData * | context, |
| u8 | index, | ||
| u8 | wraps, | ||
| u8 | wrapt | ||
| ) |