gfx_graphics
gfx_graphics copied to clipboard
Implement texture filtering
Depends on https://github.com/PistonDevelopers/texture/issues/32.
Seems SamplerInfo is read-only https://gfx-rs.github.io/gfx/gfx/device/handle/struct.Sampler.html.
Could be related to https://github.com/gfx-rs/gfx/issues/311.
You'd need to create a different Sampler for a different filtering mode, so SamplerInfo is immutable by design. For binding, a TextureParam = (handle::Texture, Option<handle::Sampler>), so you can mix and match them at run time.
This is partially fixed by #309 and PistonDevelopers/gfx_texture/pull/89.