C++ samples: Texture sampling from PNG