One of the consequences of being convicted of the possession of marijuana, any amount, is a loss of your Texas Drivers License for a period of anywhere from 6 months to 2 years.
This can be avoided if you are found not guilty, your case or the evidence is thrown out of court, or the case is dismissed. Being found not guilty means that you have taken the case to trial, or your case was otherwise dispositioned without you being found guilty.
However, if you were found guilty, then your attorney should be able to get you an operational drivers license at the least. This way you can still use you vehicle for work and school. Although some restrictions may apply, it is worth it to seek use of your vehicle if your license has been suspended due to a drug charge in Texas.