Make passthrough shaders non-experimental (#9054)

* Refactored passthrough shaders

* Added a changelog entry
This commit is contained in:
Inner Daemons authored and GitHub committed 2026-02-18 12:29:50 -05:00
1 parent 05861da365
commit 8f50bb9d98
12 files changed
+26 -29

No files matched your search

+3 -6
View File
@@ -65,7 +65,7 @@ struct Shaders {
fn get_shaders(device: &wgpu::Device, backend: wgpu::Backend) -> Shaders {
// In the case that the platform does support mesh shaders, the dummy
// shader is used to avoid requiring EXPERIMENTAL_PASSTHROUGH_SHADERS.
// shader is used to avoid requiring PASSTHROUGH_SHADERS.
match backend {
wgpu::Backend::Vulkan => {
let compiled = compile_wgsl(device);
@@ -191,7 +191,7 @@ impl crate::framework::Example for Example {
Default::default()
}
fn required_features() -> wgpu::Features {
wgpu::Features::EXPERIMENTAL_MESH_SHADER | wgpu::Features::EXPERIMENTAL_PASSTHROUGH_SHADERS
wgpu::Features::EXPERIMENTAL_MESH_SHADER | wgpu::Features::PASSTHROUGH_SHADERS
}
fn required_limits() -> wgpu::Limits {
wgpu::Limits::defaults().using_recommended_minimum_mesh_shader_values()
@@ -222,10 +222,7 @@ pub static TEST: crate::framework::ExampleTestParams = crate::framework::Example
height: 768,
optional_features: wgpu::Features::default(),
base_test_parameters: wgpu_test::TestParameters::default()
.features(
wgpu::Features::EXPERIMENTAL_MESH_SHADER
| wgpu::Features::EXPERIMENTAL_PASSTHROUGH_SHADERS,
)
.features(wgpu::Features::EXPERIMENTAL_MESH_SHADER | wgpu::Features::PASSTHROUGH_SHADERS)
.instance_flags(wgpu::InstanceFlags::advanced_debugging())
.limits(wgpu::Limits::defaults().using_recommended_minimum_mesh_shader_values())
.skip(wgpu_test::FailureCase {