{"id":21879253,"url":"https://github.com/typpo/gpu.js","last_synced_at":"2026-05-17T15:02:36.217Z","repository":{"id":9812777,"uuid":"11795018","full_name":"typpo/gpu.js","owner":"typpo","description":null,"archived":false,"fork":false,"pushed_at":"2014-09-17T05:43:06.000Z","size":232,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-26T18:29:44.802Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typpo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-31T16:06:32.000Z","updated_at":"2023-05-04T14:05:32.000Z","dependencies_parsed_at":"2022-07-08T06:38:43.833Z","dependency_job_id":null,"html_url":"https://github.com/typpo/gpu.js","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/typpo%2Fgpu.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fgpu.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fgpu.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fgpu.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typpo","download_url":"https://codeload.github.com/typpo/gpu.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244885696,"owners_count":20526296,"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-28T08:15:42.926Z","updated_at":"2026-05-17T15:02:31.178Z","avatar_url":"https://github.com/typpo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"gpu.js\n======\n\nAn easier wrapper around WebCLGL.\n\nWrite your shader:\n\n    \u003cscript type=\"shader\" id=\"testshader\"\u003e\n    void main(float* A, float* B) {\n      vec2 x = get_global_id();\n      out_float = A[x] + B[x];\n    }\n    \u003c/script\u003e\n    \nThen call it from Javascript:\n\n    var w = new GpuWorker();\n    w.setResultRange(0, 10);\n    \n    var fn = w.prepare('testshader');\n    \n    var res = fn([1.0, 2.0, 3.0, 4.0], [0.1, 0.2, 0.3, 0.4]);\n    console.log(res);\n\nMore to come..\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyppo%2Fgpu.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyppo%2Fgpu.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyppo%2Fgpu.js/lists"}