attackgoat / screen-13

Screen 13 is an easy-to-use Vulkan rendering engine in the spirit of QBasic.
Apache License 2.0
264 stars 13 forks source link

screen-13 doesn't compile on macOS Ventura 13.1 #59

Closed PENGUINLIONG closed 1 year ago

PENGUINLIONG commented 1 year ago
   Compiling screen-13 v0.8.1 (https://github.com/attackgoat/screen-13.git?branch=master#2c93683b)
error[E0308]: mismatched types
   --> /Users/penguinliong/.cargo/git/checkouts/screen-13-070df8d8bfcc6d9b/2c93683/src/driver/instance.rs:131:35
    |
131 |             entry.create_instance(&instance_desc, None).map_err(|_| {
    |                   --------------- ^^^^^^^^^^^^^^ expected struct `ash::vk::definitions::InstanceCreateInfo`, found struct `InstanceCreateInfoBuilder`
    |                   |
    |                   arguments to this function are incorrect
    |
    = note: expected reference `&ash::vk::definitions::InstanceCreateInfo`
               found reference `&InstanceCreateInfoBuilder<'_>`
note: associated function defined here
   --> /Users/penguinliong/.cargo/registry/src/github.com-1ecc6299db9ec823/ash-0.35.2+1.2.203/src/entry.rs:212:19
    |
212 |     pub unsafe fn create_instance(
    |                   ^^^^^^^^^^^^^^^

error[E0308]: arguments to this function are incorrect
   --> /Users/penguinliong/.cargo/git/checkouts/screen-13-070df8d8bfcc6d9b/2c93683/src/driver/instance.rs:162:32
    |
162 |             let debug_loader = ext::DebugReport::new(&entry, &instance);
    |                                ^^^^^^^^^^^^^^^^^^^^^ ------  --------- expected struct `ash::Instance`, found struct `ash::instance::Instance`
    |                                                      |
    |                                                      expected struct `ash::Entry`, found struct `ash::entry::Entry`
    |
    = note: expected reference `&ash::Entry`
               found reference `&ash::entry::Entry`
    = note: perhaps two different versions of crate `ash` are being used?
    = note: expected reference `&ash::Instance`
               found reference `&ash::instance::Instance`
    = note: perhaps two different versions of crate `ash` are being used?
note: associated function defined here
   --> /Users/penguinliong/.cargo/registry/src/github.com-1ecc6299db9ec823/ash-0.37.2+1.3.238/src/extensions/ext/debug_report.rs:15:12
    |
15  |     pub fn new(entry: &Entry, instance: &Instance) -> Self {
    |            ^^^

error[E0308]: arguments to this function are incorrect
   --> /Users/penguinliong/.cargo/git/checkouts/screen-13-070df8d8bfcc6d9b/2c93683/src/driver/instance.rs:171:31
    |
171 |             let debug_utils = ext::DebugUtils::new(&entry, &instance);
    |                               ^^^^^^^^^^^^^^^^^^^^ ------  --------- expected struct `ash::Instance`, found struct `ash::instance::Instance`
    |                                                    |
    |                                                    expected struct `ash::Entry`, found struct `ash::entry::Entry`
    |
    = note: expected reference `&ash::Entry`
               found reference `&ash::entry::Entry`
    = note: perhaps two different versions of crate `ash` are being used?
    = note: expected reference `&ash::Instance`
               found reference `&ash::instance::Instance`
    = note: perhaps two different versions of crate `ash` are being used?
note: associated function defined here
   --> /Users/penguinliong/.cargo/registry/src/github.com-1ecc6299db9ec823/ash-0.37.2+1.3.238/src/extensions/ext/debug_utils.rs:14:12
    |
14  |     pub fn new(entry: &Entry, instance: &Instance) -> Self {
    |            ^^^

error[E0308]: mismatched types
   --> /Users/penguinliong/.cargo/git/checkouts/screen-13-070df8d8bfcc6d9b/2c93683/src/driver/instance.rs:182:13
    |
182 |             entry,
    |             ^^^^^ expected struct `ash::Entry`, found struct `ash::entry::Entry`
    |
    = note: perhaps two different versions of crate `ash` are being used?

error[E0308]: mismatched types
   --> /Users/penguinliong/.cargo/git/checkouts/screen-13-070df8d8bfcc6d9b/2c93683/src/driver/instance.rs:183:13
    |
183 |             instance,
    |             ^^^^^^^^ expected struct `ash::Instance`, found struct `ash::instance::Instance`
    |
    = note: perhaps two different versions of crate `ash` are being used?

For more information about this error, try `rustc --explain E0308`.
error: could not compile `screen-13` due to 5 previous errors