Change addStorageBuffer to addStorageBufferLoad/Store/LoadStore


Change the addStorageBuffer so that the caller can choose the access
mode matching the shader's buffer declaration (readonly, writeonly or
read-write). Backends such as Vulkan and D3D can use this to pick
tighter barriers or bind read-only buffers as SRVs.

Also refactor the common parts.

Task-number: QTBUG-146226
Change-Id: Ia1755e8046a85ac72624f9bffe21575f2c21ad4e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit775e2bfb12be84cf6b0282c02c16499ca45f3a1e
parentbc81cf8b6eebe8067653689e533b411790c0be04
authorAntti Määttä <antti.maatta@qt.io>
committerAntti Määttä <antti.maatta@qt.io>
commit timeMon, 28 Sep 2026 05:28:01 +0000