Pass:getTallyBuffer
EditReturns the Buffer that tally results will be written to. Each time the render pass finishes, the results of all the tallies will be copied to the Buffer at the specified offset. The buffer can be used in a later pass in a compute shader, or the data in the buffer can be read back using e.g. Buffer:newReadback
.
If no buffer has been set, this function will return nil
.
buffer, offset = Pass:getTallyBuffer()
Arguments
None
Returns
Name | Type | Description |
buffer | Buffer | The buffer. |
offset | number | An offset in the buffer where results will be written. |