================ @@ -219,7 +221,7 @@ void CGHLSLRuntime::addBufferResourceAnnotation(llvm::GlobalVariable *GV, "ResourceMD must have been set by the switch above."); llvm::hlsl::FrontendResource Res( - GV, TyName, RK, Binding.Reg.value_or(UINT_MAX), Binding.Space); + GV, TyName, RK, IsROV, Binding.Reg.value_or(UINT_MAX), Binding.Space); ---------------- dmpots wrote:
Instead of a single `bool` here it might make sense to have some kind of `flags` field that we can extend as needed. I'm wondering what is special about ROV that we specifically need to flag them and if that is going to happen to other "weird" resource types (like Append/Consume buffers). https://github.com/llvm/llvm-project/pull/74896 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits