khyperia / clam Goto Github PK
View Code? Open in Web Editor NEWA high-quality fractal viewer
License: MIT License
A high-quality fractal viewer
License: MIT License
When running cargo run --release
on an M1 Apple Silicon Macbook, I get
Running `target/release/clam5`
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/render_window.rs:82:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This part of the code is
71 │ async fn new(window: &Window) -> Self {
72 │ let size = window.inner_size();
73 │
74 │ let instance = wgpu::Instance::new(wgpu::BackendBit::VULKAN);
75 │ let surface = unsafe { instance.create_surface(window) };
76 │ let adapter = instance
77 │ .request_adapter(&wgpu::RequestAdapterOptions {
78 │ power_preference: wgpu::PowerPreference::Default,
79 │ compatible_surface: Some(&surface),
80 │ })
81 │ .await
82 │ .unwrap();
I got suspicious because of BackendBit::VULKAN
, and its docs mention that it's supported on macOS with the vulkan-portability
feature. I added that to the wgpu
line in Cargo.toml
:
-wgpu = ""
+wgpu = { version = "", features = ["vulkan-portability"] }
and reran to get a different error:
Running `target/release/clam5`
[2021-01-18T00:00:24Z INFO gfx_backend_vulkan] Missing Vulkan entry points: LoadingError(DlOpen { desc: "dlopen(libvulkan.dylib, 2): image not found" })
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/render_window.rs:82:14
Then I tried just switching to BackendBit::PRIMARY
to see whether it would run anyways, and got an error about a missing font. I don't have the named font for macOS, so I added "/Library/Fonts/Arial Unicode.ttf"
and after that it (seemed to) run successfully.
You fractals are really beautiful. Thank you!
Not too familiar with rust so not sure how to run this? Is it web based? ❤️
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.