UINT numPasses = 0; mFX->Begin(&numPasses, 0); ....
Like FLEBlanc said, DirectX will fill the variable you are passing in, with the amount of passes.
Posted 04 January 2013 - 10:28 AM
UINT numPasses = 0; mFX->Begin(&numPasses, 0); ....
Posted 04 January 2013 - 10:28 AM
UINT numPasses = 0; mFX->Begin(&numPasses, 0); ....
Posted 04 January 2013 - 10:26 AM
In general you write it like this:
UINT numPasses = 0; mFX->Begin(&numPasses, 0); ....