hecrj / wgpu_glyph

A fast text renderer for wgpu (https://github.com/gfx-rs/wgpu)
https://docs.rs/wgpu_glyph
MIT License
443 stars 78 forks source link

Update to use current API in `wgpu-rs` master #5

Closed hecrj closed 5 years ago

hecrj commented 5 years ago

Fixes #4.

Most of the changes are quite straightforward. Let me know if something looks off!

m4b commented 5 years ago

Going to try this out right now :)

m4b commented 5 years ago

K i tested the example and it works with the git hash i'm using ee40f4c574a4ca140b9d57ef66bc806f871abdad; but I can't get text to render in my actual project, but I've never integrated it before so I'm probably just messing something up?

If i render into my swapchain view, I don't need to take into account model view transforms that apply to my vertices right? it should just write directly to the screen coordinates i give, yes?

m4b commented 5 years ago

Nevermind, I was drawing the glyph and then clearing the swapchain texture :man_facepalming: :D this works great now!!!

hecrj commented 5 years ago

@m4b Awesome! We can merge this then :tada:

m4b commented 5 years ago

Thanks for the amazing velocity on updating this!!! :heart: