Pass:finishTally

Edit

Finishes a tally that was previously started with Pass:beginTally. This will stop counting the number of pixels affected by draws.

The results for all the tallies in the pass can be copied to a Buffer when the Pass finishes by setting a buffer with Pass:setTallyBuffer.

index = Pass:finishTally()

Arguments

None

Returns

NameTypeDescription
indexnumber The index of the tally that was finished.

Notes

There is currently a maximum of 256 tallies per pass.

If no tally is active, this function will error.

See also