isolate texture related logic and ipc from layers