hecrj / wgpu_glyph

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

&mut wgpu::Device does not have to be mutable #26

Closed Technici4n closed 4 years ago

Technici4n commented 4 years ago

I think that all mutable references to wgpu::Device can be replaced by immutable references, considering that wgpu::Device has no &mut self function. Do you think this could be changed? I can submit a PR myself if you want me to.

Thanks

hecrj commented 4 years ago

Yes, that is true. #12 was a similar issue.

Is the mutability requirement an issue for your use case?

Technici4n commented 4 years ago

Ah yes it makes sense. No, it's not an issue, it was just a bit... surprising!