{"id":13439558,"url":"https://github.com/gfx-rs/gfx","last_synced_at":"2025-12-17T14:08:51.821Z","repository":{"id":11401311,"uuid":"13847975","full_name":"gfx-rs/gfx","owner":"gfx-rs","description":"[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.","archived":false,"fork":false,"pushed_at":"2023-02-27T01:05:58.000Z","size":26990,"stargazers_count":5400,"open_issues_count":331,"forks_count":535,"subscribers_count":119,"default_branch":"master","last_synced_at":"2025-12-14T01:58:00.415Z","etag":null,"topics":["dx11","dx12","gfx","gpu","graphics","graphics-apis","metal","opengl","rust","vulkan"],"latest_commit_sha":null,"homepage":"http://gfx-rs.github.io/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gfx-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-10-25T00:35:35.000Z","updated_at":"2025-12-11T23:33:47.000Z","dependencies_parsed_at":"2023-09-26T13:09:27.400Z","dependency_job_id":null,"html_url":"https://github.com/gfx-rs/gfx","commit_stats":{"total_commits":4320,"total_committers":301,"mean_commits":"14.352159468438538","dds":0.7060185185185186,"last_synced_commit":"bc77309afdb0829605982370a3e17382c5968071"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gfx-rs/gfx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx-rs%2Fgfx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx-rs%2Fgfx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx-rs%2Fgfx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx-rs%2Fgfx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfx-rs","download_url":"https://codeload.github.com/gfx-rs/gfx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx-rs%2Fgfx/sbom","scorecard":{"id":425089,"data":{"date":"2025-08-11","repo":{"name":"github.com/gfx-rs/gfx","commit":"bc77309afdb0829605982370a3e17382c5968071"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":8,"reason":"Found 8/9 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/gfx-rs/gfx/CI.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T02:04:11.831Z","repository_id":11401311,"created_at":"2025-08-19T02:04:11.838Z","updated_at":"2025-08-19T02:04:11.838Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27783730,"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","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dx11","dx12","gfx","gpu","graphics","graphics-apis","metal","opengl","rust","vulkan"],"created_at":"2024-07-31T03:01:15.124Z","updated_at":"2025-12-17T14:08:51.804Z","avatar_url":"https://github.com/gfx-rs.png","language":"Rust","funding_links":["https://opencollective.com/gfx-rs"],"categories":["Libraries","Rust","库 Libraries","Vulkan Tools, Libraries, and Frameworks","库","硬件_其他","Bindings"],"sub_categories":["Graphics","图形 Graphics","VS Code Extensions for Developer Productivity","Enable Proton in Steam","图像","图像 Graphics","网络服务_其他"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"info/logo.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://matrix.to/#/#gfx:matrix.org\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Matrix-%23gfx%3Amatrix.org-blueviolet.svg\" alt=\"Matrix room\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/gfx-hal\"\u003e\n      \u003cimg src=\"https://img.shields.io/crates/v/gfx-hal.svg?label=gfx-hal\" alt = \"gfx-hal on crates.io\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/gfx-rs/gfx/actions\"\u003e\n      \u003cimg src=\"https://github.com/gfx-rs/gfx/workflows/CI/badge.svg\" alt=\"Build Status\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cstrong\u003e\u003ca href=\"info/getting_started.md\"\u003eGetting Started\u003c/a\u003e | \u003ca href=\"http://docs.rs/gfx-hal\"\u003eDocumentation\u003c/a\u003e | \u003ca href=\"http://gfx-rs.github.io/\"\u003eBlog\u003c/a\u003e | \u003ca href=\"https://opencollective.com/gfx-rs\"\u003eFunding\u003c/a\u003e \u003c/strong\u003e\n\u003c/p\u003e\n\n# gfx-rs\n\ngfx-rs is a low-level, cross-platform graphics and compute abstraction library in Rust. It consists of the following components:\n\n## gfx-hal deprecation\n\nAs of the v0.9 release, gfx-hal is now in maintenance mode. gfx-hal development was mainly driven by [wgpu](https://github.com/gfx-rs/wgpu), which has now switched to its own GPU abstraction called [wgpu-hal](https://github.com/gfx-rs/wgpu/pull/1471). For this reason, gfx-hal development has switched to maintenance only, until the developers figure out the story for gfx-portability. Read more about the transition in [#3768](https://github.com/gfx-rs/gfx/discussions/3768).\n\n## hal\n\n* `gfx-hal` which is gfx's hardware abstraction layer: a Vulkan-ic mostly unsafe API which translates to native graphics backends.\n* `gfx-backend-*` which contains graphics backends for various platforms:\n  * [Vulkan](src/backend/vulkan) (runs on Linux, Windows, and Android)\n  * [DirectX 12](src/backend/dx12) and [DirectX 11](src/backend/dx11)\n  * [Metal](src/backend/metal) (runs on macOS and iOS)\n  * [OpenGL ES3](src/backend/gl) (runs on Linux/BSD, Android, and WASM/WebGL2)\n* `gfx-warden` which is a data-driven reference test framework, used to verify consistency across all graphics backends.\n\ngfx-rs is hard to use, it's recommended for performance-sensitive libraries and engines. If that's not your domain, take a look at [wgpu-rs](https://github.com/gfx-rs/wgpu-rs) for a safe and simple alternative.\n\n## Hardware Abstraction Layer\n\nThe Hardware Abstraction Layer (HAL), is a thin, low-level graphics and compute layer which translates API calls to various backends, which allows for cross-platform support. The API of this layer is based on the Vulkan API, adapted to be more Rust-friendly.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"info/hal.svg\" alt=\"Hardware Abstraction Layer (HAL)\" /\u003e\u003c/p\u003e\n\nCurrently HAL has backends for Vulkan, DirectX 12/11, Metal, and OpenGL/OpenGL ES/WebGL.\n\nThe HAL layer is consumed directly by user applications or libraries. HAL is also used in efforts such as [gfx-portability](https://github.com/gfx-rs/portability).\n\nSee the [Big Picture](https://gfx-rs.github.io/2020/11/16/big-picture.html) blog post for connections.\n\n## The old `gfx` crate (pre-ll)\n\nThis repository was originally home to the [`gfx`](https://crates.io/crates/gfx) crate, which is now deprecated. You can find the latest versions of the code for that crate in the [`pre-ll`](https://github.com/gfx-rs/gfx/tree/pre-ll) branch of this repository.\n\nThe master branch of this repository is now focused on developing [`gfx-hal`](https://crates.io/crates/gfx-hal) and its associated backend and helper libraries, as described above. `gfx-hal` is a complete rewrite of `gfx`, but it is not necessarily the direct successor to `gfx`. Instead, it serves a different purpose than the original `gfx` crate, by being \"lower level\" than the original. Hence, the name of `gfx-hal` was originally `ll`, which stands for \"lower level\", and the original `gfx` is now referred to as `pre-ll`.\n\nThe spiritual successor to the original `gfx` is actually [`wgpu`](https://github.com/gfx-rs/wgpu-rs), which stands on a similar level of abstraction to the old `gfx` crate, but with a modernized API that is more fit for being used over Vulkan/DX12/Metal. If you want something similar to the old `gfx` crate that is being actively developed, `wgpu` is probably what you're looking for, rather than `gfx-hal`.\n\n## Contributing\n\nWe are actively looking for new contributors and aim to be welcoming and helpful to anyone that is interested! We know the code base can be a bit intimidating in size and depth at first, and to this end we have a [label](https://github.com/gfx-rs/gfx/issues?q=is%3Aissue+is%3Aopen+label%3Acontributor-friendly) on the issue tracker which marks issues that are new contributor friendly and have some basic direction for completion in the issue comments. If you have any questions about any of these issues (or any other issues) you may want to work on, please comment on GitHub and/or drop a message in our [Matrix chat](https://matrix.to/#/#gfx:matrix.org)!\n\n## License\n\n[license]: #license\n\nThis repository is licensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfx-rs%2Fgfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfx-rs%2Fgfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfx-rs%2Fgfx/lists"}