Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.