App ist vollständig in C ++ und verwendet Metal-CPP+ GLFW. MAG_FILTER :: NEST , min_filter :: nächstes usw.
3x3 Textured Square wird mit zwei Dreiecken angezeigt. Die Textur selbst ist auch 3x3.
Code: Select all
constexpr sampler textureSampler(
mag_filter::nearest,
min_filter::nearest);
Original 3x3 Textur: