aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-05-26 16:04:03 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-06-01 10:32:18 +0000
commit1c6d4353f742a740e54b234db4d7b8913d515376 (patch)
tree2b0a7602cd96345240f3b021e4453ca560e932c1 /src/plugins/scenegraph
parenta6d3e3afcdd8f08893cff4deed7e866a5daf3cbd (diff)
One GraphicsInfo to rule them all
Rename RendererInfo to GraphicsInfo. Deprecate OpenGLInfo and move the surface format properties into GraphicsInfo. Move also the shader info properties from ShaderEffect. Change-Id: I3b3f01080e059b3a30a132fd67de19a4bfca54ef Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/scenegraph')
-rw-r--r--src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp15
-rw-r--r--src/plugins/scenegraph/d3d12/qsgd3d12engine_p.h3
-rw-r--r--src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode.cpp15
-rw-r--r--src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode_p.h4
4 files changed, 18 insertions, 19 deletions
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp
index 9c2bb68bbe..14137f062c 100644
--- a/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp
+++ b/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp
@@ -545,6 +545,21 @@ void *QSGD3D12Engine::getResource(Resource resource) const
return d->getResource(resource);
}
+QSGRendererInterface::ShaderType QSGD3D12Engine::shaderType() const
+{
+ return HLSL;
+}
+
+QSGRendererInterface::ShaderCompilationTypes QSGD3D12Engine::shaderCompilationType() const
+{
+ return OfflineCompilation;
+}
+
+QSGRendererInterface::ShaderSourceTypes QSGD3D12Engine::shaderSourceType() const
+{
+ return ShaderByteCode;
+}
+
static inline quint32 alignedSize(quint32 size, quint32 byteAlign)
{
return (size + byteAlign - 1) & ~(byteAlign - 1);
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12engine_p.h b/src/plugins/scenegraph/d3d12/qsgd3d12engine_p.h
index 07f2d360c8..2ebe1e733a 100644
--- a/src/plugins/scenegraph/d3d12/qsgd3d12engine_p.h
+++ b/src/plugins/scenegraph/d3d12/qsgd3d12engine_p.h
@@ -375,6 +375,9 @@ public:
// QSGRendererInterface
GraphicsApi graphicsApi() const override;
void *getResource(Resource resource) const override;
+ ShaderType shaderType() const override;
+ ShaderCompilationTypes shaderCompilationType() const override;
+ ShaderSourceTypes shaderSourceType() const override;
private:
QSGD3D12EnginePrivate *d;
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode.cpp
index b5c0b1d903..f77719f876 100644
--- a/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode.cpp
+++ b/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode.cpp
@@ -770,21 +770,6 @@ void QSGD3D12ShaderEffectNode::preprocess()
}
}
-QSGGuiThreadShaderEffectManager::ShaderType QSGD3D12GuiThreadShaderEffectManager::shaderType() const
-{
- return HLSL;
-}
-
-int QSGD3D12GuiThreadShaderEffectManager::shaderCompilationType() const
-{
- return OfflineCompilation;
-}
-
-int QSGD3D12GuiThreadShaderEffectManager::shaderSourceType() const
-{
- return ShaderByteCode;
-}
-
bool QSGD3D12GuiThreadShaderEffectManager::hasSeparateSamplerAndTextureObjects() const
{
return true;
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode_p.h b/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode_p.h
index 41d366abda..edeaba899b 100644
--- a/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode_p.h
+++ b/src/plugins/scenegraph/d3d12/qsgd3d12shadereffectnode_p.h
@@ -155,10 +155,6 @@ private:
class QSGD3D12GuiThreadShaderEffectManager : public QSGGuiThreadShaderEffectManager
{
public:
- ShaderType shaderType() const override;
- int shaderCompilationType() const override;
- int shaderSourceType() const override;
-
bool hasSeparateSamplerAndTextureObjects() const override;
QString log() const override;