psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
commands_inc.h File Reference

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)
 

Function Documentation

◆ BindVertexArrayAttrib()

void RSX_FUNC() BindVertexArrayAttrib ( gcmContextData context,
u8  attr,
u16  frequency,
u32  offset,
u8  stride,
u8  elems,
u8  dtype,
u8  location 
)

◆ ClearSurface()

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.

Parameters
contextPointer to the context object.
clear_maskA selection of components to be cleared. Must be an OR combination of the following values:

◆ DrawIndexArray()

void RSX_FUNC() DrawIndexArray ( gcmContextData context,
u8  type,
u32  offset,
u32  count,
u8  data_type,
u8  location 
)

◆ DrawInlineIndexArray16()

void RSX_FUNC() DrawInlineIndexArray16 ( gcmContextData context,
u8  type,
u32  start,
u32  count,
const u16 *  data 
)

◆ DrawInlineIndexArray32()

void RSX_FUNC() DrawInlineIndexArray32 ( gcmContextData context,
u8  type,
u32  start,
u32  count,
const u32 *  data 
)

◆ DrawVertex1f()

void RSX_FUNC() DrawVertex1f ( gcmContextData context,
u8  idx,
f32  v 
)

◆ DrawVertex2f()

void RSX_FUNC() DrawVertex2f ( gcmContextData context,
u8  idx,
const f32  v[2] 
)

◆ DrawVertex2s()

void RSX_FUNC() DrawVertex2s ( gcmContextData context,
u8  idx,
const s16  v[2] 
)

◆ DrawVertex3f()

void RSX_FUNC() DrawVertex3f ( gcmContextData context,
u8  idx,
const f32  v[3] 
)

◆ DrawVertex4f()

void RSX_FUNC() DrawVertex4f ( gcmContextData context,
u8  idx,
const f32  v[4] 
)

◆ DrawVertex4s()

void RSX_FUNC() DrawVertex4s ( gcmContextData context,
u8  idx,
const s16  v[4] 
)

◆ DrawVertex4ub()

void RSX_FUNC() DrawVertex4ub ( gcmContextData context,
u8  idx,
const u8  v[4] 
)

◆ DrawVertexArray()

void RSX_FUNC() DrawVertexArray ( gcmContextData context,
u32  type,
u32  start,
u32  count 
)

◆ DrawVertexBegin()

void RSX_FUNC() DrawVertexBegin ( gcmContextData context,
u32  type 
)

Start the render sequence.

Starts the rendering for a primitive.

Parameters
contextPointer to the context object.
typeType of primitive to render. Possible values are:

◆ DrawVertexEnd()

void RSX_FUNC() DrawVertexEnd ( gcmContextData context)

Stop the render sequence.

Stops the rendering for a primitive, started by rsxDrawVertexBegin.

Parameters
contextPointer to the context object.

◆ DrawVertexScaled4s()

void RSX_FUNC() DrawVertexScaled4s ( gcmContextData context,
u8  idx,
const s16  v[4] 
)

◆ Finish()

void RSX_FUNC() Finish ( gcmContextData context,
u32  ref_value 
)

◆ FlushBuffer()

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.

Parameters
contextPointer to the context object.

◆ InlineTransfer()

void RSX_FUNC() InlineTransfer ( gcmContextData context,
u32  dstOffset,
const void *  srcAddress,
u32  sizeInWords,
u8  location 
)

◆ InvalidateTextureCache()

void RSX_FUNC() InvalidateTextureCache ( gcmContextData context,
u32  type 
)

Invalidates a texture cache.

Parameters
contextPointer to the context object.
typeType of texture cache to be invalidated. Possible values are:

◆ InvalidateVertexCache()

void RSX_FUNC() InvalidateVertexCache ( gcmContextData context)

◆ LoadFragmentProgramLocation()

void RSX_FUNC() LoadFragmentProgramLocation ( gcmContextData context,
const rsxFragmentProgram program,
u32  offset,
u32  location 
)

Load a compiled fragment shader program.

Parameters
contextPointer to the context object
programPointer to the fragment program configuration
offsetMemory offset of fragment program
locationMemory location type where the program relies. Possible values are:

