vkQuake2 icon indicating copy to clipboard operation
vkQuake2 copied to clipboard

VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR

Open Fryziu opened this issue 1 year ago • 3 comments

../ref_vk/vk_common.c: In function ‘QVk_Init’: ../ref_vk/vk_common.c:1625:32: error: ‘VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR’ undeclared (first use in this function) 1625 | createFlags |= VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR;

Vulkan Instance Version: 1.3.204

gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

The newest version of vkQuake2

Fryziu avatar Feb 13 '24 18:02 Fryziu

Looks like you're trying to build with a Vulkan SDK which doesn't have that flag defined. Which version are you using?

kondrak avatar Feb 18 '24 18:02 kondrak

1.3.275.0 downloaded from https://vulkan.lunarg.com/ gives me this error (I have to say it's a sizeable install ;-) Version 1.3.224 installed on the older system compiles fine. I have solved my problem with the low FPS. It's my fault, I have used the debug version which murders efficiency, but now it's all fine https://youtu.be/gX-ueNU36Uo

Fryziu avatar Feb 24 '24 09:02 Fryziu

Good to hear you figured out your low FPS issues. As for the compilation error - the only way for me to verify this was to bump SDK version on GH Actions (Ubuntu runner) and that seems to have passed through well. For the heck of it, can you try 1.3.268?

kondrak avatar Feb 24 '24 23:02 kondrak

Also - if you could attach your full build log it could potentially also help. One suspicion I have is that you might have by default installed some older Vulkan SDK in the system (via package manager or such) and it might be using that instead of the one you downloaded.

kondrak avatar Feb 25 '24 16:02 kondrak

I'm closing this for now, since build passes successfully (Ubuntu with latest Vulkan SDK) - feel free to reopen if you come up with additional info!

kondrak avatar Mar 01 '24 20:03 kondrak