diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-03-03 16:44:20 +0100 |
---|---|---|
committer | Andy Nichols <andy.nichols@theqtcompany.com> | 2016-03-07 16:13:06 +0000 |
commit | c64d60e6946c57733fa03acf3d544f9adb5e05a9 (patch) | |
tree | 4d3a3ef3a0f0fada6643fec7bc0ce3c981d0005a /tests/manual/nodetypes/qt.png | |
parent | 9f764891c142ddf318fc3fef298686c922fd2cc6 (diff) |
D3D12: Basic image support
For now there is no mipmapping, no atlases, and all image data is
converted to RGBA8888. Regardless, this already makes it possible to use
basic Image elements.
Follow the same pattern as with rectangles: most of the code is shared
via a material-less, abstract QSGDefaultNoMaterialImageNode, with the
material-related bits provided by QSGDefaultImageNode for GL and
QSGD3D12ImageNode for D3D.
Also fixes the harmless but incorrect miscalculation of the VBV size for
indexed draws.
Image data is copied into an intermediate upload buffer when invoking the
render context's createTexture(). The upload is triggered on a separate copy
command queue. The main command queue is synchronized via a fence before
executing the commands for the current frame.
Root signatures are now cached more cleverly and include zero or more SRVs
as parameter 1. This involves the engine having to manage a shader (GPU) visible
CBV-SRV-UAV descriptor heap as well.
Change-Id: I67c35577ff2677e1c7776dd8e5011860e2d78b00
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tests/manual/nodetypes/qt.png')
-rw-r--r-- | tests/manual/nodetypes/qt.png | bin | 0 -> 11917 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/manual/nodetypes/qt.png b/tests/manual/nodetypes/qt.png Binary files differnew file mode 100644 index 0000000000..f30eec0d4d --- /dev/null +++ b/tests/manual/nodetypes/qt.png |