Commit Graph

6 Commits

Author SHA1 Message Date
Paul Lemire e498e2fc16 Update QRenderState to use direct sync
Change-Id: Id38fd035701c86d126851fbde245ebba93e26f34
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2019-09-25 11:41:26 +02:00
Mike Krus f3268fcb2a Do direct notification of backend nodes
Since aspect manager is now on main thread, we can directly update
backend nodes safely. Track nodes which have changed properties and
notify the backend nodes as part of the frame loop.
This avoid allocating and delivering many change messages.

To follow:
- implement on all nodes
- look at backend to frontend syncing
- figure out what to do with non property messages (components
  added/removed, commands, ...)

Change-Id: Ia0c442b0528e728c4324d168200bae021bc29266
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2019-08-28 06:30:29 +02:00
Liang Qi f8a8509309 Merge remote-tracking branch 'origin/5.13' into dev
Conflicts:
	tests/manual/manual.pro

Change-Id: I15d497da84d3fe684c3a598831171d6aed7534ca
2019-07-31 15:40:18 +02:00
Paul Lemire a7ca5cdec0 RenderStates: fix override of nested RenderStates
When merging states, make sure we don't add several states of the same types
with possibly different values. We should only add states with type we don't
already have.

Since the FG traversal is done from leaf to root, we know that the states we
already contain should override any state that may have been specified higher
up in the FG branch.

Change-Id: I9bd1eadd37e8addf740a4b85b2318f9be269fedb
Task-number: QTBUG-76766
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2019-07-18 10:29:32 +02:00
Jim Albamont 3c87566280 Add support for glDepthRange
Added a new QRenderState to provide access to glDepthRange.

Task-number: QTBUG-73059
Change-Id: I434b73e6e499307bfa58b2a1001e4c48328e9d5b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2019-02-11 06:17:32 +00:00
Wieland Hagen 6e71be0630 Add QRenderState unit test
Backend nodes should receive frontend proeperty changes

Change-Id: I19ba70d08de833aab467a51d5b21553f0b602ec6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
2017-08-03 15:57:06 +00:00