Add method to query texture index of render patch