You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm using a macOS HighSierra (10.13.6) and encountered an issue while using nannou.
I'm running this:
use nannou::prelude::*;
fn main() {
nannou::sketch(view).size(500, 500).run();
}
fn view(app: &App, frame: Frame) {
// get canvas to draw on
let draw = app.draw();
// set background to blue
draw.background().color(BLACK);
draw.rect()
.x_y(0.0, 0.0)
.w_h(100.0, 100.0)
.color(PLUM);
// put everything on the frame
draw.to_frame(app, &frame).unwrap();
}
It compiles without problem but when i run my program it panics with:
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_render_pipeline
note: label = `nannou render pipeline`
Internal error in FRAGMENT shader: Metal: Compilation failed:
program_source:31:29: error: unknown type name 'uint'; did you mean 'int'?
if (mode == static_cast<uint>(0)) {
^~~~
int
program_source:34:33: error: unknown type name 'uint'; did you mean 'int'?
if (mode == static_cast<uint>(1)) {
^~~~
int
program_source:37:37: error: unknown type name 'uint'; did you mean 'int'?
if (mode == static_cast<uint>(2)) {
^~~~
int
Maybe it's because I have a too old version of macOS.
The solution I found is to use nannou 0.17.0 but I would like to know if there is any other way.
Moreover, if I remove the draw.rect(), there is no error but an empty window is not that interesting :)
The text was updated successfully, but these errors were encountered:
So I'm using a macOS HighSierra (10.13.6) and encountered an issue while using nannou.
I'm running this:
It compiles without problem but when i run my program it panics with:
Maybe it's because I have a too old version of macOS.
The solution I found is to use nannou 0.17.0 but I would like to know if there is any other way.
Moreover, if I remove the draw.rect(), there is no error but an empty window is not that interesting :)
The text was updated successfully, but these errors were encountered: