1
0
Fork 0

Drop all wgpu support from nih_plug_iced

This old version ended up making it impossible to upgrade Vizia because
of semver breakage in web-sys and wgpu not pinning a web-sys version.
This commit is contained in:
Robbert van der Helm 2023-02-20 20:46:26 +01:00
parent 52b6c26cc4
commit af5396d1f4
2 changed files with 267 additions and 871 deletions

1105
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -10,11 +10,14 @@ description = "An adapter to use iced GUIs with NIH-plug"
[features] [features]
default = ["opengl"] default = ["opengl"]
# Use wgpu rendering, which translates to Vulkan, Metal, or Direct3D12 depending # NOTE: wgpu support has been removed from the iced-baseview fork out because
# on the platform. # this old iced version uses a wgpu version that doesn't pin the web-sys
# NOTE: The OpenGL support in baseview is not used, this is just a workaround # version it uses, and web-sys broke semver
# for a rust analyzer bug. See the comment in lib.rs. # # Use wgpu rendering, which translates to Vulkan, Metal, or Direct3D12 depending
wgpu = ["iced_baseview/wgpu", "baseview/opengl"] # # on the platform.
# # NOTE: The OpenGL support in baseview is not used, this is just a workaround
# # for a rust analyzer bug. See the comment in lib.rs.
# wgpu = ["iced_baseview/wgpu", "baseview/opengl"]
# Use OpenGL instead of wgpu for the rendering. This should increase platform # Use OpenGL instead of wgpu for the rendering. This should increase platform
# compatibility at the cost of some iced features not being available. # compatibility at the cost of some iced features not being available.
opengl = ["iced_baseview/glow"] opengl = ["iced_baseview/glow"]
@ -22,23 +25,23 @@ opengl = ["iced_baseview/glow"]
# Enables a debug view in native platforms (press F12) # Enables a debug view in native platforms (press F12)
debug = ["iced_baseview/debug"] debug = ["iced_baseview/debug"]
# Enables the `Image` widget, only supported by the wgpu backend # # Enables the `Image` widget, only supported by the wgpu backend
wgpu_image = ["iced_baseview/wgpu_image"] # wgpu_image = ["iced_baseview/wgpu_image"]
# Enables the `Svg` widget, only supported by the wgpu backend # # Enables the `Svg` widget, only supported by the wgpu backend
wgpu_svg = ["iced_baseview/wgpu_svg"] # wgpu_svg = ["iced_baseview/wgpu_svg"]
# Enables the `Canvas` widget for the wgpu backend # # Enables the `Canvas` widget for the wgpu backend
wgpu_canvas = ["iced_baseview/wgpu_canvas"] # wgpu_canvas = ["iced_baseview/wgpu_canvas"]
# Enables the `Canvas` widget for the OpenGL backend # Enables the `Canvas` widget for the OpenGL backend
opengl_canvas = ["iced_baseview/glow_canvas"] opengl_canvas = ["iced_baseview/glow_canvas"]
# Enables the `QRCode` widget for the wgpu backend # # Enables the `QRCode` widget for the wgpu backend
wgpu_qr_code = ["iced_baseview/wgpu_qr_code"] # wgpu_qr_code = ["iced_baseview/wgpu_qr_code"]
# Enables the `QRCode` widget for the OpenGL backend # Enables the `QRCode` widget for the OpenGL backend
opengl_qr_code = ["iced_baseview/glow_qr_code"] opengl_qr_code = ["iced_baseview/glow_qr_code"]
# Enables using system fonts for the wgpu backend # # Enables using system fonts for the wgpu backend
wgpu_default_system_font = ["iced_baseview/wgpu_default_system_font"] # wgpu_default_system_font = ["iced_baseview/wgpu_default_system_font"]
# Enables using system fonts for the OpenGL backend # Enables using system fonts for the OpenGL backend
opengl_default_system_font = ["iced_baseview/glow_default_system_font"] opengl_default_system_font = ["iced_baseview/glow_default_system_font"]