fix bind group state tracking on pipeline switch

This commit is contained in:
Austin Eng 2017-06-28 10:43:54 -04:00 committed by Austin Eng
parent ed54ec0c71
commit 29477375a6
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,8 @@ namespace backend {
for (uint32_t i = 0; i < kMaxBindGroups; ++i) {
if (lastLayout->GetBindGroupLayout(i) == layout->GetBindGroupLayout(i)) {
bindgroupsSet |= uint64_t(1) << i;
} else {
break;
}
}
}