File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2304,14 +2304,14 @@ interface GPUCommandEncoder
23042304 * @param sourceOffset - Offset in bytes into `source` to begin copying from.
23052305 * @param destination - The {@link GPUBuffer} to copy to.
23062306 * @param destinationOffset - Offset in bytes into `destination` to place the copied data.
2307- * @param size - Bytes to copy.
2307+ * @param size - Bytes to copy. Defaults to the size of the buffer `source` minus `sourceOffset`.
23082308 */
23092309 copyBufferToBuffer (
23102310 source : GPUBuffer ,
23112311 sourceOffset : GPUSize64 ,
23122312 destination : GPUBuffer ,
23132313 destinationOffset : GPUSize64 ,
2314- size : GPUSize64
2314+ size ? : GPUSize64
23152315 ) : undefined ;
23162316 /**
23172317 * Encode a command into the {@link GPUCommandEncoder} that copies data from a sub-region of a
You can’t perform that action at this time.
0 commit comments