summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2022-02-15 15:22:52 -0500
committerGitHub <noreply@github.com>2022-02-15 15:22:52 -0500
commit1278e230f30773137d3b503031c8d3669f681e02 (patch)
tree3286d55bd1bda2f0ff9dcac46fe4945331cdb3da /tools/gfx/vulkan
parent167300eef147f3008876516a6464196458518ccc (diff)
Fix linux gfx issue (#2131)
* #include an absolute path didn't work - because paths were taken to always be relative. * Fix linux build issue with renderer-shared.h * Move to .cpp file. * Move some templates to stop definition order issue on linux. * Move to header because it's templated. * Fix warning about GeometryInstanceFlags::Enum flags : 8; being too small by making the enum backed by 8 bits. * Check if vkDestroySampler function is available.
Diffstat (limited to 'tools/gfx/vulkan')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index eb4044639..3d77fc50b 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -6395,7 +6395,10 @@ VKDevice::~VKDevice()
shaderCache.free();
m_deviceObjectsWithPotentialBackReferences.clearAndDeallocate();
- m_api.vkDestroySampler(m_device, m_defaultSampler, nullptr);
+ if (m_api.vkDestroySampler)
+ {
+ m_api.vkDestroySampler(m_device, m_defaultSampler, nullptr);
+ }
m_deviceQueue.destroy();