diff options
| author | Stenzek <stenzek@gmail.com> | 2018-01-21 15:03:06 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2018-03-01 17:31:24 +1000 |
| commit | 6374a4c4a80e88eea2e5914fb84e393c91ec65af (patch) | |
| tree | fcff01f0220c40ef2c594695272b181635bdf894 /Source/Core/VideoCommon/TextureConfig.cpp | |
| parent | 4316f5f56b9f3fdba89a52224a058b0fcd8b8c55 (diff) | |
AbstractTexture: Support multisampled abstract texture
Diffstat (limited to 'Source/Core/VideoCommon/TextureConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConfig.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/TextureConfig.cpp b/Source/Core/VideoCommon/TextureConfig.cpp index d8155d59b1..0407576af6 100644 --- a/Source/Core/VideoCommon/TextureConfig.cpp +++ b/Source/Core/VideoCommon/TextureConfig.cpp @@ -9,8 +9,8 @@ bool TextureConfig::operator==(const TextureConfig& o) const { - return std::tie(width, height, levels, layers, format, rendertarget) == - std::tie(o.width, o.height, o.levels, o.layers, o.format, o.rendertarget); + return std::tie(width, height, levels, layers, samples, format, rendertarget) == + std::tie(o.width, o.height, o.levels, o.layers, o.samples, o.format, o.rendertarget); } bool TextureConfig::operator!=(const TextureConfig& o) const @@ -38,3 +38,8 @@ size_t TextureConfig::GetMipStride(u32 level) const { return AbstractTexture::CalculateStrideForFormat(format, std::max(width >> level, 1u)); } + +bool TextureConfig::IsMultisampled() const +{ + return samples > 1; +} |
