Skip to content

Commit

Permalink
Update BufferOperations examples with .defaultQueue gpuweb#490 (gpuwe…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldybizbanski authored May 1, 2020
1 parent 09cc0ad commit 3c7143a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions design/BufferOperations.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function bufferSubData(device, destBuffer, destOffset, srcArrayBuffer) {
const encoder = device.createCommandEncoder();
encoder.copyBufferToBuffer(srcBuffer, 0, destBuffer, destOffset, byteCount);
const commandBuffer = encoder.finish();
const queue = device.getQueue();
const queue = device.defaultQueue;
queue.submit([commandBuffer]);

srcBuffer.destroy();
Expand All @@ -181,7 +181,7 @@ upload buffers:

```js
function AutoRingBuffer(device, chunkSize) {
const queue = device.getQueue();
const queue = device.defaultQueue;
let availChunks = [];

function Chunk() {
Expand Down

0 comments on commit 3c7143a

Please sign in to comment.