Give wgpu_test::compute_pass_ownership buffers unique labels.

Give each buffer in the
`wgpu_test::compute_pass_ownership::compute_pass_resource_ownership`
test a unique label, for easier debugging.
This commit is contained in:
Jim Blandy 2024-06-12 13:44:38 -07:00 committed by Teodor Tanasoaia
parent 93c6fbe8ba
commit b9b7050bb9

View File

@ -289,7 +289,7 @@ fn resource_setup(ctx: &TestingContext) -> ResourceSetup {
let indirect_buffer = ctx
.device
.create_buffer_init(&wgpu::util::BufferInitDescriptor {
label: Some("gpu_buffer"),
label: Some("indirect_buffer"),
usage: wgpu::BufferUsages::INDIRECT,
contents: wgpu::util::DispatchIndirectArgs { x: 1, y: 1, z: 1 }.as_bytes(),
});