Fixup shadow variable.
This CL fixes up a shadow variable which causes compilation issues on OSX. Change-Id: I750423630cc2882d176c5ef304e1e0b4bef133a6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108040 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: Ben Clayton <bclayton@chromium.org>
This commit is contained in:
parent
508df1a6b3
commit
5c5f47afbf
|
@ -1081,9 +1081,9 @@ int main(int argc, const char** argv) {
|
||||||
// Set of all the group-0 bindings in use.
|
// Set of all the group-0 bindings in use.
|
||||||
std::unordered_set<uint32_t> group0_bindings_in_use;
|
std::unordered_set<uint32_t> group0_bindings_in_use;
|
||||||
auto allocate_binding = [&] {
|
auto allocate_binding = [&] {
|
||||||
for (uint32_t i = 0;; i++) {
|
for (uint32_t idx = 0;; idx++) {
|
||||||
auto binding = tint::transform::BindingPoint{0u, i};
|
auto binding = tint::transform::BindingPoint{0u, idx};
|
||||||
if (group0_bindings_in_use.emplace(i).second) {
|
if (group0_bindings_in_use.emplace(idx).second) {
|
||||||
return binding;
|
return binding;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue