Use template to declare shader texture usage.