|
@@ -18656,7 +18656,7 @@ return {
|
|
|
name = "getTallyBuffer",
|
|
|
tag = "tally",
|
|
|
summary = "Get the Buffer that tally results will be written to.",
|
|
|
- description = "Returns 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`.",
|
|
|
+ description = "Returns 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`.\n\nIf no buffer has been set, this function will return `nil`.",
|
|
|
key = "Pass:getTallyBuffer",
|
|
|
module = "lovr.graphics",
|
|
|
related = {
|
|
@@ -21147,7 +21147,7 @@ return {
|
|
|
{
|
|
|
name = "offset",
|
|
|
type = "number",
|
|
|
- description = "An offset in the buffer where results will be written."
|
|
|
+ description = "A byte offset where results will be written. Must be a multiple of 4."
|
|
|
}
|
|
|
},
|
|
|
returns = {}
|