================ @@ -0,0 +1,131 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify + +// TODO: Implement "Buffer", we use a substitute UDT +// to test the 't' binding type for this test. + +template<typename T> +struct [[hlsl::resource_class(SRV)]] MyTemplatedSRV { + T x; +}; ---------------- damyanp wrote:
Is this a case that we want to support? For example, I think we expect typed SRV resources to be something like this: ```c++ template<typename T> struct MyTemplatedSRV { __resource_handle_t [[hlsl::resource_class(srv)]] handle; } ``` https://github.com/llvm/llvm-project/pull/97103 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits