Extracting rendering primitives