Filled out shader validation code.