[clang] [HLSL] Fix resource kind for RasterizerOrderedStructuredBuffer (PR #116700)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 01:32:37 PST 2024


================
@@ -547,9 +543,8 @@ void HLSLExternalSemaSource::defineHLSLTypesWithForwardDeclarations() {
              .addSimpleTemplateParams(*SemaPtr, {"element_type"})
              .Record;
   onCompletion(Decl, [this](CXXRecordDecl *Decl) {
-    setupBufferType(Decl, *SemaPtr, ResourceClass::UAV,
-                    ResourceKind::TypedBuffer, /*IsROV=*/true,
-                    /*RawBuffer=*/true)
+    setupBufferType(Decl, *SemaPtr, ResourceClass::UAV, ResourceKind::RawBuffer,
+                    /*IsROV=*/true, /*RawBuffer=*/true)
----------------
bogner wrote:

`ResourceKind` won't be specified here in the future (See #104862), which will remove the redundancy. This change doesn't actually do much as is, but the inconsistency was confusing.

https://github.com/llvm/llvm-project/pull/116700


More information about the cfe-commits mailing list