Draft glyphon implementation of text pipeline for iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-01-31 06:29:21 +01:00
parent b9a9576207
commit baf51a8fcf
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
8 changed files with 187 additions and 26 deletions

View file

@ -134,8 +134,12 @@ pub fn main() {
// Initialize iced
let mut debug = Debug::new();
let mut renderer =
Renderer::new(Backend::new(&device, Settings::default(), format));
let mut renderer = Renderer::new(Backend::new(
&device,
&queue,
Settings::default(),
format,
));
let mut state = program::State::new(
controls,
@ -247,6 +251,7 @@ pub fn main() {
renderer.with_primitives(|backend, primitive| {
backend.present(
&device,
&queue,
&mut staging_belt,
&mut encoder,
&view,