◆ LoadTexture()

void RSX_FUNC() LoadTexture ( gcmContextData context,
u8  index,
const gcmTexture texture 
)

Loads a texture.

Parameters
contextPointer to the context object.
indexTexture index.
texturePointer to the texture data.

◆ LoadVertexProgram()

void RSX_FUNC() LoadVertexProgram ( gcmContextData context,
const rsxVertexProgram program,
const void *  ucode 
)

Load a compiled vertex shader program.

Parameters
contextPointer to the context object
programPointer to the vertex program configuration
ucodePointer to the shader micro code

◆ LoadVertexProgramBlock()

void RSX_FUNC() LoadVertexProgramBlock ( gcmContextData context,
const rsxVertexProgram program,
const void *  ucode 
)

◆ LoadVertexProgramParameterBlock()

void RSX_FUNC() LoadVertexProgramParameterBlock ( gcmContextData context,
u32  base_const,
u32  const_cnt,
const f32 *  value 
)

◆ LoadVertexTexture()

void RSX_FUNC() LoadVertexTexture ( gcmContextData context,
u8  index,
const gcmTexture texture 
)

◆ ResetCommandBuffer()

void RSX_FUNC() ResetCommandBuffer ( gcmContextData context)

Reset the RSX command buffer.

Parameters
contextPointer to the context object.

◆ SetAlphaFunc()

void RSX_FUNC() SetAlphaFunc ( gcmContextData context,
u32  alphaFunc,
u32  ref 
)

◆ SetAlphaTestEnable()

void RSX_FUNC() SetAlphaTestEnable ( gcmContextData context,
u32  enable 
)

◆ SetAntialiasingControl()

void RSX_FUNC() SetAntialiasingControl ( gcmContextData context,
u32  enable,
u32  alphaToCoverage,
u32  alphaToOne,
u32  sampleMask 
)

◆ SetBackPolygonMode()

void RSX_FUNC() SetBackPolygonMode ( gcmContextData context,
u32  mode 
)

Control back-facing polygon rendering.

Parameters
contextPointer to the context object.
enableDrawing mode. Possible values are:

◆ SetBackStencilFunc()

void RSX_FUNC() SetBackStencilFunc ( gcmContextData context,
u32  func,
u32  ref,
u32  mask 
)

◆ SetBackStencilMask()

void RSX_FUNC() SetBackStencilMask ( gcmContextData context,
u32  mask 
)

◆ SetBackStencilOp()

void RSX_FUNC() SetBackStencilOp ( gcmContextData context,
u32  fail,
u32  depthFail,
u32  depthPass 
)

◆ SetBlendColor()

void RSX_FUNC() SetBlendColor ( gcmContextData context,
u32  color0,
u32  color1 
)

Set the blending constant color.

Parameters
contextPointer to the context object
color0all A, R, G, B components in 8-bit component mode
color1reserved for 16-bit components

◆ SetBlendEnable()

void RSX_FUNC() SetBlendEnable ( gcmContextData context,
u32  enable 
)

Enable or disable blending.

Parameters
contextPointer to the context object
enable
  • GCM_TRUE : enable blending
  • GCM_FALSE : disable blending

◆ SetBlendEnableMrt()

void RSX_FUNC() SetBlendEnableMrt ( gcmContextData context,
u32  mrt1,
u32  mrt2,
u32  mrt3 
)

◆ SetBlendEquation()

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+RddRGssG+GddGBssB+BddBAssA+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-RddRGssG-GddGBssB-BddBAssA-AddA
GCM_FUNC_REVERSE_SUBTRACTRddR-RssRGddG-GssGBddB-BssBAddA-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.

Notes

The GCM_MIN, and GCM_MAX equations do not use the source or destination factors, only the source and destination colors.

Parameters
contextPointer to the context object
colorSpecifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined.
alphaSpecifies the alpha blend equation, how the alpha component of the source and destination colors are combined.

