summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/render-vk.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-06-04 14:32:22 -0700
committerGitHub <noreply@github.com>2021-06-04 14:32:22 -0700
commit95a90d7fda3097d085cde1fea5213667277e729b (patch)
tree54558aabdaaa27b2298a214781e13218cc3881e9 /tools/gfx/vulkan/render-vk.cpp
parentbf068b17406a202ae3112f5617bbb4da595c9ae9 (diff)
Fix D3D11 `uploadBufferResource`. (#1869)
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index 643c41394..d040fcebf 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -5120,7 +5120,11 @@ SlangResult VKDevice::initialize(const Desc& desc)
SLANG_RETURN_ON_FAIL(m_deviceQueue.init(m_api, queue, m_queueFamilyIndex));
}
- SLANG_RETURN_ON_FAIL(slangContext.initialize(desc.slang, SLANG_SPIRV, "sm_5_1"));
+ SLANG_RETURN_ON_FAIL(slangContext.initialize(
+ desc.slang,
+ SLANG_SPIRV,
+ "sm_5_1",
+ makeArray(slang::PreprocessorMacroDesc{ "__VK__", "1" }).getView()));
return SLANG_OK;
}
@@ -6469,4 +6473,4 @@ Result VKDevice::createComputePipelineState(const ComputePipelineStateDesc& inDe
return SLANG_OK;
}
-} // renderer_test
+} // renderer_test