[clang] Implement resource binding type prefix mismatch flag setting logic (PR #97103)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 8 17:45:31 PDT 2024


================
@@ -0,0 +1,104 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify
+
+// TODO: Implement "Buffer"
+struct Eg1 {
+  float f;
+  // Buffer<float> Buf;
----------------
bob80905 wrote:

No, it isn't possible, because the tests in udt depend on both the declaration of the variable and the definition of the variable type. Even when adding the availability attribute, the `Texture2D` token just isn't parseable.

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


More information about the cfe-commits mailing list