[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)
Damyan Pepper via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 21:47:25 PDT 2024
================
@@ -0,0 +1,38 @@
+// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s
+
+
+// CHECK: -HLSLResourceClassAttr 0x{{[0-9a-f]+}} <<invalid sloc>> SRV
+struct [[hlsl::resource_class(SRV)]] Eg1 {
----------------
damyanp wrote:
I thought that the idea was that the attribute would be applied to the handle type - ie to a _member_ of a struct, not to the struct itself?
https://github.com/llvm/llvm-project/pull/98419
More information about the cfe-commits
mailing list