Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
14 KiB

  1. //================ Copyright (c) Valve Corporation. All Rights Reserved. ===========================
  2. //
  3. // Configure gcm be inline, unsfae etc....
  4. // Inlcude (spu or ppu) after cell headers
  5. //
  6. //==================================================================================================
  7. #ifndef INCLUDED_GCMCONFIG_H
  8. #define INCLUDED_GCMCONFIG_H
  9. // Comment in one GCMCONFIG defn as required
  10. //#define GCMCONFIG(x) x##Inline
  11. #define GCMCONFIG(x) x##UnsafeInline
  12. //#define GCMCONFIG(x) x
  13. #define GCM_FUNC( GCM_FUNCTION, ...) GCM_FUNCTION ( gpGcmContext, ##__VA_ARGS__ )
  14. #define cellGcmSetReferenceCommand GCMCONFIG(cellGcmSetReferenceCommand)
  15. #define cellGcmSetJumpCommand GCMCONFIG(cellGcmSetJumpCommand)
  16. #define cellGcmSetCallCommand GCMCONFIG(cellGcmSetCallCommand)
  17. #define cellGcmSetReturnCommand GCMCONFIG(cellGcmSetReturnCommand)
  18. #define cellGcmSetAntiAliasingControl GCMCONFIG(cellGcmSetAntiAliasingControl)
  19. #define cellGcmSetWaitLabel GCMCONFIG(cellGcmSetWaitLabel)
  20. #define cellGcmSetWriteCommandLabel GCMCONFIG(cellGcmSetWriteCommandLabel)
  21. #define cellGcmSetWriteBackEndLabel GCMCONFIG(cellGcmSetWriteBackEndLabel)
  22. #define cellGcmSetWriteTextureLabel GCMCONFIG(cellGcmSetWriteTextureLabel)
  23. #define cellGcmSetTimeStamp GCMCONFIG(cellGcmSetTimeStamp)
  24. #define cellGcmSetInvalidateZcull GCMCONFIG(cellGcmSetInvalidateZcull)
  25. #define cellGcmSetAlphaFunc GCMCONFIG(cellGcmSetAlphaFunc)
  26. #define cellGcmSetBlendColor GCMCONFIG(cellGcmSetBlendColor)
  27. #define cellGcmSetBlendEquation GCMCONFIG(cellGcmSetBlendEquation)
  28. #define cellGcmSetBlendFunc GCMCONFIG(cellGcmSetBlendFunc)
  29. #define cellGcmSetClearSurface GCMCONFIG(cellGcmSetClearSurface)
  30. #define cellGcmSetClearColor GCMCONFIG(cellGcmSetClearColor)
  31. #define cellGcmSetClearDepthStencil GCMCONFIG(cellGcmSetClearDepthStencil)
  32. #define cellGcmSetColorMask GCMCONFIG(cellGcmSetColorMask)
  33. #define cellGcmSetColorMaskMrt GCMCONFIG(cellGcmSetColorMaskMrt)
  34. #define cellGcmSetCullFace GCMCONFIG(cellGcmSetCullFace)
  35. #define cellGcmSetDepthBounds GCMCONFIG(cellGcmSetDepthBounds)
  36. #define cellGcmSetDepthFunc GCMCONFIG(cellGcmSetDepthFunc)
  37. #define cellGcmSetDepthMask GCMCONFIG(cellGcmSetDepthMask)
  38. #define cellGcmSetFrontFace GCMCONFIG(cellGcmSetFrontFace)
  39. #define cellGcmSetLineWidth GCMCONFIG(cellGcmSetLineWidth)
  40. #define cellGcmSetLineSmoothEnable GCMCONFIG(cellGcmSetLineSmoothEnable)
  41. #define cellGcmSetLineStippleEnable GCMCONFIG(cellGcmSetLineStippleEnable)
  42. #define cellGcmSetLineStipplePattern GCMCONFIG(cellGcmSetLineStipplePattern)
  43. #define cellGcmSetLogicOp GCMCONFIG(cellGcmSetLogicOp)
  44. #define cellGcmSetPointSize GCMCONFIG(cellGcmSetPointSize)
  45. #define cellGcmSetPolygonOffset GCMCONFIG(cellGcmSetPolygonOffset)
  46. #define cellGcmSetPolySmoothEnable GCMCONFIG(cellGcmSetPolySmoothEnable)
  47. #define cellGcmSetPolygonStippleEnable GCMCONFIG(cellGcmSetPolygonStippleEnable)
  48. #define cellGcmSetPolygonStipplePattern GCMCONFIG(cellGcmSetPolygonStipplePattern)
  49. #define cellGcmSetFrontPolygonMode GCMCONFIG(cellGcmSetFrontPolygonMode)
  50. #define cellGcmSetBackPolygonMode GCMCONFIG(cellGcmSetBackPolygonMode)
  51. #define cellGcmSetScissor GCMCONFIG(cellGcmSetScissor)
  52. #define cellGcmSetShadeMode GCMCONFIG(cellGcmSetShadeMode)
  53. #define cellGcmSetTwoSideLightEnable GCMCONFIG(cellGcmSetTwoSideLightEnable)
  54. #define cellGcmSetStencilFunc GCMCONFIG(cellGcmSetStencilFunc)
  55. #define cellGcmSetBackStencilFunc GCMCONFIG(cellGcmSetBackStencilFunc)
  56. #define cellGcmSetStencilMask GCMCONFIG(cellGcmSetStencilMask)
  57. #define cellGcmSetBackStencilMask GCMCONFIG(cellGcmSetBackStencilMask)
  58. #define cellGcmSetStencilOp GCMCONFIG(cellGcmSetStencilOp)
  59. #define cellGcmSetBackStencilOp GCMCONFIG(cellGcmSetBackStencilOp)
  60. #define cellGcmSetZMinMaxControl GCMCONFIG(cellGcmSetZMinMaxControl)
  61. #define cellGcmSetAlphaTestEnable GCMCONFIG(cellGcmSetAlphaTestEnable)
  62. #define cellGcmSetBlendEnable GCMCONFIG(cellGcmSetBlendEnable)
  63. #define cellGcmSetBlendEnableMrt GCMCONFIG(cellGcmSetBlendEnableMrt)
  64. #define cellGcmSetLogicOpEnable GCMCONFIG(cellGcmSetLogicOpEnable)
  65. #define cellGcmSetCullFaceEnable GCMCONFIG(cellGcmSetCullFaceEnable)
  66. #define cellGcmSetDepthBoundsTestEnable GCMCONFIG(cellGcmSetDepthBoundsTestEnable)
  67. #define cellGcmSetDepthTestEnable GCMCONFIG(cellGcmSetDepthTestEnable)
  68. #define cellGcmSetDitherEnable GCMCONFIG(cellGcmSetDitherEnable)
  69. #define cellGcmSetStencilTestEnable GCMCONFIG(cellGcmSetStencilTestEnable)
  70. #define cellGcmSetTwoSidedStencilTestEnable GCMCONFIG(cellGcmSetTwoSidedStencilTestEnable)
  71. #define cellGcmSetPolygonOffsetFillEnable GCMCONFIG(cellGcmSetPolygonOffsetFillEnable)
  72. #define cellGcmSetRestartIndexEnable GCMCONFIG(cellGcmSetRestartIndexEnable)
  73. #define cellGcmSetPointSpriteControl GCMCONFIG(cellGcmSetPointSpriteControl)
  74. #define cellGcmSetInvalidateTextureCache GCMCONFIG(cellGcmSetInvalidateTextureCache)
  75. #define cellGcmSetTextureBorderColor GCMCONFIG(cellGcmSetTextureBorderColor)
  76. #define cellGcmSetTextureControl GCMCONFIG(cellGcmSetTextureControl)
  77. #define cellGcmSetTextureOptimization GCMCONFIG(cellGcmSetTextureOptimization)
  78. #define cellGcmSetCylindricalWrap GCMCONFIG(cellGcmSetCylindricalWrap)
  79. #define cellGcmSetInvalidateVertexCache GCMCONFIG(cellGcmSetInvalidateVertexCache)
  80. #define cellGcmSetRestartIndex GCMCONFIG(cellGcmSetRestartIndex)
  81. #define cellGcmSetVertexData4f GCMCONFIG(cellGcmSetVertexData4f)
  82. #define cellGcmSetFrequencyDividerOperation GCMCONFIG(cellGcmSetFrequencyDividerOperation)
  83. #define cellGcmSetTransformBranchBits GCMCONFIG(cellGcmSetTransformBranchBits)
  84. #define cellGcmSetVertexAttribInputMask GCMCONFIG(cellGcmSetVertexAttribInputMask)
  85. #define cellGcmSetFragmentProgramGammaEnable GCMCONFIG(cellGcmSetFragmentProgramGammaEnable)
  86. #define cellGcmSetRenderEnable GCMCONFIG(cellGcmSetRenderEnable)
  87. #define cellGcmSetZpassPixelCountEnable GCMCONFIG(cellGcmSetZpassPixelCountEnable)
  88. #define cellGcmSetClearReport GCMCONFIG(cellGcmSetClearReport)
  89. #define cellGcmSetReport GCMCONFIG(cellGcmSetReport)
  90. #define cellGcmSetZcullStatsEnable GCMCONFIG(cellGcmSetZcullStatsEnable)
  91. #define cellGcmSetZcullControl GCMCONFIG(cellGcmSetZcullControl)
  92. #define cellGcmSetZcullLimit GCMCONFIG(cellGcmSetZcullLimit)
  93. #define cellGcmSetScullControl GCMCONFIG(cellGcmSetScullControl)
  94. #define cellGcmSetVertexTextureAddress GCMCONFIG(cellGcmSetVertexTextureAddress)
  95. #define cellGcmSetVertexTextureFilter GCMCONFIG(cellGcmSetVertexTextureFilter)
  96. #define cellGcmSetVertexTextureControl GCMCONFIG(cellGcmSetVertexTextureControl)
  97. #define cellGcmSetVertexTextureBorderColor GCMCONFIG(cellGcmSetVertexTextureBorderColor)
  98. #define cellGcmSetPerfMonTrigger GCMCONFIG(cellGcmSetPerfMonTrigger)
  99. #define cellGcmSetFogMode GCMCONFIG(cellGcmSetFogMode)
  100. #define cellGcmSetFogParams GCMCONFIG(cellGcmSetFogParams)
  101. #define cellGcmSetTransferLocation GCMCONFIG(cellGcmSetTransferLocation)
  102. #define cellGcmSetDepthFormat GCMCONFIG(cellGcmSetDepthFormat)
  103. #define cellGcmSetBlendOptimization GCMCONFIG(cellGcmSetBlendOptimization)
  104. #define cellGcmSetPolygonOffsetLineEnable GCMCONFIG(cellGcmSetPolygonOffsetLineEnable)
  105. #define cellGcmSetVertexAttribOutputMask GCMCONFIG(cellGcmSetVertexAttribOutputMask)
  106. #define cellGcmSetTextureRemap GCMCONFIG(cellGcmSetTextureRemap)
  107. #define cellGcmSetVertexProgramStartSlot GCMCONFIG(cellGcmSetVertexProgramStartSlot)
  108. #define cellGcmSetVertexProgramRegisterCount GCMCONFIG(cellGcmSetVertexProgramRegisterCount)
  109. #define cellGcmSetTransferDataMode GCMCONFIG(cellGcmSetTransferDataMode)
  110. #define cellGcmSetDrawBegin GCMCONFIG(cellGcmSetDrawBegin)
  111. #define cellGcmSetDrawEnd GCMCONFIG(cellGcmSetDrawEnd)
  112. #define cellGcmSetVertexDataArrayFormat GCMCONFIG(cellGcmSetVertexDataArrayFormat)
  113. #define cellGcmSetVertexDataArrayOffset GCMCONFIG(cellGcmSetVertexDataArrayOffset)
  114. #define cellGcmSetUpdateFragmentProgramParameterLocation GCMCONFIG(cellGcmSetUpdateFragmentProgramParameterLocation)
  115. #define cellGcmSetVertexDataBase GCMCONFIG(cellGcmSetVertexDataBase)
  116. #define cellGcmSetFragmentProgramOffset GCMCONFIG(cellGcmSetFragmentProgramOffset)
  117. #define cellGcmSetFragmentProgramControl GCMCONFIG(cellGcmSetFragmentProgramControl)
  118. #define cellGcmSetClearZcullSurface GCMCONFIG(cellGcmSetClearZcullSurface)
  119. #define cellGcmSetZcullEnable GCMCONFIG(cellGcmSetZcullEnable)
  120. #define cellGcmSetUserCommand GCMCONFIG(cellGcmSetUserCommand)
  121. #define cellGcmSetReportLocation GCMCONFIG(cellGcmSetReportLocation)
  122. #define cellGcmSetNotifyIndex GCMCONFIG(cellGcmSetNotifyIndex)
  123. #define cellGcmSetNotify GCMCONFIG(cellGcmSetNotify)
  124. #define cellGcmSetTextureFilter GCMCONFIG(cellGcmSetTextureFilter)
  125. #define cellGcmSetTextureAddress GCMCONFIG(cellGcmSetTextureAddress)
  126. #define cellGcmSetUserClipPlaneControl GCMCONFIG(cellGcmSetUserClipPlaneControl)
  127. #define cellGcmSetAnisoSpread GCMCONFIG(cellGcmSetAnisoSpread)
  128. #define cellGcmSetNopCommand GCMCONFIG(cellGcmSetNopCommand)
  129. #define cellGcmSetSkipNop GCMCONFIG(cellGcmSetSkipNop)
  130. #define cellGcmReserveMethodSize GCMCONFIG(cellGcmReserveMethodSize)
  131. #define cellGcmSetWriteBackEndLabelForConditional GCMCONFIG(cellGcmSetWriteBackEndLabelForConditional)
  132. #define cellGcmSetWriteTextureLabelForConditional GCMCONFIG(cellGcmSetWriteTextureLabelForConditional)
  133. #define cellGcmSetVertexProgram GCMCONFIG(cellGcmSetVertexProgram)
  134. #define cellGcmSetFragmentProgramLoadLocation GCMCONFIG(cellGcmSetFragmentProgramLoadLocation)
  135. #define cellGcmSetVertexProgramLoad GCMCONFIG(cellGcmSetVertexProgramLoad)
  136. #define cellGcmSetVertexProgramLoadSlot GCMCONFIG(cellGcmSetVertexProgramLoadSlot)
  137. #define cellGcmSetVertexProgramConstants GCMCONFIG(cellGcmSetVertexProgramConstants)
  138. #define cellGcmSetVertexProgramParameterBlock GCMCONFIG(cellGcmSetVertexProgramParameterBlock)
  139. #define cellGcmSetVertexDataArray GCMCONFIG(cellGcmSetVertexDataArray)
  140. #define cellGcmSetTextureBorder GCMCONFIG(cellGcmSetTextureBorder)
  141. #define cellGcmSetWaitFlip GCMCONFIG(cellGcmSetWaitFlip)
  142. #define cellGcmSetFragmentProgramParameterPointer GCMCONFIG(cellGcmSetFragmentProgramParameterPointer)
  143. #define cellGcmSetFragmentProgramParameter GCMCONFIG(cellGcmSetFragmentProgramParameter)
  144. #define cellGcmSetFragmentProgram GCMCONFIG(cellGcmSetFragmentProgram)
  145. #define cellGcmSetVertexProgramParameter GCMCONFIG(cellGcmSetVertexProgramParameter)
  146. #define cellGcmSetFragmentProgramLoad GCMCONFIG(cellGcmSetFragmentProgramLoad)
  147. #define cellGcmSetUpdateFragmentProgramParameter GCMCONFIG(cellGcmSetUpdateFragmentProgramParameter)
  148. #define cellGcmSetTextureFilterSigned GCMCONFIG(cellGcmSetTextureFilterSigned)
  149. #define cellGcmSetClipMinMax GCMCONFIG(cellGcmSetClipMinMax)
  150. #define cellGcmSetViewport GCMCONFIG(cellGcmSetViewport)
  151. #define cellGcmSetTextureAddressAnisoBiasRemap GCMCONFIG(cellGcmSetTextureAddressAnisoBiasRemap)
  152. #define cellGcmSetTextureAddressAnisoBias GCMCONFIG(cellGcmSetTextureAddressAnisoBias)
  153. #define cellGcmSetTexture GCMCONFIG(cellGcmSetTexture)
  154. #define cellGcmSetVertexTexture GCMCONFIG(cellGcmSetVertexTexture)
  155. #define cellGcmSetSurface GCMCONFIG(cellGcmSetSurface)
  156. #define cellGcmSetSurfaceWindow GCMCONFIG(cellGcmSetSurfaceWindow)
  157. #define cellGcmSetInlineTransfer GCMCONFIG(cellGcmSetInlineTransfer)
  158. #define cellGcmInlineTransfer GCMCONFIG(cellGcmInlineTransfer)
  159. #define cellGcmSetTransferImage GCMCONFIG(cellGcmSetTransferImage)
  160. #define cellGcmTransferData GCMCONFIG(cellGcmTransferData)
  161. #define cellGcmSetTransferData GCMCONFIG(cellGcmSetTransferData)
  162. #define cellGcmSetConvertSwizzleFormat GCMCONFIG(cellGcmSetConvertSwizzleFormat)
  163. #define cellGcmSetInlineTransferPointer GCMCONFIG(cellGcmSetInlineTransferPointer)
  164. #define cellGcmSetTransferDataFormat GCMCONFIG(cellGcmSetTransferDataFormat)
  165. #define cellGcmSetTransferDataOffset GCMCONFIG(cellGcmSetTransferDataOffset)
  166. #define cellGcmSetTransferScaleMode GCMCONFIG(cellGcmSetTransferScaleMode)
  167. #define cellGcmSetTransferScaleSurface GCMCONFIG(cellGcmSetTransferScaleSurface)
  168. #define cellGcmSetTransferScaleSwizzle GCMCONFIG(cellGcmSetTransferScaleSwizzle)
  169. #define cellGcmSetTransferReportData GCMCONFIG(cellGcmSetTransferReportData)
  170. #define cellGcmSetDrawArrays GCMCONFIG(cellGcmSetDrawArrays)
  171. #define cellGcmSetDrawIndexArray GCMCONFIG(cellGcmSetDrawIndexArray)
  172. #define cellGcmSetDrawInlineArray GCMCONFIG(cellGcmSetDrawInlineArray)
  173. #define cellGcmSetDrawInlineIndexArray32 GCMCONFIG(cellGcmSetDrawInlineIndexArray32)
  174. #define cellGcmSetDrawInlineIndexArray16 GCMCONFIG(cellGcmSetDrawInlineIndexArray16)
  175. #define cellGcmSetDrawInlineArrayPointer GCMCONFIG(cellGcmSetDrawInlineArrayPointer)
  176. #define cellGcmSetVertexProgramConstantsPointer GCMCONFIG(cellGcmSetVertexProgramConstantsPointer)
  177. #define cellGcmSetDrawInlineIndexArray32Pointer GCMCONFIG(cellGcmSetDrawInlineIndexArray32Pointer)
  178. #define cellGcmSetDrawInlineIndexArray16Pointer GCMCONFIG(cellGcmSetDrawInlineIndexArray16Pointer)
  179. #define cellGcmSetVertexProgramParameterBlockPointer GCMCONFIG(cellGcmSetVertexProgramParameterBlockPointer)
  180. #define cellGcmSetWaitForIdle GCMCONFIG(cellGcmSetWaitForIdle)
  181. #define cellGcmSetVertexData3f GCMCONFIG(cellGcmSetVertexData3f)
  182. #define cellGcmSetVertexData2f GCMCONFIG(cellGcmSetVertexData2f)
  183. #define cellGcmSetVertexData1f GCMCONFIG(cellGcmSetVertexData1f)
  184. #define cellGcmSetVertexData4s GCMCONFIG(cellGcmSetVertexData4s)
  185. #define cellGcmSetVertexDataScaled4s GCMCONFIG(cellGcmSetVertexDataScaled4s)
  186. #define cellGcmSetVertexData2s GCMCONFIG(cellGcmSetVertexData2s)
  187. #define cellGcmSetVertexData4ub GCMCONFIG(cellGcmSetVertexData4ub)
  188. #define cellGcmSetTextureControlAlphaKill GCMCONFIG(cellGcmSetTextureControlAlphaKill)
  189. #define cellGcmSetNoParanoidTextureFetches GCMCONFIG(cellGcmSetNoParanoidTextureFetches)
  190. #define cellGcmSetInlineTransferAlignedPointer GCMCONFIG(cellGcmSetInlineTransferAlignedPointer)
  191. #define cellGcmSetVertexProgramConstantsAlignedPointer GCMCONFIG(cellGcmSetVertexProgramConstantsAlignedPointer)
  192. #define cellGcmSetVertexProgramParameterBlockAlignedPointer GCMCONFIG(cellGcmSetVertexProgramParameterBlockAlignedPointer)
  193. #define cellGcmSetDrawInlineArrayAlignedPointer GCMCONFIG(cellGcmSetDrawInlineArrayAlignedPointer)
  194. #define cellGcmSetDrawInlineIndexArray32AlignedPointer GCMCONFIG(cellGcmSetDrawInlineIndexArray32AlignedPointer)
  195. #define cellGcmSetDrawInlineIndexArray16AlignedPointer GCMCONFIG(cellGcmSetDrawInlineIndexArray16AlignedPointer)
  196. #endif // INCLUDED_GCMCONFIG_H