wgpu/wgpu-hal/src
Erik Živković f0ed4cf520
Add support for running on OpenGL 4.1 with a core profile on macOS (#5331)
When running wgpu with an OpenGL context on macOS that is created with a core
profile and with the forward-compatibility bit set, the MAX_VARYING_COMPONENTS
constant returns 0 when queried. The default value is 60, so we return the
default value if the query returns 0.

We also need to use `#version 140` on macOS since `#version 130` isn't accepted.
Since `#version 140` should be available from OpenGL 3.1, we use that everywhere.
That way we don't need any specific macOS flags or features.
2024-03-03 22:22:20 +01:00
..
auxil Add feature flags in hal to panic when running into some types of errors (#5273) 2024-02-21 11:35:24 -05:00
dx12 Bump Many Dependencies and MSRV (#5241) 2024-02-27 14:43:05 -05:00
gles Add support for running on OpenGL 4.1 with a core profile on macOS (#5331) 2024-03-03 22:22:20 +01:00
metal Separate native-only feature for wgpu::CommandEncoder::write_timestamp (#5188) 2024-02-13 16:03:33 +00:00
vulkan Add feature flags in hal to panic when running into some types of errors (#5273) 2024-02-21 11:35:24 -05:00
empty.rs vulkan: Replace fence with semaphore when acquiring surfaces (#4967) 2024-01-21 18:14:17 -05:00
lib.rs Bump Many Dependencies and MSRV (#5241) 2024-02-27 14:43:05 -05:00