mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 01:23:57 +01:00
Gate @interpolate(linear) behind a downlevel flag (#9972)
This commit is contained in:
1 parent
b6db26411c
commit
a6caee7084
16 files changed
+132
-7
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user