The packed metallic-roughness declaration for one bind-group index — the albedo pair's two bindings and the same createTextureBindGroupLayout object, renamed so the map+mr module can splice both.
createTextureBindGroupLayout
Pass SHADED_MR_BIND_GROUP_INDEX when albedo occupies group 2; pass SHADED_MAP_BIND_GROUP_INDEX for an mr-only pipeline.
The packed metallic-roughness declaration for one bind-group index — the albedo pair's two bindings and the same
createTextureBindGroupLayoutobject, renamed so the map+mr module can splice both.Pass SHADED_MR_BIND_GROUP_INDEX when albedo occupies group 2; pass SHADED_MAP_BIND_GROUP_INDEX for an mr-only pipeline.