Comments (18)
Hi. The reason why you get compilation error is simply because I made lots of breaking changes in the API and only kept the teapot example up-to-date!
Also you get an error in the teapot example because it expects the SDK to be installed on the machine. I just pushed a change (69d6b90) that should fix that.
from vulkano.
because drivers are drivers and SDKs are SDKs why would I need the lunar SDK to run/compile vulkano? anyway I downloaded and installed latest https://vulkan.lunarg.com
Updated master to 69d6b90 and get this error (after second run to dismiss extra compiler warnings)
cargo run --example teapot
Running `target\debug\examples\teapot.exe`
thread '<main>' panicked at 'failed to create instance: ExtensionNotPresent', ../src/libcore\result.rs:709
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 101)
Here is vulkaninfo if of any help
from vulkano.
You shouldn't need to install the SDK. The change I pushed fixed the example so that it no longer requires it.
For your other problem, that's interesting. The instance doesn't support VK_KHR_swapchain
.
from vulkano.
This should be fixed by 3e15fd3. My AMD driver is probably faulty.
from vulkano.
Nice, but does that part need to be static and not dynamic?
Anyway, now I see a creation of a window... but still
cargo run --example teapot
Running `target\debug\examples\teapot.exe`
Using device: GTX TITAN (type: DiscreteGpu)
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore\option.rs:330
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 101)
And thanks for your fast answers :).
from vulkano.
Nice, but does that part need to be static and not dynamic?
VK_KHR_surface
is required to draw on windows, and VK_KHR_surface_win32
is require to draw on windows on Windows.
Anyway, now I see a creation of a window... but still
Please provide a backtrace with RUST_BACKTRACE=1
from vulkano.
Here it is
cargo run --example teapot
Running `target\debug\examples\teapot.exe`
Using device: GTX TITAN (type: DiscreteGpu)
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore\option.rs:330
stack backtrace:
0: 0x7ff6917a2ca5 - sys::ext::ffi::OsString.OsStringExt::from_wide::h7c8f6f825e0cb7e7JAv
1: 0x7ff6917a7ce7 - rt::lang_start::h98aefce18d0542a30Ky
2: 0x7ff691798808 - sys_common::unwind::begin_unwind_inner::h485629376f8607efSat
3: 0x7ff691798c6b - sys_common::unwind::begin_unwind_fmt::ha23b0b11dd517285Y9s
4: 0x7ff6917a0512 - rust_begin_unwind
5: 0x7ff6917a96d8 - panicking::panic_fmt::h3dc40a8b303af4f9zYL
6: 0x7ff6917a99d0 - panicking::panic::hf4e33ac4547ee3e16WL
7: 0x7ff691409a7e - unwrap
at Z:\tyoc\Documentos\GitHub\vulkano\src\libcore\macros.rs:21
8: 0x7ff69140786e - try_write
at Z:\tyoc\Documentos\GitHub\vulkano\vulkano\src\memory\single.rs:254
9: 0x7ff69140777d - try_write
at Z:\tyoc\Documentos\GitHub\vulkano\vulkano\src\buffer.rs:335
10: 0x7ff6913d218d - main
at Z:\tyoc\Documentos\GitHub\vulkano\vulkano\examples\teapot.rs:86
11: 0x7ff6917a7628 - rt::lang_start::h98aefce18d0542a30Ky
12: 0x7ff69179e72f - sys_common::unwind::try::inner_try::hf61c3446f7caab3aq7s
13: 0x7ff6917a7529 - rt::lang_start::h98aefce18d0542a30Ky
14: 0x7ff69144c879 - main
15: 0x7ff6917b32e7 - __scrt_common_main_seh
at f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264
16: 0x7ffc7f428101 - BaseThreadInitThunk
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 101)
from vulkano.
By the way, I try the same with image example (set RUST_BACKTRACE=1), but stack trace doesnt show
cargo run --example image
Running `target\debug\examples\image.exe`
Using device: GTX TITAN (type: DiscreteGpu)
Process didn't exit successfully: `target\debug\examples\image.exe` (exit code: 3221226505)
The example uses swap chain so, the VS debugger catch this
And finally
from vulkano.
Commit 7ab8067 should fix the teapot issue.
As for the swapchain, could you tell what error Visual Studio reported for the crash?
from vulkano.
I updated to latest 31415af and the teapot example now launch on exit the VS debugger instead of show the backtrace... This is what I get in the output log... from VS...
The thread 0x38fc has exited with code 0 (0x0).
Unhandled exception at 0x0000000056FAE3CC (nvoglv64.dll) in teapot.exe: Fatal program exit requested.
The command promt only show
cargo run --example teapot
Running `target\debug\examples\teapot.exe`
Using device: GTX TITAN (type: DiscreteGpu)
Process didn't exit successfully: `target\debug\examples\teapot.exe` (exit code: 3221226505)
Sorry I cant help more, but this are the windows I get
Later it prompts to choose a debugger
On the left on the bkreaced at exception if I click go to source I get
But if I go to thread 1 and click on the only call of teapot I go to
from vulkano.
Teapot sample is broken for me again,
`<vulkano macros>:57:1: 57:23 error: the trait `core::clone::Clone` is not implemented for the type `collections::vec::IntoIter<vulkano::framebuffer::LayoutAttachmentDescription>` [E0277]
<vulkano macros>:57 UnsafeRenderPass:: new (
^~~~~~~~~~~~~~~~~~~~~~
<vulkano macros>:55:42: 59:41 note: in this expansion of try! (defined in <std macros>)
<vulkano macros>:5:1: 9:21 note: in this expansion of ordered_passes_renderpass! (defined in <vulkano macros>)
examples\teapot.rs:140:9: 157:10 note: in this expansion of single_pass_renderpass! (defined in <vulkano macros>)
<vulkano macros>:57:1: 57:23 help: run `rustc --explain E0277` to see a detailed explanation
<vulkano macros>:57:1: 57:23 note: required by `vulkano::framebuffer::UnsafeRenderPass::new`
<vulkano macros>:57:1: 57:23 error: the trait `core::clone::Clone` is not implemented for the type `collections::vec::IntoIter<vulkano::framebuffer::LayoutPassDescription>` [E0277]
<vulkano macros>:57 UnsafeRenderPass:: new (
^~~~~~~~~~~~~~~~~~~~~~
<vulkano macros>:55:42: 59:41 note: in this expansion of try! (defined in <std macros>)
<vulkano macros>:5:1: 9:21 note: in this expansion of ordered_passes_renderpass! (defined in <vulkano macros>)
examples\teapot.rs:140:9: 157:10 note: in this expansion of single_pass_renderpass! (defined in <vulkano macros>)
<vulkano macros>:57:1: 57:23 help: run `rustc --explain E0277` to see a detailed explanation
<vulkano macros>:57:1: 57:23 note: required by `vulkano::framebuffer::UnsafeRenderPass::new`
error: aborting due to 2 previous errors
Could not compile `vulkano`.`
I'm currently trying to write my first vulkano program, but that unfortunately breaks it
from vulkano.
@auruss It compiles fine for me, plus the framebuffer code is a code that I haven't touched in the last few days. Make sure you have a recent version of Rust.
Other than that, I strongly encourage you not to use vulkano right now. Like the readme says, its API breaks every 5 minutes.
from vulkano.
@tomaka I wonder what your configuration is (OS, rust version, Hardware and maybe drivers probably could be shared on the read me in the mean time vulkano become usable on any config).
from vulkano.
@tyoc213 Windows and AMD drivers should work.
from vulkano.
I see, guess I will need to build a little computer with and R9 fury or something.
By the way, I can confirm the compile error above.. Thought dont know why it compiles in your end and not on us, Im using rustc 1.7.0 (a5d1e7a59 2016-02-29)
gcc version and cargo 0.8.0-nightly (28a0cbb 2016-01-17)
.
The problem did come from the merge of tomaka/vulkano/pull/9 specially 556adf8 (Render pass is now a trait) parent commit did compile teapot.
from vulkano.
I investigated a bit, and apparently the Clone trait is only available on IntoIter starting from Rust 1.8.
Since I'm using the nightly version, I didn't realize that it wasn't available on stable. I also wasn't aware of the fact that code could compile on nightly but not stable even if you didn't activate any nightly-only feature.
from vulkano.
Well, 1.8 comes in April, so I uninstalled 1.7, installed https://www.rust-lang.org/downloads.html 1.8 (which is beta now, 1.9 is nightly) and under 364.7
drivers I see....
A red teapot!
Well I jus tracked that the teapot example did start running in this commit b7fb160
from vulkano.
Since Rust 1.8 is now stable and a warning has been put in the README, I'm going to close this.
from vulkano.
Related Issues (20)
- Invalid queue handle on AMD GPUs using Mesa 23.3.3 and Mesa 24 HOT 16
- Support Vulkan 1.3 target environment in shader compilation
- Creating frame buffers for VulkanoWindowRenderer HOT 7
- Examples Fail to Build Outside of the Vulkano Project HOT 2
- Can't always provide `Win32Monitor` handle when `full_screen_exclusive` is not `FullScreenExclusive::Default` HOT 2
- vulkano-shaders: add support for `linalg_type: "glam"` HOT 1
- Wrong feature support check when creating a device
- slice::from_raw_parts abort-panics while creating Instance with Debug Utils messenger HOT 2
- Vulkan Video extensions
- Image offsets are compared with the `min_texel_gather_offset` device property as u64 instead of i32. HOT 1
- Allow releasing resources from descriptor sets
- Lifetime issue when attempting to build ``AutoCommandBufferBuilder`` HOT 4
- [Question] Is hardware Ray tracing supported yet? HOT 2
- Usage of PersistentDescriptorSet and how to update uniform buffer HOT 11
- pipeline creation error HOT 6
- Some examples time out acquiring next swapchain image
- `Surface::from_window` should probably support `[email protected]::HasWindowHandle` HOT 2
- How to submit a RawCommandBuffer? HOT 1
- Question: is there a benchmark for Vulkano where one thread renders and another thread loads content? HOT 4
- Disabling validation layers HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkano.