question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vk.GetPhysicalDeviceProperties2 Error

See original GitHub issue

When trying to call the following method:

PhysicalDeviceProperties2 dProperties;
Vk.GetPhysicalDeviceProperties2(*devices, &dProperties);

I get the following error: vkGetPhysicalDeviceProperties2: parameter pProperties->sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2. The Vulkan spec states: sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2 (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-VkPhysicalDeviceProperties2-sType-sType)

I have tried manually setting sType to the stated value, in the dProperties variable above, but I then get a silent crash with no validation error or C# exception.

From what I can tell so far, it may be due to it getting the parameterless struct constructor mixed up with

public unsafe PhysicalDeviceProperties2(StructureType? sType = StructureType.PhysicalDeviceProperties2Khr, void* pNext = null, PhysicalDeviceProperties? properties = null)

If it defaults to using the parameterless constructor, the sType will not be correctly set.

EDIT: I’m using Silk.NET 2.16

Any other advice/ideas on this?

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Perkseycommented, Dec 31, 2022

Have you set the correct version when creating your instance?

If this is not the issue, then you will need to find a way to get the stack trace so we can discern the problem. Usually this is either using Visual Studio with native debugging enabled, or WinDbg (very difficult)

0reactions
Perkseycommented, Dec 31, 2022

Awesome, glad that’s working now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Subscribe - YouTube
Procedure Entry Point vkGetPhysicalDeviceMemoryProperties2 could not be loacte error for Vulkan1dll. 17K views · 3 years ago ...more ...
Read more >
No physical devices what can run Vulkan
When i try to run the game on my laptop, its give me error "Vulkan is avaliable, but no physical devices can be...
Read more >
vkEnumeratePhysicalDevices() not finding all GPUs
So I'm wondering if there is a way to find all GPUs on the system outside of Vulkan and have the physical device...
Read more >
Why does vkEnumeratePhysicalDevices fail? : r/vulkan
I have two devices. The first call returns 2 (correct number). And the subsequent call returns 0 (and VK_INCOMPLETE error).
Read more >
Vulkan-Hpp/samples/PhysicalDeviceMemoryProperties ...
Security. Find and fix vulnerabilities ... Get memory properties per physical device. ... { std::cout << "unknown error\n"; exit( -1 ); } return...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found