diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-05-24 20:49:23 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-06-01 01:43:32 +0200 |
commit | 663b375373d18c2a10e88223c4a16ea64aec3524 (patch) | |
tree | bec6914f462c8793ec6d96a0356ada805d39c49c /dist | |
parent | 7908b0cea6116f7ba4aaa1b86b7c3a15510ffd49 (diff) |
rhi: d3d11: Make the "pipeline" cache save/load functional
There are no pipelines here of course. That's only for Vulkan.
But the QRhi APIs provide a common interface for retrieving the
serialized blob and pre-seeding the cache with a blob. The OpenGL
backend already implements that interface via GL program binaries.
We can do something similar with D3D, but it's a lot simpler: we
just need to include the bytecode from HLSL->DXBC compilation (i.e.
the result of D3DCompile() calls) and pick up the already present
bytecode and skip the D3DCompile() call when applicable.
Thus the mechanism is now available for Vulkan, OpenGL, and D3D11
as well.
Has no effect whatsoever if EnablePipelineCacheLoadSave is not set at
QRhi create() time.
Also update the related docs.
Task-number: QTBUG-103802
Change-Id: I91f1fb1f471bc7c654e26886a37c283066e842a8
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions