---
title: "naga 31.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each naga release removed, renamed or changed: 15 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/naga
last_updated: 2026-12-04
---

# naga breaking changes

naga 31.0.0 (December 4, 2026) is its newest release with breaking changes, 15 of them. The first: SPIR-V cube sample NaN coordinates now become zero in naga 31.0.0. Every breaking API change we have recorded in naga on crates.io: 15 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `31.0.1`, released December 5, 2026. [Source repository](https://github.com/gfx-rs/wgpu)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## naga 31.0.0 breaking changes

naga 31.0.0, released December 4, 2026: 15 breaking changes.

- **Behavior changed**  

The SPIR-V backend replaces NaN cube texture sample coordinates with zero, so the selected face may differ from before. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)
- **Behavior changed**  

WGSL shaders must now declare enable wgpu_f64; to use the f64 type or the lf literal suffix. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)
- **Behavior changed** `naga.valid.Capabilities.LINEAR_INTERPOLATION`  

The LINEAR_INTERPOLATION capability is now required to use @interpolate(linear). Validators must enable it to accept such shaders. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)
- **Signature changed** `naga::back::glsl::Error::MissingFeatures`  

Was MissingFeatures(Features); now MissingFeatures(Features, Version). [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::back::pipeline_constants::PipelineConstantError::ValidationError`  

Was ValidationError(#\[from\] WithSpan\<ValidationError>); now ValidationError(#\[from\] Box\<WithSpan\<ValidationError>>). [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::Expression::As`  

Was As {/// Source expression, which can only be a scalar or a vector. expr: Handle\<Expression>, /// Target scalar kind. kind: ScalarKind, /// If provided, converts to the specified byte width. /// Otherwise, bitcast. convert... [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::front::wgsl::ImplementedLanguageExtension`  

Was enum ImplementedLanguageExtension; now pub use crate::front::wgsl::parse::directive::language_extension::ImplementedLanguageExtension. [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::front::wgsl::LanguageExtension`  

Was enum LanguageExtension; now pub use crate::front::wgsl::parse::directive::language_extension::LanguageExtension. [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::front::wgsl::UnimplementedLanguageExtension`  

Was enum UnimplementedLanguageExtension; now pub use crate::front::wgsl::parse::directive::language_extension::UnimplementedLanguageExtension. [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::ir::Expression::As`  

Expression::As now only converts, and its kind and convert fields are replaced by target: Scalar. Bit reinterpretation must use the new Bitcast expression. [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::valid::ImmediateSlots::from_range`  

Was fn from_range(offset: u32, size_bytes: u32) -> Self; now fn from_range(offset: u32, size_bytes: u32) -> Result\<Self, ImmediateSlotsOverflowError>. [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::valid::ImmediateSlots::from_type`  

Was fn from_type(ty: &crate::TypeInner, offset: u32, types: &crate::UniqueArena\<crate::Type>, gctx: crate::proc::GlobalCtx) -> Self; now fn from_type(ty: &crate::TypeInner, types: &crate::UniqueArena\<crate::Type>, gctx... [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::valid::Validator::validate`  

Was fn validate(&mut self, module: &crate::Module) -> Result\<ModuleInfo, WithSpan\<ValidationError>>; now fn validate(&mut self, module: &crate::Module) -> Result\<ModuleInfo, Box\<WithSpan\<ValidationError>>>. [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga::valid::Validator::validate_resolved_overrides`  

Was fn validate_resolved_overrides(&mut self, module: &crate::Module) -> Result\<ModuleInfo, WithSpan\<ValidationError>>; now fn validate_resolved_overrides(&mut self, module: &crate::Module) -> Result\<ModuleInfo... [crates.io](https://crates.io/crates/naga/31.0.0)
- **Signature changed** `naga.valid.ValidationError`  

Validation errors are wrapped in a box. Code that matches on the error type directly must unbox it first. [github.com](https://github.com/gfx-rs/wgpu/releases/tag/v31.0.0)

## Related packages

- [wgpu](https://since.dev/packages/crates/wgpu.md)
- [wgpu-core](https://since.dev/packages/crates/wgpu-core.md)
- [wgpu-hal](https://since.dev/packages/crates/wgpu-hal.md)
- [wgpu-types](https://since.dev/packages/crates/wgpu-types.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
