aakamenov / microui-rs

A Rust port of the microui immediate-mode UI library.
5 stars 0 forks source link

wgpu failed on Mac m1 #1

Closed Alphapage closed 1 year ago

Alphapage commented 1 year ago

Hello,

I tried to run demo example using wgpu, but it fails because of a memory error. Is it working on linux or windows ?

Thank you in advance for your answer.

aakamenov commented 1 year ago

The wgpu renderer is currently not working and on hold, but I might get back to it at some point. I had issues with text rendering and seems like wgpu-glyph can't be used to draw text in the same render pass as quads anyways. Or at least I couldn't figure out how... You'll have to use the femtovg renderer or write your own. Though the wgpu renderer should just straight up panic with unimplemented: https://github.com/aakamenov/microui-rs/blob/master/microui-wgpu/src/renderer.rs#L268

Alphapage commented 1 year ago

Ok my mistake! But I hope you will find a way to implement wgpu quickly to support Vulkan or Metal. femtovg should surpass macroquad for example with such a backend.