{"id":20675021,"url":"https://github.com/gpujs/expo-gl","last_synced_at":"2025-04-19T20:33:55.947Z","repository":{"id":47394550,"uuid":"194430792","full_name":"gpujs/expo-gl","owner":"gpujs","description":"A GPU.js extender for use with React Native's Expo library","archived":false,"fork":false,"pushed_at":"2022-12-09T23:47:33.000Z","size":101,"stargazers_count":20,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T19:18:43.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gpujs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-29T17:16:47.000Z","updated_at":"2024-03-02T06:55:35.000Z","dependencies_parsed_at":"2023-01-25T17:45:35.406Z","dependency_job_id":null,"html_url":"https://github.com/gpujs/expo-gl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpujs%2Fexpo-gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpujs%2Fexpo-gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpujs%2Fexpo-gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpujs%2Fexpo-gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpujs","download_url":"https://codeload.github.com/gpujs/expo-gl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249794839,"owners_count":21326775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T21:08:20.574Z","updated_at":"2025-04-19T20:33:55.918Z","avatar_url":"https://github.com/gpujs.png","language":"JavaScript","readme":"# @gpujs/expo-gl - A GPU.js extender for use with React Native's Expo library\n\nThis package allows you to use [GPU.js](gpu.rocks) with Expo to get a native GPGPU.\n\n## Installation\n1. Setup Expo - https://docs.expo.io/versions/latest/introduction/installation/\n2. Add the following to use `@gpujs/expo-gl`:\n  ```js\n    import { GLView } from 'expo-gl';\n    import { GPU } from '@gpujs/expo-gl';\n    GLView.createContextAsync()\n      .then(context =\u003e {\n        const gpu = new GPU({ context });\n        const kernel = gpu.createKernel(kernelFunctionHere, kernelOptionsHere);\n        kernel();\n      });\n  ```\n3. Visit https://github.com/gpujs/gpu.js for documentation on `kernelFunctionHere`, `kernelOptionsHere`, as well as the api.\n4. Run your expo from Android or iOS and have native GPGPU support!\n5. Have fun!\n\n\n## Example\n```js\nimport { GLView } from 'expo-gl';\nimport { GPU } from '@gpujs/expo-gl';\nGLView.createContextAsync()\n  .then(context =\u003e {\n    const gpu = new GPU({ context });\n    const kernel = gpu.createKernel(function() {\n      return 1;\n    }, { output: [1], debug: true });\n    console.log(kernel());\n    gpu.destroy();\n  });\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpujs%2Fexpo-gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpujs%2Fexpo-gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpujs%2Fexpo-gl/lists"}