GithubHelp home page GithubHelp logo

Comments (4)

guidorice avatar guidorice commented on August 16, 2024 1

Superseded by #70

from learn-wgpu.

sotrh avatar sotrh commented on August 16, 2024

Currently looking into this. You may want to cross post on https://github.com/gfx-rs/wgpu-rs though, as I need to test on my girfriend's Mac (I don't have my own).

from learn-wgpu.

guidorice avatar guidorice commented on August 16, 2024

@sotrh great, thanks for looking. Before posting there, I think this might be a good opportunity to try out the vulkan compatibility layer as discussed in #68.
I will let you know if I come up with anything! πŸ‘

from learn-wgpu.

guidorice avatar guidorice commented on August 16, 2024

I installed the vulkan sdk for Mac, then enabled the vulkan backend. I followed these instructions too

[dependencies.wgpu]
version = "0.5.0"
features = ["vulkan"]

and re-built the tutorial11-normals example, and ended up with a different stack trace. But I am no closer to understanding how to fix it. Also not sure if I have the vulkan compatibility layers connected up or not.

 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation RUST_LOG=trace RUST_BACKTRACE=full cargo run --manifest-path code/intermediate/tutorial11-normals/Cargo.toml 
...
   Running `target/debug/tutorial11-normals`
thread 'main' panicked at 'internal error: entered unreachable code', /Users/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-native-0.5.0/src/device.rs:174:5
stack backtrace:
   0:        0x1095e095f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h8ad47541fb823094
   1:        0x10960371e - core::fmt::write::he23e9bd6497f06c3
   2:        0x1095ddfc7 - std::io::Write::write_fmt::h91528f1131e6004e
   3:        0x1095e29ca - std::panicking::default_hook::{{closure}}::h1983f014a45a477e
   4:        0x1095e270c - std::panicking::default_hook::hb0d9b93b5be8b120
   5:        0x1095e2f98 - std::panicking::rust_panic_with_hook::h9f3faafe0983de5c
   6:        0x10960f8a6 - std::panicking::begin_panic::h14956f4780ea73d1
   7:        0x108d397af - wgpu_adapter_request_device
   8:        0x108795c2c - wgpu::Adapter::request_device::{{closure}}::hc48069e4c684868e
   9:        0x10877deb3 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h54d633a410fbdb9e
  10:        0x1087a4e99 - tutorial11_normals::State::new::{{closure}}::h445b75ef846fdb46
  11:        0x10877df9c - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hdc74808b08d63c85
  12:        0x1087b078f - futures_executor::local_pool::block_on::{{closure}}::hecafedba71a075a9
  13:        0x1087b056e - futures_executor::local_pool::run_executor::{{closure}}::h743d447489b547af
  14:        0x10878007a - std::thread::local::LocalKey<T>::try_with::hcc491004e995eb41
  15:        0x10877ff63 - std::thread::local::LocalKey<T>::with::ha3d570a84b4ee1a1
  16:        0x1087b0492 - futures_executor::local_pool::run_executor::hb1e2ad9f5e862aed
  17:        0x1087b06fe - futures_executor::local_pool::block_on::h1bd5d038dbe24a79
  18:        0x10879abb5 - tutorial11_normals::main::hecd1f32154c636d8
  19:        0x1087af93e - std::rt::lang_start::{{closure}}::hb5680d054672a23a
  20:        0x1095e33c9 - std::rt::lang_start_internal::h795af50241e12334
  21:        0x1087af921 - std::rt::lang_start::h4a607b770687a0a7
  22:        0x10879acd2 - main
#[no_mangle]                                                                                                                                                                      
pub extern "C" fn wgpu_adapter_request_device(                                                                                                                                    
    adapter_id: id::AdapterId,                                                                                                                                                    
    desc: Option<&DeviceDescriptor>,                                                                                                                                              
) -> id::DeviceId {                                                                                                                                                               
    let desc = &desc.cloned().unwrap_or_default();                                                                                                                                
    gfx_select!(adapter_id => GLOBAL.adapter_request_device(adapter_id, desc, PhantomData))  // <- here                                                                                      
}                                                                                                                                                                                 

cc @sotrh

from learn-wgpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.