Streamline_Sample
Streamline_Sample copied to clipboard
Unable to run with vulkan
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.
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;
}