Added first implementation for texture buffering