https://github.com/madsmtm/wgpu-objc2-example
Example of using wgpu with objc2
https://github.com/madsmtm/wgpu-objc2-example
objc2 rust rust-lang wgpu
Last synced: about 1 year ago
JSON representation
Example of using wgpu with objc2
- Host: GitHub
- URL: https://github.com/madsmtm/wgpu-objc2-example
- Owner: madsmtm
- Created: 2024-06-26T08:19:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T17:16:41.000Z (over 1 year ago)
- Last Synced: 2025-03-24T12:39:05.331Z (about 1 year ago)
- Topics: objc2, rust, rust-lang, wgpu
- Language: Rust
- Homepage: https://github.com/madsmtm/objc2
- Size: 98.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example of using `wgpu` with `objc2`
An example of rendering with `wgpu` directly to a view controlled by `objc2`.
This uses AppKit when targetting macOS, and UIKit otherwise.
To run this with Mac Catalyst, you will need to bundle your application. This can be done with `cargo bundle` as follows:
```sh
cargo bundle --format=ios --target=aarch64-apple-ios-macabi
./target/aarch64-apple-ios-macabi/debug/bundle/ios/wgpu-objc2-example.app/wgpu-objc2-example
```
## Configurations
See [`Cargo.toml`](./Cargo.toml) for the list of features that change the mode of execution.