Skip to content

Commit 4f89295

Browse files
Add missing optional size for copyBufferToBuffer (#180)
The optional size in copyBufferToBuffer was missing in #173. This PR adds it.
1 parent 48e234e commit 4f89295

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dist/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)