Add a bevy-texture example based on wgpu-texture (#4360)

* Add a bevy-texture example based on wgpu-texture

* Use git branch of Blitz

* Update existing code to new blitz

* Use Device from Dioxus for bevy

* Use ManualTextureView

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Fix texture size on window resize

* Clean code

* Rename example to 'bevy-example' in 'bevy' directory

* Upgrade to blitz 0.1.0-alpha.5 and anyrender 0.4

* Install alsa in CI

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Add libudev to CI

Signed-off-by: Nico Burns <nico@nicoburns.com>

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
Co-authored-by: Jerome Caucat <jerome.caucat@smartshape.com>
Co-authored-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
authored and GitHub committed 2025-07-04 22:01:00 +01:00
1 parent a66bffb487
commit 5495bcedb4
14 files changed
+2426 -79

No files matched your search

+3 -1
View File
@@ -8,7 +8,9 @@ use blitz_dom::{
net::Resource, BaseDocument, Document, EventDriver, EventHandler, Node, DEFAULT_CSS,
};
use blitz_traits::{
events::UiEvent, net::NetProvider, ColorScheme, DomEvent, DomEventData, EventState, Viewport,
events::{DomEvent, DomEventData, EventState, UiEvent},
net::NetProvider,
shell::{ColorScheme, Viewport},
};
use dioxus_core::{ElementId, Event, VirtualDom};
+1 -1
View File
@@ -1,4 +1,4 @@
use blitz_traits::{BlitzKeyEvent, BlitzMouseButtonEvent, MouseEventButton};
use blitz_traits::events::{BlitzKeyEvent, BlitzMouseButtonEvent, MouseEventButton};
use dioxus_html::{
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
input_data::{MouseButton, MouseButtonSet},
+3 -1
View File
@@ -17,7 +17,9 @@ mod dioxus_renderer;
mod events;
mod mutation_writer;
pub use anyrender_vello::{CustomPaintCtx, CustomPaintSource, TextureHandle};
pub use anyrender_vello::{
wgpu_context::DeviceHandle, CustomPaintCtx, CustomPaintSource, TextureHandle,
};
use assets::DioxusNativeNetProvider;
use blitz_dom::{ns, LocalName, Namespace, QualName};
pub use dioxus_application::{DioxusNativeApplication, DioxusNativeEvent};