[DirectX] Disallow ElementIndex for raw buffer accesses (#173320)

Raw (as in ByteAddress) buffer accesses in DXIL must specify
ElementIndex as undef, and Structured buffer accesses must specify a
value. Ensure that we do this correctly in DXILResourceAccess, and
enforce that the operations are valid in DXILOpLowering.

Fixes #173316

GitOrigin-RevId: ac602d887b8e7da93227f7508492740d2cf49c71
10 files changed