[clang] [HLSL] Split out the ROV attribute from the resource attribute, make it a new spellable attribute. (PR #102414)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 8 00:36:30 PDT 2024
https://github.com/bogner commented:
It'd be better to make the attribute take no arguments, and we can tell if something is ROV by its presence alone, so:
```hlsl
[[hlsl::is_rov]] __hlsl_resource_t handle;
```
would be an ROV resource, but
```hlsl
__hlsl_resource_t handle;
```
would not.
I think this also applies to the AST attribute - it only needs to be there when we have `IsROV == true`
https://github.com/llvm/llvm-project/pull/102414
More information about the cfe-commits
mailing list