From 1b6de76bfb0c1b1929e105f039fd1e69f26f95e2 Mon Sep 17 00:00:00 2001 From: Martin Lysell Date: Mon, 29 May 2023 17:32:11 +0200 Subject: [PATCH] Disable wasm / webgpu building of wireframe example (#8678) # Objective Remove the wireframe example on the WebGPU examples page as it does not render properly. When run in a browser it will render to all white cube due PolygonMode::LINE not being supported in WebGPU. Relevant docs: https://wgpu.rs/doc/wgpu/struct.Features.html#associatedconstant.POLYGON_MODE_LINE When Rendered with WebGPU: image ## Solution Disable this example when building for WebGPU / wasm. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 784589e433..7081754991 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -716,7 +716,7 @@ path = "examples/3d/wireframe.rs" name = "Wireframe" description = "Showcases wireframe rendering" category = "3D Rendering" -wasm = true +wasm = false [[example]] name = "no_prepass"