summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/render-vk.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-07-20 10:22:20 -0700
committerGitHub <noreply@github.com>2021-07-20 10:22:20 -0700
commitf9f8d3ec5c749bcbdab5a8fc2d2f919350f2423c (patch)
tree78d4fbb45e737fd6cccf8da419e4eae7b97bf7e2 /tools/gfx/vulkan/render-vk.cpp
parent6162950d9012833ef5d4f96b99c67a46bf97ce6d (diff)
Minor refactor to gfx D3D12 implementation. (#1913)
* Minor refactor to gfx D3D12 implementation. - Allow more flexible collection of shader stages in a shader program. - Add `createRayTracingPipelineState` public interface. (no implementation). * Fix Vulkan initialization. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index 64263887d..bc0271aa6 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -5612,9 +5612,11 @@ SlangResult VKDevice::initialize(const Desc& desc)
SlangResult initDeviceResult = SLANG_OK;
for (int forceSoftware = 0; forceSoftware <= 1; forceSoftware++)
{
- if (m_module.init(forceSoftware != 0) != SLANG_OK)
+ initDeviceResult = m_module.init(forceSoftware != 0);
+ if (initDeviceResult != SLANG_OK)
continue;
- if (m_api.initGlobalProcs(m_module) != SLANG_OK)
+ initDeviceResult = m_api.initGlobalProcs(m_module);
+ if (initDeviceResult != SLANG_OK)
continue;
descriptorSetAllocator.m_api = &m_api;
initDeviceResult = initVulkanInstanceAndDevice(ENABLE_VALIDATION_LAYER != 0);