Expose texture target value into API