[clang] [llvm] [HLSL][SPIR-V] Implement vk::push_constant (PR #166793)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 10 10:21:00 PST 2025
================
@@ -6042,7 +6042,9 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
getCUDARuntime().handleVarRegistration(D, *GV);
}
- if (LangOpts.HLSL && GetGlobalVarAddressSpace(D) == LangAS::hlsl_input) {
+ if (LangOpts.HLSL &&
+ (GetGlobalVarAddressSpace(D) == LangAS::hlsl_input ||
+ GetGlobalVarAddressSpace(D) == LangAS::hlsl_push_constant)) {
----------------
s-perron wrote:
Update the comment below.
https://github.com/llvm/llvm-project/pull/166793
More information about the llvm-commits
mailing list