{"id":36420579,"url":"https://github.com/wgpu4k/wgpu4k-native","last_synced_at":"2026-01-11T17:33:03.562Z","repository":{"id":254268026,"uuid":"845991039","full_name":"wgpu4k/wgpu4k-native","owner":"wgpu4k","description":"wgpu binding for kotlin multi platform","archived":false,"fork":false,"pushed_at":"2025-07-06T19:24:55.000Z","size":5652,"stargazers_count":19,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T20:35:23.123Z","etag":null,"topics":["kotlin","wgpu"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/wgpu4k.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-22T10:24:27.000Z","updated_at":"2025-07-06T19:24:56.000Z","dependencies_parsed_at":"2024-08-22T12:33:24.037Z","dependency_job_id":"11328f85-eb75-430b-ae8f-550891125ff7","html_url":"https://github.com/wgpu4k/wgpu4k-native","commit_stats":null,"previous_names":["wgpu4k/wgpu4k-native"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/wgpu4k/wgpu4k-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpu4k%2Fwgpu4k-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpu4k%2Fwgpu4k-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpu4k%2Fwgpu4k-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpu4k%2Fwgpu4k-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wgpu4k","download_url":"https://codeload.github.com/wgpu4k/wgpu4k-native/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wgpu4k%2Fwgpu4k-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28315879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"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":["kotlin","wgpu"],"created_at":"2026-01-11T17:33:03.066Z","updated_at":"2026-01-11T17:33:03.551Z","avatar_url":"https://github.com/wgpu4k.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wgpu4k native : a Kotlin binding of wgpu library\n\n[![Tests](https://github.com/wgpu4k/wgpu4k-native/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/wgpu4k/wgpu4k-native/actions/workflows/test.yml)\n![Static Badge](https://img.shields.io/badge/Status-Stable-green?style=plastic)\n![Static Badge](https://img.shields.io/badge/Latest%20version-v27.0.4-green?style=plastic)\n[![Static Badge](https://img.shields.io/badge/Licence-MIT-blue?style=plastic)](https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMIT_License)\n[![Static Badge](https://img.shields.io/badge/Discord-wgpu4k-purple?style=plastic)](https://discord.gg/qy9KQAP9Kc)\n\n## About\nThis project is a WebGPU binding compatible with Desktop and Mobile. \n\nIf you are looking for an experience that also covers the web, you can use the [wgpu4k](https://github.com/wgpu4k/wgpu4k) project.\n\nThis library uses the Firefox backend written in Rust, [available here](https://github.com/gfx-rs/wgpu-native).\n\n## How to Run the demo\n\n1. On JVM: `./gradlew demo:desktop-and-ios:runJvm`\n4. On native Macos or Linux: `./gradlew demo:desktop-and-ios:runDebugExecutable`\n5. On Android, run the subproject `android` with android studio or IntelliJ IDEA!\n5. On Android Native, run `./gradlew build`, then run the subproject `android-native` with android studio or IntelliJ IDEA!\n6. On iOS `./gradlew demo:desktop-and-ios:assembleWgpuAppXCFramework` to build the XC Framework, then you can run the subproject `iosApp` (on demo/desktop-and-ios folder) with XCode on a iOS simulator or real device.\n\n\n## How to use\n\n[View the API reference](https://wgpu4k.github.io/wgpu4k-native/)\n\nFrom a basic multiplatform project, create a common native source set and add the library:\n\n``` kotlin\nprivate val hierarchyTemplate = KotlinHierarchyTemplate {\n    /* natural hierarchy is only applied to default 'main'/'test' compilations (by default) */\n    withSourceSetTree(KotlinSourceSetTree.main, KotlinSourceSetTree.test)\n\n    common {\n        /* All compilations shall be added to the common group by default */\n        withCompilations { true }\n\n        group(\"commonNative\") {\n            group(\"native\") {\n                withNative()\n\n                group(\"apple\") {\n                    withApple()\n\n                    group(\"ios\") {\n                        withIos()\n                    }\n\n                    group(\"tvos\") {\n                        withTvos()\n                    }\n\n                    group(\"watchos\") {\n                        withWatchos()\n                    }\n\n                    group(\"macos\") {\n                        withMacos()\n                    }\n                }\n\n                group(\"linux\") {\n                    withLinux()\n                }\n\n                group(\"mingw\") {\n                    withMingw()\n                }\n\n            }\n\n            withJvm()\n            withAndroidTarget()\n        }\n    }\n}\n\nkotlin {\n    ...\n    jvm {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_24\n        }\n    }\n\n    iosX64()\n    iosArm64()\n    iosSimulatorArm64()\n    macosArm64()\n    macosX64()\n    linuxArm64()\n    linuxX64()\n    mingwX64()\n\n    androidTarget {\n        compilerOptions {\n            jvmTarget = JvmTarget.JVM_24\n        }\n\n        publishLibraryVariants(\"release\", \"debug\")\n    }\n\n    applyHierarchyTemplate(hierarchyTemplate)\n\n    sourceSets {\n    \n        ...\n        val commonNativeMain by getting {\n            dependencies { api(\"io.ygdrasil:wgpu4k-native:\u003clibrary version\u003e) }\n        }\n        ...\n        \n    }\n    ...\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgpu4k%2Fwgpu4k-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwgpu4k%2Fwgpu4k-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwgpu4k%2Fwgpu4k-native/lists"}