Add local texture variable definition for kernels.