Removed unnecessary C conversion functions
Ported verify shader function to Swift