mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Change setVertexBuffers to setVertexBuffer
Following WebGPU spec change at https://github.com/gpuweb/gpuweb/pull/468, this CL changes all occurrences of setVertexBuffers to setVertexBuffer. Bug: dawn:22 Change-Id: I48b551a89dc0934dfa61e661e9546a2b7eafd2fc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12020 Commit-Queue: François Beaufort <beaufort.francois@gmail.com> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
e16a901fb8
commit
91b2142ee4
@@ -144,14 +144,9 @@ namespace dawn_native {
|
||||
SetIndexBufferCmd* cmd = commands->NextCommand<SetIndexBufferCmd>();
|
||||
cmd->~SetIndexBufferCmd();
|
||||
} break;
|
||||
case Command::SetVertexBuffers: {
|
||||
SetVertexBuffersCmd* cmd = commands->NextCommand<SetVertexBuffersCmd>();
|
||||
auto buffers = commands->NextData<Ref<BufferBase>>(cmd->count);
|
||||
for (size_t i = 0; i < cmd->count; ++i) {
|
||||
(&buffers[i])->~Ref<BufferBase>();
|
||||
}
|
||||
commands->NextData<uint64_t>(cmd->count);
|
||||
cmd->~SetVertexBuffersCmd();
|
||||
case Command::SetVertexBuffer: {
|
||||
SetVertexBufferCmd* cmd = commands->NextCommand<SetVertexBufferCmd>();
|
||||
cmd->~SetVertexBufferCmd();
|
||||
} break;
|
||||
}
|
||||
}
|
||||
@@ -267,10 +262,8 @@ namespace dawn_native {
|
||||
commands->NextCommand<SetIndexBufferCmd>();
|
||||
break;
|
||||
|
||||
case Command::SetVertexBuffers: {
|
||||
auto* cmd = commands->NextCommand<SetVertexBuffersCmd>();
|
||||
commands->NextData<Ref<BufferBase>>(cmd->count);
|
||||
commands->NextData<uint64_t>(cmd->count);
|
||||
case Command::SetVertexBuffer: {
|
||||
commands->NextCommand<SetVertexBufferCmd>();
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user