[HLSL] Add type traits for ConstantBuffers templates (#195154)
This commit adds the type traits to restrict the template type in a
ConstantBuffer to structs or classes that do not contain a resource
type.
Assisted-by: Gemini
<!-- branch-stack-start -->
-------------------------
- main
- https://github.com/llvm/llvm-project/pull/195151
- https://github.com/llvm/llvm-project/pull/195152
- https://github.com/llvm/llvm-project/pull/195153
- https://github.com/llvm/llvm-project/pull/195154 :point_left:
<sup>[Stack](https://www.git-town.com/how-to/proposal-breadcrumb.html)
generated by [Git Town](https://github.com/git-town/git-town)</sup>
<!-- branch-stack-end -->