Skip to content

Commit f767220

Browse files
teoxoyErichDonGubler
authored andcommitted
remove same device check from create_texture_binding
`view.parent` will have the same `device` as the `view` itself
1 parent ed67ff2 commit f767220

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wgpu-core/src/device/resource.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,8 +2069,6 @@ impl<A: HalApi> Device<A> {
20692069
used.textures
20702070
.add_single(texture, Some(view.selector.clone()), internal_use);
20712071

2072-
texture.same_device_as(view.as_ref())?;
2073-
20742072
texture.check_usage(pub_usage)?;
20752073

20762074
used_texture_ranges.push(TextureInitTrackerAction {

0 commit comments

Comments
 (0)