Streamline_Sample icon indicating copy to clipboard operation
Streamline_Sample copied to clipboard

Unable to run with vulkan

Open pprabhu78 opened this issue 6 months ago • 1 comments

Hello,

I followed the instructions to build properly.

The default (dx 12) works fine.

But I can't seem to run vulkan at all. Just using the -vulkan command line parameter.

It throws errors related to reflex. So, I built without reflex and/or suppressed adding the callbacks, etc. It still is throwing various error message boxes.

pprabhu78 avatar Jul 18 '25 16:07 pprabhu78

I was able to fix it like so:

bool DeviceManagerOverride_VK::CreateDevice()
{
    bool ok = DeviceManager_VK::CreateDevice();

    sl::VulkanInfo vulkanInfo;
    vulkanInfo.device = m_VulkanDevice;
    vulkanInfo.instance = m_VulkanInstance;
    vulkanInfo.physicalDevice = m_VulkanPhysicalDevice;
    vulkanInfo.computeQueueIndex = 0;
    vulkanInfo.computeQueueFamily = m_ComputeQueueFamily;
    vulkanInfo.graphicsQueueIndex = 0;
    vulkanInfo.graphicsQueueFamily = m_GraphicsQueueFamily;

    NVWrapper::Get().SetDevice_raw((void**)(&vulkanInfo));

    return ok;
}

pprabhu78 avatar Jul 18 '25 17:07 pprabhu78