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.h | |
| parent | 4316f5f56b9f3fdba89a52224a058b0fcd8b8c55 (diff) | |
AbstractTexture: Support multisampled abstract texture
Diffstat (limited to 'Source/Core/VideoCommon/TextureConfig.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConfig.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureConfig.h b/Source/Core/VideoCommon/TextureConfig.h index a212c7f86a..3d24bf3b93 100644 --- a/Source/Core/VideoCommon/TextureConfig.h +++ b/Source/Core/VideoCommon/TextureConfig.h @@ -31,10 +31,10 @@ enum class StagingTextureType struct TextureConfig { constexpr TextureConfig() = default; - constexpr TextureConfig(u32 width_, u32 height_, u32 levels_, u32 layers_, + constexpr TextureConfig(u32 width_, u32 height_, u32 levels_, u32 layers_, u32 samples_, AbstractTextureFormat format_, bool rendertarget_) - : width(width_), height(height_), levels(levels_), layers(layers_), format(format_), - rendertarget(rendertarget_) + : width(width_), height(height_), levels(levels_), layers(layers_), samples(samples_), + format(format_), rendertarget(rendertarget_) { } @@ -44,11 +44,13 @@ struct TextureConfig MathUtil::Rectangle<int> GetMipRect(u32 level) const; size_t GetStride() const; size_t GetMipStride(u32 level) const; + bool IsMultisampled() const; u32 width = 0; u32 height = 0; u32 levels = 1; u32 layers = 1; + u32 samples = 1; AbstractTextureFormat format = AbstractTextureFormat::RGBA8; bool rendertarget = false; }; |
