From 2ee72f55bd1d7a9d9f16b40d361a10396510c602 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 31 Jul 2026 11:12:54 -0700 Subject: [PATCH] [core]: Delete unused field `EntryPoint::spec_constants`. In `wgpu_core::validation`, delete the unused field `EntryPoint::spec_constants` and its type `SpecializationConstant`. There's not enough meat here to make it worth keeping around. --- wgpu-core/src/validation.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wgpu-core/src/validation.rs b/wgpu-core/src/validation.rs index 2f83fc46e64..9525b299b3b 100644 --- a/wgpu-core/src/validation.rs +++ b/wgpu-core/src/validation.rs @@ -268,13 +268,6 @@ impl BuiltIn { } } -#[allow(unused)] -#[derive(Debug)] -struct SpecializationConstant { - id: u32, - ty: NumericType, -} - #[derive(Debug)] struct EntryPointMeshInfo { max_vertices: u32, @@ -287,8 +280,6 @@ struct EntryPoint { inputs: Vec, outputs: Vec, resources: Vec>, - #[allow(unused)] - spec_constants: Vec, sampling_pairs: FastHashSet<(naga::Handle, naga::Handle)>, workgroup_size: [u32; 3], dual_source_blending: bool,