[clang] Create Texture Dimension attribute in HLSL (PR #104239)

Xiang Li via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 21 12:17:43 PDT 2024


================
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s
+
+
+// CHECK: -HLSLTextureDimensionAttr 0x{{[0-9a-f]+}} <col:34> 1
+struct [[hlsl::texture_dimension(1)]] Eg1 {
----------------
python3kgae wrote:

Should we limit this attribute for Texture only?

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


More information about the cfe-commits mailing list