gfx_graphics icon indicating copy to clipboard operation
gfx_graphics copied to clipboard

Implement texture filtering

Open bvssvni opened this issue 10 years ago • 3 comments

Depends on https://github.com/PistonDevelopers/texture/issues/32.

bvssvni avatar Dec 06 '15 18:12 bvssvni

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.

bvssvni avatar Dec 06 '15 23:12 bvssvni

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.

kvark avatar Dec 07 '15 02:12 kvark

This is partially fixed by #309 and PistonDevelopers/gfx_texture/pull/89.

nanotech avatar Nov 01 '16 22:11 nanotech