pub const DEPTH_TEXTURE_SAMPLING_SUPPORTED: bool = true;
Expand description
True if multisampled depth textures are supported on this platform.
In theory, Naga supports depth textures on WebGL 2. In practice, it doesn’t,
because of a silly bug whereby Naga assumes that all depth textures are
sampler2DShadow
and will cheerfully generate invalid GLSL that tries to
perform non-percentage-closer-filtering with such a sampler. Therefore we
disable depth of field and screen space reflections entirely on WebGL 2.