Gate @interpolate(linear) behind a downlevel flag (#9972)

This commit is contained in:
Emil Ernerfeldt authored and GitHub committed 2026-08-16 12:11:15 +00:00
1 parent b6db26411c
commit a6caee7084
16 files changed
+132 -7

No files matched your search

+7
View File
@@ -1236,6 +1236,13 @@ bitflags::bitflags! {
///
/// See <https://www.w3.org/TR/webgpu/#adapter-capability-guarantees>.
const TEXTURE_COMPRESSION = 1 << 25;
/// Supports `@interpolate(linear)` (a.k.a. `noperspective`) on shader inter-stage
/// variables.
///
/// GLSL ES has no `noperspective` qualifier, so the GLES backend only supports this
/// on desktop OpenGL, not on GLES/WebGL2.
const LINEAR_INTERPOLATION = 1 << 26;
}
}