diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-28 14:43:58 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-30 20:07:36 +0200 |
commit | d4c17725abe381d247d6c453dafe87b8e17e80de (patch) | |
tree | 9e3438ec23e08dac26a0407c243d91c794fffcec /tests/manual/rhi/msaatexture | |
parent | e1ed2c3864e2b9aeeebec25de60ab62eb254b591 (diff) |
De-d-pointer QRhiShaderResourceBinding
Sad to see this go since the d pointer pattern with implicit sharing
would have been perfect for this class, had this been a public API.
However, as binary compatibility will not be a concern for QRhi classes,
it is wasteful to allocate memory on every QRhiShaderResourceBinding.
This allows users, such as Qt Quick, to use QRhiShaderResourceBinding as
a cheap, simple, value class, without having to invent their own
alternatives in performance critical places.
The change brings a not insignficant improvement in certain qmlbench scenes
(the ones with thousands of unbatched geometry nodes).
Change-Id: I6d1dced6498d9ad625f90ead78bc0a417ea99ed8
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'tests/manual/rhi/msaatexture')
0 files changed, 0 insertions, 0 deletions