335 lines
12 KiB
C
335 lines
12 KiB
C
/*==========================================================================;
|
|
*
|
|
* Copyright (C) 2000 - 2001 Microsoft Corporation. All Rights Reserved.
|
|
*
|
|
* File: d3d8perf.h
|
|
* Content: Xbox Direct3D debug library API
|
|
*
|
|
****************************************************************************/
|
|
|
|
#ifdef DEFINE_PERF
|
|
|
|
DEFINE_PERF(VERTICES)
|
|
|
|
DEFINE_PERF(SETTRANSFORM_WORLD)
|
|
DEFINE_PERF(SETTRANSFORM_VIEW)
|
|
DEFINE_PERF(SETTRANSFORM_PROJECTION)
|
|
DEFINE_PERF(SETTRANSFORM_TEXTURE)
|
|
|
|
DEFINE_PERF(PUSHBUFFER_SEGMENTS)
|
|
DEFINE_PERF(PUSHBUFFER_WAITS)
|
|
DEFINE_PERF(OBJECTLOCK_WAITS)
|
|
DEFINE_PERF(PRESENT_WAITS)
|
|
DEFINE_PERF(D3DDEVICE_BLOCKUNTILIDLE_WAITS)
|
|
DEFINE_PERF(D3DDEVICE_BLOCKUNTILVERTICALBLANK_WAITS)
|
|
DEFINE_PERF(D3DDEVICE_BLOCKONFENCE_WAITS)
|
|
DEFINE_PERF(CPUSPINDURINGWAIT_TIME)
|
|
DEFINE_PERF(UNSWIZZLING_TEXTURE_LOCKS)
|
|
DEFINE_PERF(PUSHBUFFER_JUMPTOBEGINNING)
|
|
DEFINE_PERF(RUNPUSHBUFFER_BYTES)
|
|
|
|
DEFINE_PERF(REDUNDANT_SETRENDERSTATE)
|
|
DEFINE_PERF(REDUNDANT_SETTEXTURESTATE)
|
|
DEFINE_PERF(REDUNDANT_SETVERTEXSHADER)
|
|
DEFINE_PERF(REDUNDANT_SETTRANSFORM)
|
|
DEFINE_PERF(REDUNDANT_SETTEXTURE)
|
|
DEFINE_PERF(REDUNDANT_SETPALETTE)
|
|
DEFINE_PERF(REDUNDANT_SETSTREAMSOURCE)
|
|
|
|
DEFINE_PERF(SETSTATE_POINTPARAMS)
|
|
DEFINE_PERF(SETSTATE_COMBINERS)
|
|
DEFINE_PERF(SETSTATE_TEXTURESTATE)
|
|
DEFINE_PERF(SETSTATE_SPECFOGCOMBINER)
|
|
DEFINE_PERF(SETSTATE_TEXTRANSFORM)
|
|
DEFINE_PERF(SETSTATE_LIGHTS)
|
|
DEFINE_PERF(SETSTATE_TRANSFORM)
|
|
|
|
#endif
|
|
|
|
#ifdef DEFINE_API
|
|
|
|
/* Direct3D APIs */
|
|
|
|
DEFINE_API(DIRECT3D_CHECKDEPTHSTENCILMATCH)
|
|
DEFINE_API(DIRECT3D_CHECKDEVICEFORMAT)
|
|
DEFINE_API(DIRECT3D_CHECKDEVICEMULTISAMPLETYPE)
|
|
DEFINE_API(DIRECT3D_CHECKDEVICETYPE)
|
|
DEFINE_API(DIRECT3D_CREATEDEVICE)
|
|
DEFINE_API(DIRECT3D_ENUMADAPTERMODES)
|
|
DEFINE_API(DIRECT3D_GETADAPTERDISPLAYMODE)
|
|
DEFINE_API(DIRECT3D_GETADAPTERIDENTIFIER)
|
|
DEFINE_API(DIRECT3D_GETADAPTERMODECOUNT)
|
|
DEFINE_API(DIRECT3D_GETDEVICECAPS)
|
|
DEFINE_API(DIRECT3D_SETPUSHBUFFERSIZE)
|
|
|
|
/* D3DDevice APIs */
|
|
|
|
DEFINE_API(D3DDEVICE_APPLYSTATEBLOCK)
|
|
DEFINE_API(D3DDEVICE_BEGIN)
|
|
DEFINE_API(D3DDEVICE_BEGINPUSH)
|
|
DEFINE_API(D3DDEVICE_BEGINPUSHBUFFER)
|
|
DEFINE_API(D3DDEVICE_BEGINSTATEBLOCK)
|
|
DEFINE_API(D3DDEVICE_BEGINVISIBILITYTEST)
|
|
DEFINE_API(D3DDEVICE_BLOCKONFENCE)
|
|
DEFINE_API(D3DDEVICE_BLOCKUNTILIDLE)
|
|
DEFINE_API(D3DDEVICE_BLOCKUNTILVERTICALBLANK)
|
|
DEFINE_API(D3DDEVICE_CAPTURESTATEBLOCK)
|
|
DEFINE_API(D3DDEVICE_CLEAR)
|
|
DEFINE_API(D3DDEVICE_COPYRECTS)
|
|
DEFINE_API(D3DDEVICE_CREATECUBETEXTURE)
|
|
DEFINE_API(D3DDEVICE_CREATEDEPTHSTENCILSURFACE)
|
|
DEFINE_API(D3DDEVICE_CREATEFIXUP)
|
|
DEFINE_API(D3DDEVICE_CREATEIMAGESURFACE)
|
|
DEFINE_API(D3DDEVICE_CREATEINDEXBUFFER)
|
|
DEFINE_API(D3DDEVICE_CREATEPALETTE)
|
|
DEFINE_API(D3DDEVICE_CREATEPIXELSHADER)
|
|
DEFINE_API(D3DDEVICE_CREATEPUSHBUFFER)
|
|
DEFINE_API(D3DDEVICE_CREATERENDERTARGET)
|
|
DEFINE_API(D3DDEVICE_CREATESTATEBLOCK)
|
|
DEFINE_API(D3DDEVICE_CREATETEXTURE)
|
|
DEFINE_API(D3DDEVICE_CREATEVERTEXBUFFER)
|
|
DEFINE_API(D3DDEVICE_CREATEVERTEXSHADER)
|
|
DEFINE_API(D3DDEVICE_CREATEVOLUMETEXTURE)
|
|
DEFINE_API(D3DDEVICE_DELETEPATCH)
|
|
DEFINE_API(D3DDEVICE_DELETEPIXELSHADER)
|
|
DEFINE_API(D3DDEVICE_DELETESTATEBLOCK)
|
|
DEFINE_API(D3DDEVICE_DELETEVERTEXSHADER)
|
|
DEFINE_API(D3DDEVICE_DRAWINDEXEDVERTICES)
|
|
DEFINE_API(D3DDEVICE_DRAWINDEXEDVERTICESUP)
|
|
DEFINE_API(D3DDEVICE_DRAWRECTPATCH)
|
|
DEFINE_API(D3DDEVICE_DRAWTRIPATCH)
|
|
DEFINE_API(D3DDEVICE_DRAWVERTICES)
|
|
DEFINE_API(D3DDEVICE_DRAWVERTICESUP)
|
|
DEFINE_API(D3DDEVICE_ENABLECC)
|
|
DEFINE_API(D3DDEVICE_ENABLEOVERLAY)
|
|
DEFINE_API(D3DDEVICE_END)
|
|
DEFINE_API(D3DDEVICE_ENDPUSH)
|
|
DEFINE_API(D3DDEVICE_ENDPUSHBUFFER)
|
|
DEFINE_API(D3DDEVICE_ENDSTATEBLOCK)
|
|
DEFINE_API(D3DDEVICE_ENDVISIBILITYTEST)
|
|
DEFINE_API(D3DDEVICE_FLUSHVERTEXCACHE)
|
|
DEFINE_API(D3DDEVICE_GETBACKBUFFER)
|
|
DEFINE_API(D3DDEVICE_GETBACKBUFFERSCALE)
|
|
DEFINE_API(D3DDEVICE_GETBACKMATERIAL)
|
|
DEFINE_API(D3DDEVICE_GETCCSTATUS)
|
|
DEFINE_API(D3DDEVICE_GETCREATIONPARAMETERS)
|
|
DEFINE_API(D3DDEVICE_GETDEPTHSTENCILSURFACE)
|
|
DEFINE_API(D3DDEVICE_GETDEVICECAPS)
|
|
DEFINE_API(D3DDEVICE_GETDIRECT3D)
|
|
DEFINE_API(D3DDEVICE_GETDISPLAYFIELDSTATUS)
|
|
DEFINE_API(D3DDEVICE_GETDISPLAYMODE)
|
|
DEFINE_API(D3DDEVICE_GETGAMMARAMP)
|
|
DEFINE_API(D3DDEVICE_GETINDICES)
|
|
DEFINE_API(D3DDEVICE_GETLIGHT)
|
|
DEFINE_API(D3DDEVICE_GETLIGHTENABLE)
|
|
DEFINE_API(D3DDEVICE_GETMATERIAL)
|
|
DEFINE_API(D3DDEVICE_GETMODELVIEW)
|
|
DEFINE_API(D3DDEVICE_GETOVERLAYUPDATESTATUS)
|
|
DEFINE_API(D3DDEVICE_GETPALETTE)
|
|
DEFINE_API(D3DDEVICE_GETPIXELSHADER)
|
|
DEFINE_API(D3DDEVICE_GETPIXELSHADERCONSTANT)
|
|
DEFINE_API(D3DDEVICE_GETPIXELSHADERFUNCTION)
|
|
DEFINE_API(D3DDEVICE_GETPROJECTIONVIEWPORTMATRIX)
|
|
DEFINE_API(D3DDEVICE_GETPUSHBUFFEROFFSET)
|
|
DEFINE_API(D3DDEVICE_GETRASTERSTATUS)
|
|
DEFINE_API(D3DDEVICE_GETRENDERSTATE)
|
|
DEFINE_API(D3DDEVICE_GETRENDERTARGET)
|
|
DEFINE_API(D3DDEVICE_GETSCISSORS)
|
|
DEFINE_API(D3DDEVICE_GETSCREENSPACEOFFSET)
|
|
DEFINE_API(D3DDEVICE_GETSHADERCONSTANTMODE)
|
|
DEFINE_API(D3DDEVICE_GETSTREAMSOURCE)
|
|
DEFINE_API(D3DDEVICE_GETTEXTURE)
|
|
DEFINE_API(D3DDEVICE_GETTEXTURESTAGESTATE)
|
|
DEFINE_API(D3DDEVICE_GETTILE)
|
|
DEFINE_API(D3DDEVICE_GETTILECOMPRESSIONTAGS)
|
|
DEFINE_API(D3DDEVICE_GETTRANSFORM)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXBLENDMODELVIEW)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADER)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADERCONSTANT)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADERDECLARATION)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADERFUNCTION)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADERINPUT)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADERSIZE)
|
|
DEFINE_API(D3DDEVICE_GETVERTEXSHADERTYPE)
|
|
DEFINE_API(D3DDEVICE_GETVIEWPORT)
|
|
DEFINE_API(D3DDEVICE_GETVISIBILITYTESTRESULT)
|
|
DEFINE_API(D3DDEVICE_INSERTCALLBACK)
|
|
DEFINE_API(D3DDEVICE_INSERTFENCE)
|
|
DEFINE_API(D3DDEVICE_ISBUSY)
|
|
DEFINE_API(D3DDEVICE_ISFENCEPENDING)
|
|
DEFINE_API(D3DDEVICE_KICKPUSHBUFFER)
|
|
DEFINE_API(D3DDEVICE_LIGHTENABLE)
|
|
DEFINE_API(D3DDEVICE_LOADVERTEXSHADER)
|
|
DEFINE_API(D3DDEVICE_LOADVERTEXSHADERPROGRAM)
|
|
DEFINE_API(D3DDEVICE_MULTIPLYTRANSFORM)
|
|
DEFINE_API(D3DDEVICE_NOP)
|
|
DEFINE_API(D3DDEVICE_PERSISTDISPLAY)
|
|
DEFINE_API(D3DDEVICE_PRESENT)
|
|
DEFINE_API(D3DDEVICE_PRIMEVERTEXCACHE)
|
|
DEFINE_API(D3DDEVICE_READVERTEXSHADERCONSTANT)
|
|
DEFINE_API(D3DDEVICE_RESET)
|
|
DEFINE_API(D3DDEVICE_RESUME)
|
|
DEFINE_API(D3DDEVICE_RUNPUSHBUFFER)
|
|
DEFINE_API(D3DDEVICE_RUNVERTEXSTATESHADER)
|
|
DEFINE_API(D3DDEVICE_SELECTVERTEXSHADER)
|
|
DEFINE_API(D3DDEVICE_SENDCC)
|
|
DEFINE_API(D3DDEVICE_SETBACKBUFFERSCALE)
|
|
DEFINE_API(D3DDEVICE_SETBACKMATERIAL)
|
|
DEFINE_API(D3DDEVICE_SETGAMMARAMP)
|
|
DEFINE_API(D3DDEVICE_SETINDICES)
|
|
DEFINE_API(D3DDEVICE_SETLIGHT)
|
|
DEFINE_API(D3DDEVICE_SETMATERIAL)
|
|
DEFINE_API(D3DDEVICE_SETMODELVIEW)
|
|
DEFINE_API(D3DDEVICE_SETPALETTE)
|
|
DEFINE_API(D3DDEVICE_SETPIXELSHADER)
|
|
DEFINE_API(D3DDEVICE_SETPIXELSHADERCONSTANT)
|
|
DEFINE_API(D3DDEVICE_SETPIXELSHADERPROGRAM)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_BACKFILLMODE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_CULLMODE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_DONOTCULLUNCOMPRESSED)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_DXT1NOISEENABLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_EDGEANTIALIAS)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_FILLMODE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_FOGCOLOR)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_FRONTFACE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_LINEWIDTH)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_LOGICOP)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_MULTISAMPLEANTIALIAS)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_MULTISAMPLEMASK)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_MULTISAMPLEMODE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_MULTISAMPLERENDERTARGETMODE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_NORMALIZENORMALS)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_OCCLUSIONCULLENABLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_PARAMETERCHECK)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_PSTEXTUREMODES)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_ROPZCMPALWAYSREAD)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_ROPZREAD)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_SHADOWFUNC)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_SIMPLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_STENCILCULLENABLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_STENCILENABLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_STENCILFAIL)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_TEXTUREFACTOR)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_TWOSIDEDLIGHTING)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_VERTEXBLEND)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_YUVENABLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_ZBIAS)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATE_ZENABLE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERSTATENOTINLINE)
|
|
DEFINE_API(D3DDEVICE_SETRENDERTARGET)
|
|
DEFINE_API(D3DDEVICE_SETSCISSORS)
|
|
DEFINE_API(D3DDEVICE_SETSCREENSPACEOFFSET)
|
|
DEFINE_API(D3DDEVICE_SETSHADERCONSTANTMODE)
|
|
DEFINE_API(D3DDEVICE_SETSTREAMSOURCE)
|
|
DEFINE_API(D3DDEVICE_SETSWAPCALLBACK)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURE)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURESTAGESTATENOTINLINE)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURESTATE_BORDERCOLOR)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURESTATE_BUMPENV)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURESTATE_COLORKEYCOLOR)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURESTATE_PARAMETERCHECK)
|
|
DEFINE_API(D3DDEVICE_SETTEXTURESTATE_TEXCOORDINDEX)
|
|
DEFINE_API(D3DDEVICE_SETTILE)
|
|
DEFINE_API(D3DDEVICE_SETTRANSFORM)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXBLENDMODELVIEW)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXDATA2F)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXDATA2S)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXDATA4F)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXDATA4S)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXDATA4UB)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXDATACOLOR)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXSHADER)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXSHADERCONSTANT)
|
|
DEFINE_API(D3DDEVICE_SETVERTEXSHADERINPUT)
|
|
DEFINE_API(D3DDEVICE_SETVERTICALBLANKCALLBACK)
|
|
DEFINE_API(D3DDEVICE_SETVIEWPORT)
|
|
DEFINE_API(D3DDEVICE_SUSPEND)
|
|
DEFINE_API(D3DDEVICE_SWITCHTEXTURE)
|
|
DEFINE_API(D3DDEVICE_UPDATEOVERLAY)
|
|
|
|
/* D3DResource APIs */
|
|
|
|
DEFINE_API(D3DRESOURCE_ADDREF)
|
|
DEFINE_API(D3DRESOURCE_BLOCKUNTILNOTBUSY)
|
|
DEFINE_API(D3DRESOURCE_FREEPRIVATEDATA)
|
|
DEFINE_API(D3DRESOURCE_GETDEVICE)
|
|
DEFINE_API(D3DRESOURCE_GETPRIVATEDATA)
|
|
DEFINE_API(D3DRESOURCE_GETTYPE)
|
|
DEFINE_API(D3DRESOURCE_ISBUSY)
|
|
DEFINE_API(D3DRESOURCE_REGISTER)
|
|
DEFINE_API(D3DRESOURCE_RELEASE)
|
|
DEFINE_API(D3DRESOURCE_SETPRIVATEDATA)
|
|
|
|
/* D3DBaseTexture APIs */
|
|
|
|
DEFINE_API(D3DBASETEXTURE_GETLEVELCOUNT)
|
|
|
|
/* D3DTexture APIs */
|
|
|
|
DEFINE_API(D3DTEXTURE_GETLEVELDESC)
|
|
DEFINE_API(D3DTEXTURE_GETSURFACELEVEL)
|
|
DEFINE_API(D3DTEXTURE_LOCKRECT)
|
|
|
|
/* D3DCubeTexture APIs */
|
|
|
|
DEFINE_API(D3DCUBETEXTURE_GETCUBEMAPSURFACE)
|
|
DEFINE_API(D3DCUBETEXTURE_GETLEVELDESC)
|
|
DEFINE_API(D3DCUBETEXTURE_LOCKRECT)
|
|
|
|
/* D3DVolumeTexture APIs */
|
|
|
|
DEFINE_API(D3DVOLUMETEXURE_GETLEVELDESC)
|
|
DEFINE_API(D3DVOLUMETEXURE_GETVOLUMELEVEL)
|
|
DEFINE_API(D3DVOLUMETEXURE_LOCKBOX)
|
|
|
|
/* D3DVertexBuffer APIs */
|
|
|
|
DEFINE_API(D3DVERTEXBUFFER_GETDESC)
|
|
DEFINE_API(D3DVERTEXBUFFER_LOCK)
|
|
|
|
/* D3DIndexBuffer APIs */
|
|
|
|
DEFINE_API(D3DINDEXBUFFER_GETDESC)
|
|
|
|
/* D3DVolume APIs */
|
|
|
|
DEFINE_API(D3DVOLUME_GETCONTAINER)
|
|
DEFINE_API(D3DVOLUME_GETDESC)
|
|
DEFINE_API(D3DVOLUME_LOCKBOX)
|
|
|
|
/* D3DSurface APIs */
|
|
|
|
DEFINE_API(D3DSURFACE_GETCONTAINER)
|
|
DEFINE_API(D3DSURFACE_GETDESC)
|
|
DEFINE_API(D3DSURFACE_LOCKRECT)
|
|
|
|
/* D3DPalette APIs */
|
|
|
|
DEFINE_API(D3DPALETTE_GETSIZE)
|
|
DEFINE_API(D3DPALETTE_LOCK)
|
|
|
|
/* D3DPushBuffer APIs */
|
|
|
|
DEFINE_API(D3DPUSHBUFFER_BEGINFIXUP)
|
|
DEFINE_API(D3DPUSHBUFFER_ENDFIXUP)
|
|
DEFINE_API(D3DPUSHBUFFER_ENDVISIBILITYTEST)
|
|
DEFINE_API(D3DPUSHBUFFER_JUMP)
|
|
DEFINE_API(D3DPUSHBUFFER_RUNPUSHBUFFER)
|
|
DEFINE_API(D3DPUSHBUFFER_SETMODELVIEW)
|
|
DEFINE_API(D3DPUSHBUFFER_SETPALETTE)
|
|
DEFINE_API(D3DPUSHBUFFER_SETRENDERTARGET)
|
|
DEFINE_API(D3DPUSHBUFFER_SETTEXTURE)
|
|
DEFINE_API(D3DPUSHBUFFER_SETVERTEXBLENDMODELVIEW)
|
|
DEFINE_API(D3DPUSHBUFFER_SETVERTEXSHADERCONSTANT)
|
|
DEFINE_API(D3DPUSHBUFFER_SETVERTEXSHADERINPUT)
|
|
DEFINE_API(D3DPUSHBUFFER_VERIFY)
|
|
|
|
/* D3DFixup APIs */
|
|
|
|
DEFINE_API(D3DFIXUP_GETSIZE)
|
|
DEFINE_API(D3DFIXUP_GETSPACE)
|
|
DEFINE_API(D3DFIXUP_RESET)
|
|
|
|
#endif
|
|
|