Skip to content

Commit a1b8d80

Browse files
authored
fix diff on uniform article
1 parent f81c184 commit a1b8d80

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

webgpu/lessons/ko/webgpu-uniforms.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,7 @@ device.queue.submit([commandBuffer]);
437437
uniformValues.set([rand(), rand(), rand(), 1], kColorOffset); // set the color
438438
uniformValues.set([rand(-0.9, 0.9), rand(-0.9, 0.9)], kOffsetOffset); // set the offset
439439

440-
// copy these values to the GPU
441-
- device.queue.writeBuffer(uniformBuffer, 0, uniformValues);
440+
+ // copy these values to the GPU
442441
+ device.queue.writeBuffer(staticUniformBuffer, 0, uniformValues);
443442
}
444443

webgpu/lessons/ru/webgpu-uniforms.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ device.queue.submit([commandBuffer]);
428428
uniformValues.set([rand(), rand(), rand(), 1], kColorOffset); // Устанавливаем цвет
429429
uniformValues.set([rand(-0.9, 0.9), rand(-0.9, 0.9)], kOffsetOffset); // Устанавливаем смещение
430430

431-
// Копируем эти данные в видеокарту
432-
- device.queue.writeBuffer(uniformBuffer, 0, uniformValues);
431+
+ // Копируем эти данные в видеокарту
433432
+ device.queue.writeBuffer(staticUniformBuffer, 0, uniformValues);
434433
}
435434

webgpu/lessons/uk/webgpu-uniforms.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,7 @@ device.queue.submit([commandBuffer]);
474474
uniformValues.set([rand(), rand(), rand(), 1], kColorOffset); // задаємо колір
475475
uniformValues.set([rand(-0.9, 0.9), rand(-0.9, 0.9)], kOffsetOffset); // задаємо відступ
476476

477-
// копіюємо ці дані на графічний процесор
478-
- device.queue.writeBuffer(uniformBuffer, 0, uniformValues);
477+
+ // копіюємо ці дані на графічний процесор
479478
+ device.queue.writeBuffer(staticUniformBuffer, 0, uniformValues);
480479
}
481480

webgpu/lessons/zh_cn/webgpu-uniforms.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ const module = device.createShaderModule({
411411
uniformValues.set([rand(), rand(), rand(), 1], kColorOffset); // set the color
412412
uniformValues.set([rand(-0.9, 0.9), rand(-0.9, 0.9)], kOffsetOffset); // set the offset
413413

414-
// copy these values to the GPU
415-
- device.queue.writeBuffer(uniformBuffer, 0, uniformValues);
414+
+ // copy these values to the GPU
416415
+ device.queue.writeBuffer(staticUniformBuffer, 0, uniformValues);
417416
}
418417

0 commit comments

Comments
 (0)