We provide a bunch of macros in HLSLSupport.cginc to work with different graphics APIs in a consistent way.
We have macro groups for declaring a Texture2DArray with a sampler and passing it as a function argument. There is also a version that declares it without a sampler, but there's no macro for passing the no sampler version around.