diff options
author | Mauro Persano <mauro.persano@kdab.com> | 2016-07-26 21:53:55 -0300 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-08-12 20:07:51 +0000 |
commit | 817f4b2842e885912fe68b88e419dac4999c0325 (patch) | |
tree | c7b0efeeaafec57e01b990dfe3df941e9091b2df /src/render/texture/texture_p.h | |
parent | 8ed28493952ece3660a42b9c2759e5d8b402f89f (diff) |
Allow setting sample count for multisample targets
Adds new property which allows you to change the number of samples per
texel in a texture. Only used for multisample render targets
(Texture2DMultisample and Texture2DMultisampleArray).
Change-Id: I76934c3af125fb97f61e35cb4db84799bd17a6ab
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/texture/texture_p.h')
-rw-r--r-- | src/render/texture/texture_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/texture/texture_p.h b/src/render/texture/texture_p.h index 7ac09bae5..491ac448b 100644 --- a/src/render/texture/texture_p.h +++ b/src/render/texture/texture_p.h @@ -111,6 +111,7 @@ public: int height() const; int depth() const; int layers() const; + int samples() const; inline QVector<HTextureImage> textureImages() const { return m_textureImages; } inline QAbstractTexture::TextureFormat format() const { return m_format; } @@ -139,6 +140,7 @@ private: int m_height; int m_depth; int m_layers; + int m_samples; int m_mipLevels; bool m_generateMipMaps; QAbstractTexture::Target m_target; |