◆ SetBlendFunc()

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/kR1-Gs/kG1-Bs/kB1-As/kA
GCM_DST_COLOR Rd/kR Gd/kG Bd/kB Ad/kA
GCM_ONE_MINUS_DST_COLOR 1-Rd/kR1-Gd/kG1-Bd/kB1-Ad/kA
GCM_SRC_ALPHA As/kA As/kA As/kA As/kA
GCM_ONE_MINUS_SRC_ALPHA 1-As/kA1-As/kA1-As/kA1-As/kA
GCM_DST_ALPHA Ad/kA Ad/kA Ad/kA Ad/kA
GCM_ONE_MINUS_DST_ALPHA 1-Ad/kA1-Ad/kA1-Ad/kA1-Ad/kA
GCM_CONSTANT_COLOR Rc Gc Bc Ac
GCM_ONE_MINUS_CONSTANT_COLOR1-Rc 1-Gc 1-Bc 1-Ac
GCM_CONSTANT_ALPHA Ac Ac Ac Ac
GCM_ONE_MINUS_CONSTANT_ALPHA1-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:

  • Rd = min(kR, RssR + RddR)
  • Gd = min(kG, GssG + GddG)
  • Bd = min(kB, BssB + BddB)
  • Ad = min(kA, AssA + AddA)

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

Examples

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.

Notes

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.

Parameters
contextPointer to the context object
sfcolorSpecifies how the red, green, and blue source blending factors are computed.
dfcolorSpecifies how the red, green, and blue source blending factors are computed.
sfalphaSpecifies how the alpha source blending factor is computed.
dfalphaSpecifies how the alpha destination blending factor is computed.

◆ SetBlendOptimization()

void RSX_FUNC() SetBlendOptimization ( gcmContextData context,
u32  enable 
)

◆ SetCallCommand()

void RSX_FUNC() SetCallCommand ( gcmContextData context,
u32  offset 
)

◆ SetClearColor()

void RSX_FUNC() SetClearColor ( gcmContextData context,
u32  color 
)

Set the clear color.

The clear color value is used by the rsxClearSurface function.

Parameters
contextPointer to the context object.
colorThe clear color value.

◆ SetClearDepthStencil()

void RSX_FUNC() SetClearDepthStencil ( gcmContextData context,
u32  value 
)

Set the clear depth value.

This value is used by the rsxClearSurface function.

Parameters
contextPointer to the context object.
valueColor value

◆ SetClearReport()

void RSX_FUNC() SetClearReport ( gcmContextData context,
u32  type 
)

◆ SetClearZCullSurface()

void RSX_FUNC() SetClearZCullSurface ( gcmContextData context,
u32  depth,
u32  stencil 
)

◆ SetColorMask()

void RSX_FUNC() SetColorMask ( gcmContextData context,
u32  mask 
)

Enable or disable write access to the framebuffer color components.

Parameters
contextPointer to the context object.
maskA selection of the components to enable write access. It is an OR combination of the following values:

◆ SetColorMaskMrt()

void RSX_FUNC() SetColorMaskMrt ( gcmContextData context,
u32  mask 
)

Enable or disable write access to the framebuffer color components (Multiple Render Target output).

Parameters
contextPointer to the context object.
maskA selection of the components to enable write access. It is an OR combination of the following values:

◆ SetConvertSwizzleFormat()

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 
)

◆ SetCullFace()

void RSX_FUNC() SetCullFace ( gcmContextData context,
u32  cull 
)

Set culling mode.

Parameters
contextPointer to context object.
cullType of cull mode. Possible values are:

◆ SetCullFaceEnable()

void RSX_FUNC() SetCullFaceEnable ( gcmContextData context,
u32  enable 
)

Enable/Disable face culling.

Parameters
contextPointer to the context object.
enableEnable flag. Possible values are:

◆ SetCylindricalWrap()

void RSX_FUNC() SetCylindricalWrap ( gcmContextData context,
u32  enable 
)

◆ SetDepthBounds()

void RSX_FUNC() SetDepthBounds ( gcmContextData context,
f32  zMin,
f32  zMax 
)

◆ SetDepthBoundsTestEnable()

void RSX_FUNC() SetDepthBoundsTestEnable ( gcmContextData context,
u32  enable 
)

◆ SetDepthFormat()

void RSX_FUNC() SetDepthFormat ( gcmContextData context,
u32  format 
)

Set depth format.

◆ SetDepthFunc()

