(a) In this section, “sex offender treatment program” means a comprehensive treatment program that:
(1) psychologically evaluates inmates who are serving a sentence for an offense described by § 12.42(c)(2), Penal Code;
(2) addresses the motivation and psychosocial education of inmates described by Subdivision (1); and
(3) provides relapse prevention training for inmates described by Subdivision (1), including interruption of cognitive and behavioral patterns that have led the inmate to commit criminal offenses.
(b) The department shall establish a sex offender treatment program to treat inmates who are serving sentences for offenses punishable under § 21.02(h) or 22.021(f), Penal Code. The department shall require an inmate described by this subsection to participate in and complete the sex offender treatment program before being released from the department.
(c) The department may establish a sex offender treatment program to treat inmates other than those inmates described by Subsection (b).