summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-18 06:12:30 -0700
committerGitHub <noreply@github.com>2023-09-18 21:12:30 +0800
commit8bcffcc085b996babedfeaee674c6ad09c9b08cf (patch)
tree8e1537aca0a637c6d2a3b626f43a03fb4b085805 /tools
parent95b470f810a5cecffee165635996fa908a38707f (diff)
Use direct spirv in hello-world example. (#3207)
* Use direct spirv in hello-world example. * Use vulkan 1.1 * Use vulkan 1.2. * fix. * Fix test. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gfx/vulkan/vk-shader-program.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/gfx/vulkan/vk-shader-program.cpp b/tools/gfx/vulkan/vk-shader-program.cpp
index caa219c99..4159561d1 100644
--- a/tools/gfx/vulkan/vk-shader-program.cpp
+++ b/tools/gfx/vulkan/vk-shader-program.cpp
@@ -68,16 +68,8 @@ Result ShaderProgramImpl::createShaderModule(
{
m_codeBlobs.add(kernelCode);
VkShaderModule shaderModule;
- // HACK: our direct-spirv-emit path generates SPIRV that respects
- // the original entry point name, while the glslang path always
- // uses "main" as the name. We should introduce a compiler parameter
- // to control the entry point naming behavior in SPIRV-direct path
- // so we can remove the ad-hoc logic here.
auto realEntryPointName = entryPointInfo->getNameOverride();
- const char* spirvBinaryEntryPointName =
- m_device->m_desc.slang.targetFlags & SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY
- ? realEntryPointName
- : "main";
+ const char* spirvBinaryEntryPointName = "main";
m_stageCreateInfos.add(compileEntryPoint(
spirvBinaryEntryPointName,
kernelCode,