void RSX_FUNC() SetDepthFunc ( gcmContextData context,
u32  func 
)

Specify the value used for depth buffer comparisons.

Parameters
contextPointer to the context object.
funcSpecifies the depth comparison function. Possible values are:

◆ SetDepthTestEnable()

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.

Parameters
contextPointer to the context object.
enableEnable flag. Possible values are:

◆ SetDepthWriteEnable()

void RSX_FUNC() SetDepthWriteEnable ( gcmContextData context,
u32  enable 
)

Enable/Disable write to depth buffer.

Parameters
contextPointer to the context object.
enableEnable flag. Possible values are:

◆ SetDitherEnable()

void RSX_FUNC() SetDitherEnable ( gcmContextData context,
u32  enable 
)

◆ SetFogMode()

void RSX_FUNC() SetFogMode ( gcmContextData context,
u32  mode 
)

◆ SetFogParams()

void RSX_FUNC() SetFogParams ( gcmContextData context,
f32  p0,
f32  p1 
)

◆ SetFragmentProgramControl()

void RSX_FUNC() SetFragmentProgramControl ( gcmContextData context,
const rsxFragmentProgram program,
u8  allowTex,
u8  reserved0,
u8  reserved1 
)

◆ SetFragmentProgramGammaEnable()

void RSX_FUNC() SetFragmentProgramGammaEnable ( gcmContextData context,
u32  enable 
)

◆ SetFragmentProgramParameter()

void RSX_FUNC() SetFragmentProgramParameter ( gcmContextData context,
const rsxFragmentProgram program,
const rsxProgramConst param,
const f32 *  value,
u32  offset,
u32  location 
)

◆ SetFrequencyDividerOperation()

void RSX_FUNC() SetFrequencyDividerOperation ( gcmContextData context,
u16  operation 
)

◆ SetFrontFace()

void RSX_FUNC() SetFrontFace ( gcmContextData context,
u32  dir 
)

Set drawing direction of front face.

Parameters
contextPointer to the context object.
dirDrawing direction of front face. Possible values are:

◆ SetFrontPolygonMode()

void RSX_FUNC() SetFrontPolygonMode ( gcmContextData context,
u32  mode 
)

Control front-facing polygon rendering.

Parameters
contextPointer to the context object.
enableDrawing mode. Possible values are:

◆ SetJumpCommand()

void RSX_FUNC() SetJumpCommand ( gcmContextData context,
u32  offset 
)

◆ SetLogicOp()

void RSX_FUNC() SetLogicOp ( gcmContextData context,
u32  op 
)

◆ SetLogicOpEnable()

void RSX_FUNC() SetLogicOpEnable ( gcmContextData context,
u32  enable 
)

◆ SetNopCommand()

void RSX_FUNC() SetNopCommand ( gcmContextData context,
u32  count 
)

◆ SetPointSize()

void RSX_FUNC() SetPointSize ( gcmContextData context,
f32  size 
)

◆ SetPointSpriteControl()

void RSX_FUNC() SetPointSpriteControl ( gcmContextData context,
u32  enable,
u32  rmode,
u32  texcoordMask 
)

◆ SetPolygonOffset()

void RSX_FUNC() SetPolygonOffset ( gcmContextData context,
f32  factor,
f32  units 
)

◆ SetPolygonOffsetFillEnable()

void RSX_FUNC() SetPolygonOffsetFillEnable ( gcmContextData context,
u32  enable 
)

◆ SetPolygonOffsetLineEnable()

void RSX_FUNC() SetPolygonOffsetLineEnable ( gcmContextData context,
u32  enable 
)

◆ SetPolygonSmoothEnable()

void RSX_FUNC() SetPolygonSmoothEnable ( gcmContextData context,
u32  enable 
)

◆ SetReferenceCommand()

void RSX_FUNC() SetReferenceCommand ( gcmContextData context,
u32  ref_value 
)

◆ SetRenderEnable()

void RSX_FUNC() SetRenderEnable ( gcmContextData context,
u8  mode,
u32  index 
)

◆ SetReport()

void RSX_FUNC() SetReport ( gcmContextData context,
u32  type,
u32  index 
)

