aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-04-19 16:22:20 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2016-04-20 13:22:25 +0000
commit3b5bbc4696940d72e6f7fde1c411cc9c037a7fda (patch)
tree672762b3a5a814c64036f42d81facb8e725e7980 /src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp
parent28f8795d716035516f03542cd55275375462fdc5 (diff)
D3D12: Add support for multisampled layers
Pick up the main sample count. Rename a few things in the process and make the distinction betewen the int QSurfaceFormat::samples() that can be -1 or 0, and the internal uint sample count, that is >= 1, more clear. Change-Id: Ifd5a9a7c2f894b04fdc93f86ebb7c69f8c76cd28 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp')
-rw-r--r--src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp
index 0250023fdf..817d8131a8 100644
--- a/src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp
+++ b/src/plugins/scenegraph/d3d12/qsgd3d12texture.cpp
@@ -109,11 +109,11 @@ void QSGD3D12Texture::bind()
QSGD3D12Engine::TextureCreateFlags createFlags = 0;
if (m_alphaWanted)
- createFlags |= QSGD3D12Engine::CreateWithAlpha;
+ createFlags |= QSGD3D12Engine::TextureWithAlpha;
m_createdWithMipMaps = hasMipmaps();
if (m_createdWithMipMaps)
- createFlags |= QSGD3D12Engine::CreateWithMipMaps;
+ createFlags |= QSGD3D12Engine::TextureWithMipMaps;
m_engine->createTexture(m_id, m_image.size(), m_image.format(), createFlags);
m_engine->queueTextureUpload(m_id, m_image);