reorganize the texture access.