summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use the magic fallback name when structName is emptyLaszlo Agocs2019-12-101-0/+17
| | | | | | | | | | | | | This will enable Qt Quick 3D to function correctly with the GL backend of QRhi. What's special with Quick3D is that the shaders rely on uniform blocks without instance names (so that member accesses do not need to be qualified, allowing the bulk of the shader code to stay compatible with the direct OpenGL rendering path where plain uniforms are used) Fixes: QTBUG-80585 Change-Id: Id7c9c30d392c593bad29299eaa92bea016a5bbdb Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Extend autotest for reflectionLaszlo Agocs2019-11-143-0/+315
| | | | | | | | | | | | | | | | | Let's verify that reflecting a shader with an array of struct in a uniform block leads to the expected QShaderDescription. This is particularly useful against regressions, while also being a real life use case (lights in Quick 3D for instance). Also check the native resource binding map (generated for Metal SL only at the moment). Finally, have something for combined image samplers, the most common case with sampler2D. Change-Id: I9bea94ef9834e071384df423675623bcebe0cd44 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
* Add support for storage images and blocksLaszlo Agocs2019-06-112-0/+38
| | | | | | | Not used in graphics but are essential for compute. Change-Id: I4d3a0dfd926ee02b824494ee438f3a69fc96c0d4 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Follow QRhiShader API cleanupLaszlo Agocs2019-06-112-84/+84
| | | | | Change-Id: I4ebde6e68fe8c8fe0105981f9bea6f01aba96c60 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Add support for -D in qsb and preamble in QShaderBakerLaszlo Agocs2019-05-063-0/+97
| | | | | | | | | | Allow inserting a user provided string. glslang takes care of heavy lifting. For qsb this means compile time #define statements can now be generated by passing -DSOMETHING and -DSOMETHING=123 on the command line. Change-Id: Iddf276c3fa91e21780530aa2f54719325f404ba6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* Import the Qt Shader Tools moduleLaszlo Agocs2019-04-0924-0/+793
...from https://git.qt.io/laagocs/qtshadertools/ Change-Id: I3aa655da81978e13016f8150634e278448015709 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>