hakolao / egui_winit_vulkano

Egui gui integration with winit and vulkano
Apache License 2.0
79 stars 40 forks source link

texture filter support #42

Closed stefthedrummer closed 1 year ago

stefthedrummer commented 1 year ago

currently magnification- and minification- TextureFilters get ignored by the vulkano integration

TextureOptions { magnification: TextureFilter::Nearest, minification: TextureFilter::Nearest, },

This PR enables the renderer to assign the correct sampler to a TextureId

hakolao commented 1 year ago

Would this work better https://github.com/hakolao/egui_winit_vulkano/pull/43 ? @stefthedrummer, you can also modify your PR to be similar, and if some use case is missing from this.

So instead of adding another method, I thought it would be enough to just pass the sampler create info when registering an image. Let me know what you think