Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 month 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 (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T10:05:40.000Z (3 months ago)
- Last Synced: 2024-08-19T11:59:30.994Z (3 months ago)
- Topics: objc2, rust, rust-lang, wgpu
- Language: Rust
- Homepage: https://github.com/madsmtm/objc2
- Size: 55.7 KB
- Stars: 1
- 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 +nightly 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.