{"id":28836379,"url":"https://github.com/babylonjs/twgsl","last_synced_at":"2026-02-03T10:01:43.455Z","repository":{"id":71200086,"uuid":"390805551","full_name":"BabylonJS/twgsl","owner":"BabylonJS","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-12T09:59:12.000Z","size":92,"stargazers_count":18,"open_issues_count":0,"forks_count":6,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-19T11:05:31.906Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","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/BabylonJS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-29T17:41:18.000Z","updated_at":"2025-02-17T05:57:30.000Z","dependencies_parsed_at":"2023-12-11T11:49:14.725Z","dependency_job_id":"ec376528-1e81-46ff-8c30-d1cd26b22e61","html_url":"https://github.com/BabylonJS/twgsl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BabylonJS/twgsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BabylonJS%2Ftwgsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BabylonJS%2Ftwgsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BabylonJS%2Ftwgsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BabylonJS%2Ftwgsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BabylonJS","download_url":"https://codeload.github.com/BabylonJS/twgsl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BabylonJS%2Ftwgsl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29040729,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T09:57:37.951Z","status":"ssl_error","status_checked_at":"2026-02-03T09:55:14.920Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-06-19T11:05:11.423Z","updated_at":"2026-02-03T10:01:43.449Z","avatar_url":"https://github.com/BabylonJS.png","language":"CMake","readme":"# twgsl\n\ntwgsl (from \"to WGSL\") is a small \"adapter\" layer exposing the\nSPIR-V to WGSL transpilation capabilities of Google's \n[Tint](https://dawn.googlesource.com/tint) library to JavaScript.\n\n## Building twgsl\n\nI recommend building from a Linux VM set up explicitly for this purpose.\n\n1.  [Set up Emscripten](https://emscripten.org/docs/getting_started/downloads.html#installation-instructions-using-the-emsdk-recommended),\n    making sure to add its tools to your path.\n1.  [Set up Chrome Depot Tools](http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up),\n    making sure to add the tools to your path.\n1.  Clone twgsl and download the Tint submodule.\n    ```\n    git clone https://github.com/BabylonJS/twgsl.git\n    cd twgsl\n    git submodule update --init --recursive\n    ```\n1.  [Set up the Tint repository](https://dawn.googlesource.com/tint#getting-source-dependencies) \n    to build.\n    ```\n    cd Dependencies/Tint\n    cp standalone.gclient .gclient\n    gclient sync\n    ```\n1.  Create a build folder outside the `twgsl` folder (assumed in this \n    example to be adjacent), then configure cmake using Emscripten's CMake \n    wrapper.\n    ```\n    mkdir twgsl_build\n    cd twgsl_build\n    emcmake cmake ../twgsl\n    ```\n1.  Build the `twgsl` target using Emscripten's Make wrapper.\n    ```\n    emmake make twgsl\n    ```\n    Significant optimizations are turned on, so this build may take a _very_\n    long time.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabylonjs%2Ftwgsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabylonjs%2Ftwgsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabylonjs%2Ftwgsl/lists"}