Jump to content
  • Advertisement
Sign in to follow this  
BlackJoker

Vulkan Access violation in new vulkan functions

Recommended Posts

Posted (edited)

Hi, I am working with my C# bindings to vulkan native code and found that all functions with "2" suffix returns access violations, but in the same time functions without that prefix (the original ones) working properly.

Here is the simple example:

This is my binding to 

vkGetPhysicalDeviceQueueFamilyProperties
[DllImport(libraryPath, EntryPoint = "vkGetPhysicalDeviceQueueFamilyProperties", CallingConvention = CallingConvention.StdCall)]
internal static extern void vkGetPhysicalDeviceQueueFamilyProperties([In] PhysicalDevice_T physicalDevice, ref uint pQueueFamilyPropertyCount, [In, Out] QueueFamilyProperties[] pQueueFamilyProperties);

And the same for 

vkGetPhysicalDeviceQueueFamilyProperties2
[DllImport(libraryPath, EntryPoint = "vkGetPhysicalDeviceQueueFamilyProperties2", CallingConvention = CallingConvention.StdCall)]
internal static extern void vkGetPhysicalDeviceQueueFamilyProperties2([In] PhysicalDevice_T physicalDevice, ref uint pQueueFamilyPropertyCount, [In, Out] QueueFamilyProperties2[] pQueueFamilyProperties);

Everything is pretty simple, BUT when I am using first function - it working correct, but it second case I receive access violation, even when I just want to get pQueueFamilyPropertyCount and third parameter is null.

The same situation with all other functions with "2" as a prefix.

I want to know why this is happening and what I am doing wrong? Maybe there are some limitations for using these functions or something else?

 

P.S.

Forgot to mention vulkan version - 1.1.101.0 with corresponding runtime

Edited by BlackJoker

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!