◆ SetRestartIndex()

void RSX_FUNC() SetRestartIndex ( gcmContextData context,
u32  index 
)

◆ SetRestartIndexEnable()

void RSX_FUNC() SetRestartIndexEnable ( gcmContextData context,
u32  enable 
)

◆ SetReturnCommand()

void RSX_FUNC() SetReturnCommand ( gcmContextData context)

◆ SetScissor()

void RSX_FUNC() SetScissor ( gcmContextData context,
u16  x,
u16  y,
u16  w,
u16  h 
)

◆ SetSCullControl()

void RSX_FUNC() SetSCullControl ( gcmContextData context,
u8  sFunc,
u8  sRef,
u8  sMask 
)

◆ SetShadeModel()

void RSX_FUNC() SetShadeModel ( gcmContextData context,
u32  shadeModel 
)

Set the shading model for the render sequence.

Parameters
contextPointer to the context object.
shadeModelType of shading model. Possible values are:

◆ SetSkipNop()

void RSX_FUNC() SetSkipNop ( gcmContextData context,
u32  count 
)

◆ SetStencilFunc()

void RSX_FUNC() SetStencilFunc ( gcmContextData context,
u32  func,
u32  ref,
u32  mask 
)

◆ SetStencilMask()

void RSX_FUNC() SetStencilMask ( gcmContextData context,
u32  mask 
)

◆ SetStencilOp()

void RSX_FUNC() SetStencilOp ( gcmContextData context,
u32  fail,
u32  depthFail,
u32  depthPass 
)

◆ SetStencilTestEnable()

void RSX_FUNC() SetStencilTestEnable ( gcmContextData context,
u32  enable 
)

◆ SetSurface()

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.

Parameters
contextPointer to the context object.
surfacePointer to the surface object.

◆ SetTimeStamp()

void RSX_FUNC() SetTimeStamp ( gcmContextData context,
u32  index 
)

◆ SetTransferData()

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.

Parameters
contextPointer to the context object
modeSpecify source and destination memory areas. Possible values are:
dstDestination memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory().
outpitchPitch 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).
srcSource memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory().
inpitchPitch 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).
linelengthSize, in bytes, of each line of data that will be transfered.
linecountNumber of lines of data to transfer.

◆ SetTransferDataFormat()

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.

Parameters
contextPointer to the context object
inpitchPitch 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).
outpitchPitch 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).
linelengthSize, in bytes, of each line of data that will be transfered.
linecountNumber of lines of data to transfer.
inbytesNumber 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.
outbytesNumber 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.

◆ SetTransferDataMode()

void RSX_FUNC() SetTransferDataMode ( gcmContextData context,
u8  mode 
)

Configuration the mode for an upcoming asynchronous RSX DMA transfer.

Parameters
contextPointer to the context object
modeSpecify source and destination memory areas. Possible values are:

◆ SetTransferDataOffset()

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().

Parameters
contextPointer to the context object
dstDestination memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory().
srcSource memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory().

◆ SetTransferImage()

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.

Parameters
contextPointer to the context object
modeSpecify source and destination memory areas. Possible values are:
dstOffsetDestination memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory().
dstPitchPitch size, in bytes, of the destination image data (width multiplied by the number of bytes in each pixel).
dstXOrigin of the destination data, relative to the beginning of the destination buffer.
dstYOrigin of the destination data, relative to the beginning of the destination buffer.
srcOffsetSource memory offset, e.g., a value returned by gcmAddressToOffset() or gcmMapMainMemory().
srcPitchPitch size, in bytes, of the source image data (width multiplied by the number of bytes in each pixel).
srcXOrigin of the source rectangle, relative to the beginning of the source buffer.
srcYOrigin of the source rectangle, relative to the beginning of the source buffer.
widthWidth of the transfer rectangle.
heightHeight of the transfer rectangle.
bytesPerPixelNumber of bytes per pixel to transfer: 2 or 4.

◆ SetTransferScaleMode()

void RSX_FUNC() SetTransferScaleMode ( gcmContextData context,
u8  mode,
u8  surface 
)

Configure an upcoming asynchronous RSX blit.

