SteamVR Developer Hardware

SteamVR Developer Hardware

View Stats:
lhboon Nov 2, 2016 @ 6:37am
Error on Submit using Vulkan
Hi, I'm using OpenVR 1.0.3 which was supposed to add Vulkan support, but I'm always getting VRCompositorError_TextureUsesUnsupportedFormat. The image has no mips, VK_FORMAT_R8G8B8A8_UNORM format. I also have Submit_VulkanTexture as the submitflag. I'm putting API_OpenGL in the Texture_t struct as there isn't a Vulkan one (handle is a pointer to a VulkanData_t struct). Is there something I'm missing?
< >
Showing 1-10 of 10 comments
tod_spam Nov 16, 2016 @ 7:13am 
I'm also looking forward to an answer to this. I'm getting the same errors. The only difference is that I'm using VK_FORMAT_B8G8R8A8_UNORM instead.
Last edited by tod_spam; Nov 16, 2016 @ 7:21am
tod_spam Nov 16, 2016 @ 8:12am 
I managed to get a bit farther by adding the instance extension VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME. Now it crashes in a validation layer but it does render.
Last edited by tod_spam; Nov 16, 2016 @ 8:18am
lhboon Nov 16, 2016 @ 1:16pm 
Judging by the extension name, I'm assuming this is only available on Nvidia cards? ( I'm using an AMD )
lhboon Nov 16, 2016 @ 1:33pm 
I found a thread on this: https://www.reddit.com/r/vulkan/comments/4pmss0/vulkan_and_openvr/ . I'm assuming internally it is still using opengl vulkan interop, which means i'm out of luck for now...
tod_spam Nov 23, 2016 @ 12:07pm 
Oh ok. Good to know. I have it working fine on a 1080.
mancrowd Nov 24, 2016 @ 5:08am 
Having the same issue. How did you solve it in the end? Do we really need the VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME extension? I tried every format possible, all of them failed, even having the extension enabled. So any tips are highly appreciated!
Last edited by mancrowd; Nov 24, 2016 @ 5:13am
lhboon Nov 24, 2016 @ 2:06pm 
I managed to obtain an older Nvidia card (GTX760, which is not "VR-Ready" but sufficient for what I want to do for now) and I can verify that its working now ( with VK_NV_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME ), although I had to turn off validation layers to prevent it from crashing.
mancrowd Nov 25, 2016 @ 4:16am 
Thanks. What format do you pass in btw? And what Vulkan version?
Last edited by mancrowd; Nov 25, 2016 @ 5:18am
lhboon Nov 25, 2016 @ 7:27pm 
VK_FORMAT_R8G8B8A8_UNORM. Vulkan 1.0.30.0.
tod_spam Dec 18, 2016 @ 6:31pm 
I just updated to the latest OpenVR and there's a few functions you can query in the compositor that will tell you which device and layer extensions to enable. Maybe this is how they make it work on AMD as well?

/** [Vulkan Only] * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing * null. The string will be a space separated list of-required instance extensions to enable in VkCreateInstance */ virtual uint32_t GetVulkanInstanceExtensionsRequired( VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0; /** [Vulkan only] * return 0. Otherwise it returns the length of the number of bytes necessary to hold this string including the trailing * null. The string will be a space separated list of required device extensions to enable in VkCreateDevice */ virtual uint32_t GetVulkanDeviceExtensionsRequired( VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) = 0;
Last edited by tod_spam; Dec 18, 2016 @ 6:32pm
< >
Showing 1-10 of 10 comments
Per page: 15 30 50

Date Posted: Nov 2, 2016 @ 6:37am
Posts: 10