Save bind group layout inside pipeline layouts

This commit is contained in:
Dzmitry Malyshau committed 2020-05-04 23:46:06 -04:00
1 parent e2d59201fd
commit fbc533bfee
5 files changed
+64 -21

No files matched your search

+2 -2
View File
@@ -186,13 +186,13 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
binder.reset_expectations(pipeline_layout.bind_group_layout_ids.len());
let mut is_compatible = true;
for (index, (entry, &bgl_id)) in binder
for (index, (entry, bgl_id)) in binder
.entries
.iter_mut()
.zip(&pipeline_layout.bind_group_layout_ids)
.enumerate()
{
match entry.expect_layout(bgl_id) {
match entry.expect_layout(bgl_id.value) {
LayoutChange::Match(bg_id, offsets) if is_compatible => {
let desc_set = bind_group_guard[bg_id].raw.raw();
unsafe {
+2 -2
View File
@@ -952,14 +952,14 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
.reset_expectations(pipeline_layout.bind_group_layout_ids.len());
let mut is_compatible = true;
for (index, (entry, &bgl_id)) in state
for (index, (entry, bgl_id)) in state
.binder
.entries
.iter_mut()
.zip(&pipeline_layout.bind_group_layout_ids)
.enumerate()
{
match entry.expect_layout(bgl_id) {
match entry.expect_layout(bgl_id.value) {
LayoutChange::Match(bg_id, offsets) if is_compatible => {
let desc_set = bind_group_guard[bg_id].raw.raw();
unsafe {