[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 16:54:53 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:

Yes, it is intentional. The commented-out examples cannot be run in any valuable sense, without some prerequisite implementation of types that are not yet implemented.
For example, after `Buffer` is implemented, or after `Texture2D` is implemented, we can better test the diagnostic infrastructure. We don't have any resources that can bind to the `t` register type yet, so tests are necessarily quite limited.

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


More information about the cfe-commits mailing list