mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
Switch from WGPU 24 to WGPU 25
- Use a version of FemtoVG that uses WGPU 25 - Rename the unstable-wgpu-24 feature and wgpu_24 module - Fetch bevy from a revision on master branch that switches to WGPU 25 - Move the bevy example out of the common workspace: That way users of the repo don't get bevy pulled from git, unless they want to build the bevy example.
This commit is contained in:
parent
01850e0b82
commit
3101104f5c
32 changed files with 215 additions and 183 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
slint::include_modules!();
|
||||
|
||||
use slint::wgpu_24::{wgpu, WGPUConfiguration, WGPUSettings};
|
||||
use slint::wgpu_25::{wgpu, WGPUConfiguration, WGPUSettings};
|
||||
|
||||
struct DemoRenderer {
|
||||
device: wgpu::Device,
|
||||
|
|
@ -145,7 +145,7 @@ fn main() {
|
|||
wgpu_settings.device_required_limits.max_push_constant_size = 16;
|
||||
|
||||
slint::BackendSelector::new()
|
||||
.require_wgpu_24(WGPUConfiguration::Automatic(wgpu_settings))
|
||||
.require_wgpu_25(WGPUConfiguration::Automatic(wgpu_settings))
|
||||
.select()
|
||||
.expect("Unable to create Slint backend with WGPU based renderer");
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ fn main() {
|
|||
match state {
|
||||
slint::RenderingState::RenderingSetup => {
|
||||
match graphics_api {
|
||||
slint::GraphicsAPI::WGPU24 { device, queue, .. } => {
|
||||
slint::GraphicsAPI::WGPU25 { device, queue, .. } => {
|
||||
underlay = Some(DemoRenderer::new(device, queue));
|
||||
}
|
||||
_ => return,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue