Skip to content

Commit

Permalink
Revert "Support nv12 texture format (#4573)"
Browse files Browse the repository at this point in the history
This reverts commit a6503e5.
  • Loading branch information
teoxoy authored Dec 4, 2023
1 parent dd7e332 commit 89e6cbb
Show file tree
Hide file tree
Showing 28 changed files with 39 additions and 484 deletions.
1 change: 0 additions & 1 deletion deno_webgpu/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ pub fn op_webgpu_create_texture_view(
format: args.format,
dimension: args.dimension,
range: args.range,
plane: None,
};

gfx_put!(texture => instance.texture_create_view(
Expand Down
1 change: 0 additions & 1 deletion examples/src/mipmap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ impl Example {
mip_level_count: Some(1),
base_array_layer: 0,
array_layer_count: None,
..Default::default()
})
})
.collect::<Vec<_>>();
Expand Down
1 change: 0 additions & 1 deletion examples/src/shadow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ impl crate::framework::Example for Example {
mip_level_count: None,
base_array_layer: i as u32,
array_layer_count: Some(1),
..Default::default()
}))
})
.collect::<Vec<_>>();
Expand Down
1 change: 0 additions & 1 deletion tests/tests/bgra8unorm_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ static BGRA8_UNORM_STORAGE: GpuTestConfiguration = GpuTestConfiguration::new()
base_array_layer: 0,
mip_level_count: Some(1),
array_layer_count: Some(1),
..Default::default()
});

let readback_buffer = device.create_buffer(&wgpu::BufferDescriptor {
Expand Down
250 changes: 0 additions & 250 deletions tests/tests/nv12_texture/mod.rs

This file was deleted.

33 changes: 0 additions & 33 deletions tests/tests/nv12_texture/nv12_texture.wgsl

This file was deleted.

1 change: 0 additions & 1 deletion tests/tests/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ mod external_texture;
mod instance;
mod life_cycle;
mod mem_leaks;
mod nv12_texture;
mod occlusion_query;
mod partially_bounded_arrays;
mod pipeline;
Expand Down
5 changes: 0 additions & 5 deletions wgpu-core/src/command/clear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,6 @@ fn clear_texture_via_buffer_copies<A: HalApi>(
hal::FormatAspects::COLOR
);

if texture_desc.format == wgt::TextureFormat::NV12 {
// TODO: Currently COPY_DST for NV12 textures is unsupported.
return;
}

// Gather list of zero_buffer copies and issue a single command then to perform them
let mut zero_buffer_copy_regions = Vec::new();
let buffer_copy_pitch = alignments.buffer_copy_pitch.get() as u32;
Expand Down
Loading

0 comments on commit 89e6cbb

Please sign in to comment.