texture size function and uniform matrix function