Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic on an any example #31

Closed
legendiguess opened this issue Dec 19, 2019 · 7 comments
Closed

Panic on an any example #31

legendiguess opened this issue Dec 19, 2019 · 7 comments

Comments

@legendiguess
Copy link

image

Maybe i should install something additional?
Steps that i do:

  1. clone repository
  2. cd kas-wgpu
  3. cargo run --exmaple example name

Also when i compiled it, some crate require to install cmake, so, i think, you should mention it in some installation guide.

All it was on a linux peppermint 10. Also using last nightly linux gnu toolchain.

@dhardy
Copy link
Collaborator

dhardy commented Dec 19, 2019

Thanks for testing. The steps sound about right, unfortunately I can't tell what's wrong from that error message.

Can you try enabling the backtrace as mentioned (export RUST_BACKTRACE=1), and then copying the error into a gist please?

Aha, probably CMake is required for the GLSL compiler. Okay, I'll add a note 👍

@legendiguess
Copy link
Author

@dhardy
Copy link
Collaborator

dhardy commented Dec 19, 2019

Looks like it is wgpu::Adapter::request which fails. What GPU / integrated graphics do you have?

The disadvantage of using a modern graphics API as the first and only draw backend is that we don't have any other options (yet). Can you try running the GFX examples and see whether any backends are functional (e.g. gl)?

I will improve the error message here, but don't expect to have a CPU-based renderer soon.

@legendiguess
Copy link
Author

legendiguess commented Dec 20, 2019

I have Intel HD Graphics 500. Just checked gfx examples with different backend - only gl works.

@dhardy
Copy link
Collaborator

dhardy commented Dec 20, 2019

Sounds like this issue: gfx-rs/wgpu#115 — i.e. eventually wgpu should support OpenGL / WebGL backends.

@dhardy
Copy link
Collaborator

dhardy commented Dec 20, 2019

I improved error handling within kas_wgpu: e13f1d6

In combination with gfx-rs/wgpu#408 this should improve error messages.

Actually getting things working is rather more work...

@dhardy
Copy link
Collaborator

dhardy commented Dec 22, 2019

I opened #33 to track support for additional targets.

The error message is improved, so I believe this can be closed.

@dhardy dhardy closed this as completed Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants