hecrj / wgpu_glyph

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

Use immutable device ref when building GlyphBrush #29

Closed antonok-edm closed 4 years ago

antonok-edm commented 4 years ago

In wgpu it seems like pipeline setup methods generally accept the wgpu::Device by immutable reference. It works fine this way (Pipeline::new only requires an immutable reference), so I updated the API for creating a GlyphBrush to reflect that.

hecrj commented 4 years ago

This is related to #26 and #12.

Let's merge it. I think the chances of wgpu changing this are lower now.

Thanks! :clinking_glasses: