Refactor computeViewport to be a free function

This doesn't really belong in RenderView and only needs the public
API of ViewportNode so a free function it is.

Change-Id: Ibfd0adc43ebef182e91f8960269899965eb1ec0b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Use viewport clear color from fg node nearest the leaf

Change-Id: I803d6fabe8d2d0969908348f5e7ecbd08fbfee92
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Refactor isEntityInlayers() to a free function

Change-Id: Ib78a2ef7dab5674c71b6fda45c87168eb7f17342
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Use ms_ prefix for static members

Change-Id: Icf4b412436fb45530afd5bbe2b57a5bc06089b6b
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Coding style cleanup

Change-Id: I4be4734b4cfa8c404e4767f83394eecd672b9c68
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Typenames are capitalised

Change-Id: I0619fda229e07f1471b64fe8507766241bdb317a
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Move renderview configuration from fg into a free function

Change-Id: I89c4031972c3520cd36a99d11bdf7e5fb71ad99f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Refactor preprocessRenderTree() into a free function

This will later allow us to potentially parallelise this more by
recursively spawning jobs as we descend the tree of RenderEntities.

We may also want to make this stage configurable by way of a functor
provided by the Technique?

Change-Id: I9e671b36a8d1b038cd99f06cf8984f1a052778e1
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Move RenderViewJob helper functions to their own file

Change-Id: I6017d5586a044529a13545de0a1aa1ea86a5adb7
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Make findTechniqueForEffect a free function and small cleanups

Change-Id: I9230645bdac74fca6c494c3c8719432874f9201f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Make findRenderPassesForTechnique a free function and small cleanups

Change-Id: Ia01a8b9e6bc71616cd7a2316572c01b1232b7a9e
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Make parametersFromMaterialEffectTechnique() a free function

Change-Id: I58282d94b53608d9c6b0e66d1715a0740d5c8b27
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Refacotr buildRenderStateSet to a free function

Also added some todo's to improve efficiency.

Change-Id: Ib982042fee4bd3e3928381456df806babf26734d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>