mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Update SetBindGroup dynamic offsets to uint32_t
In WebGPU these are uint32_t because Vulkan accepts at most a 32-bit unsigned integer. Bug: dawn:22 Change-Id: Ia61cd710f80c19135ac215a9a93ef9a8f683bac2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12942 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
c5e06a5d9f
commit
314fd3513d
@@ -159,7 +159,7 @@ void frame() {
|
||||
pass.SetPipeline(pipeline);
|
||||
|
||||
for (size_t i = 0; i < kNumTriangles; i++) {
|
||||
uint64_t offset = i * sizeof(ShaderData);
|
||||
uint32_t offset = i * sizeof(ShaderData);
|
||||
pass.SetBindGroup(0, bindGroup, 1, &offset);
|
||||
pass.Draw(3, 1, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user