Parameters
contextPointer to the context object
modeSpecify source and destination memory areas. Possible values are:
surfaceTransfer surface mode. Possible values are:

◆ SetTransferScaleSurface()

void RSX_FUNC() SetTransferScaleSurface ( gcmContextData context,
const gcmTransferScale scale,
const gcmTransferSurface surface 
)

Initiate an asynchronous RSX blit.

Parameters
contextPointer to the context object
scaleSpecify the transfer geometry & parameters.
surfaceSpecify the surface to blit to.

◆ SetTransferScaleSwizzle()

void RSX_FUNC() SetTransferScaleSwizzle ( gcmContextData context,
const gcmTransferScale scale,
const gcmTransferSwizzle swizzle 
)

◆ SetTransformBranchBits()

void RSX_FUNC() SetTransformBranchBits ( gcmContextData context,
u32  branchBits 
)

◆ SetTwoSidedStencilTestEnable()

void RSX_FUNC() SetTwoSidedStencilTestEnable ( gcmContextData context,
u32  enable 
)

◆ SetTwoSideLightEnable()

void RSX_FUNC() SetTwoSideLightEnable ( gcmContextData context,
u32  enable 
)

◆ SetUserClipPlaneControl()

void RSX_FUNC() SetUserClipPlaneControl ( gcmContextData context,
u32  plane0,
u32  plane1,
u32  plane2,
u32  plane3,
u32  plane4,
u32  plane5 
)

◆ SetVertexAttribOutputMask()

void RSX_FUNC() SetVertexAttribOutputMask ( gcmContextData context,
u32  mask 
)

◆ SetVertexProgramConstants()

void RSX_FUNC() SetVertexProgramConstants ( gcmContextData context,
u32  start,
u32  count,
const f32 *  data 
)

◆ SetVertexProgramParameter()

void RSX_FUNC() SetVertexProgramParameter ( gcmContextData context,
const rsxVertexProgram program,
const rsxProgramConst param,
const f32 *  value 
)

◆ SetViewport()

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:

x = X;
y = Y;
width = WIDTH;
height = HEIGHT;
min = 0.0f;
max = 1.0f;
scale[0] = width * 0.5f;
scale[1] = height * 0.5f;
scale[2] = (max - min) * 0.5f;
offset[0] = x + width * 0.5f;
offset[1] = y + height * 0.5f;
offset[2] = (max + min) * 0.5f;



Performing viewport conversion, where the lower left corner is the origin is as follows (this is equivalent to glViewport):

x = X;
y = WINDOW_HEIGHT - Y - HEIGHT;
width = WIDTH;
height = HEIGHT;
min = 0.0f;
max = 1.0f;
scale[0] = width * 0.5f;
scale[1] = height * -0.5f;
scale[2] = (max - min) * 0.5f;
offset[0] = x + width * 0.5f;
offset[1] = y + height * 0.5f;
offset[2] = (max + min) * 0.5f;
Parameters
contextPointer to the context object.
xOrigin of the viewport rectangle in pixels (0 - 4095). Initial value is (0,0).
yOrigin of the viewport rectangle in pixels (0 - 4095). Initial value is (0,0).
widthWidth of the viewport (0 - 4096). Initial value is 4096.
heightHeight of the viewport (0 - 4096). Initial value is 4096.
minMinimum Z clip value. Initial value is 0.0.
maxMaximum Z clip value. Initial value is 1.0.
scaleScale values to be used for viewport conversion. Initial values are (2048.0,2048.0,0.5,0.0).
offsetOffset values to be used for viewport conversion. Initial values are (2048.0,2048.0,0.5,0.0).

◆ SetViewportClip()

void RSX_FUNC() SetViewportClip ( gcmContextData context,
u8  sel,
u16  width,
u16  height 
)

◆ SetWaitForIdle()

void RSX_FUNC() SetWaitForIdle ( gcmContextData context)

◆ SetWaitLabel()

void RSX_FUNC() SetWaitLabel ( gcmContextData context,
u8  index,
u32  value 
)

Enqueues a Wait for label command.

Parameters
contextPointer to the context object.
indexLabel index
valuieLabel value

◆ SetWriteBackendLabel()

