summaryrefslogtreecommitdiffstats
path: root/examples/hello-world/vulkan-api.cpp
diff options
context:
space:
mode:
authorkaizhangNV <149626564+kaizhangNV@users.noreply.github.com>2024-11-01 18:12:33 -0500
committerGitHub <noreply@github.com>2024-11-01 16:12:33 -0700
commit61cddbee405935fa8391a757a08bcbe4ea7ac98f (patch)
tree7a76d5657916cb3115866f3c53ef60ad784045f4 /examples/hello-world/vulkan-api.cpp
parentb8d50b589da8e765ff5b0411e544b8aad562fe64 (diff)
Improve on spirv generation compile option (#5479)
CompilerOptionName::EmitSpirvViaGLSL and CompilerOptionName::EmitSpirvDirectly options are not mutually exclusive, but due to compatible reason, we cannot delete those options. Instead, this change makes the effort to create a new option name EmitSpirvMethod, and we will turn those two options into the new one internally. Also, we put a priority implicitly on those two options, where EmitSpirvDirectly always win if it's set. We have another location that can setup the same option, where is through SlangTargetFlags::SLANG_TARGET_FLAG_GENERATE_SPIRV_DIRECTLY. We should definitely deprecate this flag to avoid more confusing. But for the same compatible reason, we cannot do that in this PR. Again, we will encourage people to not use this flag, but using the CompilerOptionName instead. In this PR, we will also implicitly give CompilerOptionName higher priority, it means that as long as user setup the CompilerOptionName for emit spirv method, it always take higher priority for the final decision.
Diffstat (limited to 'examples/hello-world/vulkan-api.cpp')
0 files changed, 0 insertions, 0 deletions