Extracting attributes and uniforms from program