void RSX_FUNC() SetWriteBackendLabel ( gcmContextData context,
u8  index,
u32  value 
)

Enqueues a Write Backend label command.

Parameters
contextPointer to the context object.
indexLabel index
valueLabel value

◆ SetWriteCommandLabel()

void RSX_FUNC() SetWriteCommandLabel ( gcmContextData context,
u8  index,
u32  value 
)

Enqueues a Write Command label command.

Parameters
contextPointer to the context object.
indexLabel index
valueLabel value

◆ SetWriteTextureLabel()

void RSX_FUNC() SetWriteTextureLabel ( gcmContextData context,
u8  index,
u32  value 
)

◆ SetZCullControl()

void RSX_FUNC() SetZCullControl ( gcmContextData context,
u8  zculldir,
u8  zcullformat 
)

◆ SetZCullEnable()

void RSX_FUNC() SetZCullEnable ( gcmContextData context,
u32  depth,
u32  stencil 
)

◆ SetZCullInvalidate()

void RSX_FUNC() SetZCullInvalidate ( gcmContextData context)

◆ SetZCullLimit()

void RSX_FUNC() SetZCullLimit ( gcmContextData context,
u16  moveforwardlimit,
u16  pushbacklimit 
)

◆ SetZCullStatsEnable()

void RSX_FUNC() SetZCullStatsEnable ( gcmContextData context,
u32  enable 
)

◆ SetZMinMaxControl()

void RSX_FUNC() SetZMinMaxControl ( gcmContextData context,
u8  cullNearFar,
u8  zClampEnable,
u8  cullIgnoreW 
)

◆ SetZPixelCountEnable()

void RSX_FUNC() SetZPixelCountEnable ( gcmContextData context,
u32  enable 
)

◆ TextureAnisoSpread()

void RSX_FUNC() TextureAnisoSpread ( gcmContextData context,
u8  index,
u8  reduceSamplesEnable,
u8  hReduceSamplesEnable,
u8  vReduceSamplesEnable,
u8  spacingSelect,
u8  hSpacingSelect,
u8  vSpacingSelect 
)

◆ TextureBorderColor()

void RSX_FUNC() TextureBorderColor ( gcmContextData context,
u8  index,
u32  color 
)

◆ TextureControl()

void RSX_FUNC() TextureControl ( gcmContextData context,
u8  index,
u32  enable,
u16  minlod,
u16  maxlod,
u8  maxaniso 
)

Set texture control parameters.

Parameters
contextPointer to the context object.
indexTexture index.
enableEnable flag. Possible values are:
minlodminimum level of detail.
maxlodmaximum level of detail.
maxanisosample level of the anisotropic filter. Possible values are:
Todo:
finish args documentation.

◆ TextureFilter()

void RSX_FUNC() TextureFilter ( gcmContextData context,
u8  index,
u16  bias,
u8  min,
u8  mag,
u8  conv 
)

◆ TextureOptimization()

void RSX_FUNC() TextureOptimization ( gcmContextData context,
u8  index,
u8  slope,
u8  iso,
u8  aniso 
)

◆ TextureWrapMode()

void RSX_FUNC() TextureWrapMode ( gcmContextData context,
u8  index,
u8  wraps,
u8  wrapt,
u8  wrapr,
u8  unsignedRemap,
u8  zfunc,
u8  gamma 
)

◆ UpdateFragmentProgramLocation()

void RSX_FUNC() UpdateFragmentProgramLocation ( gcmContextData context,
u32  offset,
u32  location 
)

◆ VertexTextureBorderColor()

void RSX_FUNC() VertexTextureBorderColor ( gcmContextData context,
u8  index,
u32  color 
)

◆ VertexTextureControl()

void RSX_FUNC() VertexTextureControl ( gcmContextData context,
u8  index,
u32  enable,
u16  minlod,
u16  maxlod 
)

◆ VertexTextureFilter()

void RSX_FUNC() VertexTextureFilter ( gcmContextData context,
u8  index,
u16  bias 
)

◆ VertexTextureWrapMode()

void RSX_FUNC() VertexTextureWrapMode ( gcmContextData context,
u8  index,
u8  wraps,
u8  wrapt 
)