Skip to content

Commit

Permalink
skip stencil only view creation on WebGL
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Jan 19, 2024
1 parent 4a14597 commit ac9a3a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/tests/texture_view_creation.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
use wgpu::*;
use wgpu_test::{gpu_test, GpuTestConfiguration};
use wgpu_test::{gpu_test, FailureCase, GpuTestConfiguration, TestParameters};

#[gpu_test]
static STENCIL_ONLY_VIEW_CREATION: GpuTestConfiguration =
GpuTestConfiguration::new().run_async(|ctx| async move {
static STENCIL_ONLY_VIEW_CREATION: GpuTestConfiguration = GpuTestConfiguration::new()
.parameters(
TestParameters::default()
.skip(FailureCase::webgl2()) // WebGL doesn't have stencil only views
.limits(wgpu::Limits::downlevel_defaults()),
)
.run_async(|ctx| async move {
for format in [TextureFormat::Stencil8, TextureFormat::Depth24PlusStencil8] {
let texture = ctx.device.create_texture(&TextureDescriptor {
label: None,
Expand Down

0 comments on commit ac9a3a6

Please sign in to comment.