(a) The Department of Public Safety of the State of Texas is an agency of the state to enforce the laws protecting the public safety and provide for the prevention and detection of crime.