-
Notifications
You must be signed in to change notification settings - Fork 192
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
wait_semaphores function loading error #289
Comments
Are you sure that your drivers support Vulkan 1.2? Mine do (RADV 20.0.4 with RX 580 on Linux) and your minimal code example runs fine. Maybe make sure that you are choosing the correct |
Does seem odd that they aren't reporting an error on creating the instance, though. e: ah, right, that'd be because the loader supports 1.2 but the driver doesn't. I guess you need to check the features for the device. |
I just updated my drivers and I still get the error. They should support Vulkan 1.2, I have a Nvidia GeForce RTX 2070 Super. How can I determine that for certain? e: oh I just found this: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkEnumerateInstanceVersion.html I'll see if 1.2 is there. |
A really useful tool i use a lot is |
As far as i know, this is just your Vulkan Instance Version, which is probably different from the supported Vulkan Version reported from the driver. You should be looking at this. |
If you prefer to display that information using ash, i wrote up this quick program. use ash::{version::EntryV1_0, version::InstanceV1_0, vk};
fn main() {
let entry = ash::Entry::new().unwrap();
let app_info = vk::ApplicationInfo::builder().api_version(vk::make_version(1, 0, 0));
let create_info = vk::InstanceCreateInfo::builder().application_info(&app_info);
let instance = unsafe { entry.create_instance(&create_info, None).unwrap() };
for physical_device in unsafe { instance.enumerate_physical_devices().unwrap() } {
let properties = unsafe { instance.get_physical_device_properties(physical_device) };
println!(
"Physical Device {:?} supports Vulkan version {}.{}.{}",
unsafe { std::ffi::CStr::from_ptr(properties.device_name.as_ptr()) },
vk::version_major(properties.api_version),
vk::version_minor(properties.api_version),
vk::version_patch(properties.api_version)
);
}
} |
@Friz64 I bet it's because I didn't download the beta drivers found here: I just downloaded from here: I didn't realize Vulkan 1.2 is in beta, I will get the beta drivers and report back! |
I don't know how Vulkan is handled on Windows, but don't assume they will always be the same. On my system (Arch Linux) |
@Friz64 I see, thanks for the clarification. Installing the Nvidia beta drivers for Vulkan 1.2 fixed this issue, I appreciate all the help! |
Glad i could help :) |
I can't seem to use the
wait_semaphores()
function, I'm getting a run time error.Here is a minimal code example.
I'm using Ash v0.30.0 and according to this comment on the PR for the
wait_semaphores
method implementation I should just be able to dodevice.wait_semaphores(device.handle(), &semaphore_wait_info, timeout)?;
with vulkan 1.2 but for some reason I cannot.Have I done something wrong here or is this a bug?
The text was updated successfully, but these errors were encountered: