[clang] [HLSL] Global resource arrays element access (PR #152454)

Steven Perron via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 18 08:04:47 PDT 2025


================
@@ -42,5 +44,15 @@ struct S {
 };
 RWStructuredBuffer<S> T3S0 : register(u3);
 
+// Resource array elements are initialized on access; make sure there is not call
+// to initialize RWBuffer<double>.
----------------
s-perron wrote:

```suggestion
// Resource array elements are initialized on access; make sure there is no call
// to initialize RWBuffer<double>.
```

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


More information about the cfe-commits mailing list