hlsl: Force storage buffer mapping to UAVs even for readonly


Read-only storage blocks generating an SRV (and ByteAddressBuffer)
instead of an UAV (and RWByteAddressBuffer) is not great, given
nothing is prepared for it. Both the register mapping logic gets
confused (as it expects 'u' not 't'), and the QRhi backends are
also not prepared for anything else but UAV+RWByteAddressBuffer.

Setting the flag also makes buffers consistent with images.
Storage images translate to UAV + RWTexture2D by default even
when non-writable.

Change-Id: Icafd5328ae7f27236ad9271baaabb0ba8156feb6
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit5759ac08605c742e421443c96981564697be04a7
parent424fc438ab9f03d78d641dc11a613f70819e6452
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeTue, 7 Nov 2023 18:42:51 +0200