aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-04-28 12:22:36 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-04-29 09:36:40 +0000
commitcb1033fd603a438041a16ba55547d77133ad1e79 (patch)
treee7af709074277664cb203f2c2e4a02a08e0bfb8d /src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h
parent96cdc5be2aa0cf87033591cfd76661291b3f6933 (diff)
D3D12: Handle special shader effect cases
Like when there is only one shader is given by the ShaderEffect item, or when texture providers disappear (use a dummy texture in this case). Changing the cull mode works now too. Fix also the inconsistent naming (activate -> use) for textures in the glpyh cache. The cbuffer is now correctly aligned. Filtering and wrap modes are now taken from the texture, meaning 'smooth' and 'wrapMode' works. Change-Id: I265a7676d87d470dc8b3a8f59ea64bdadbc58c5d Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h')
-rw-r--r--src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h b/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h
index a7430580a8..88d3d36f33 100644
--- a/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h
+++ b/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache_p.h
@@ -72,7 +72,7 @@ public:
int maxTextureWidth() const override;
int maxTextureHeight() const override;
- void activateTexture();
+ void useTexture();
QSize currentSize() const;
private: