diff options
| author | Stenzek <stenzek@gmail.com> | 2017-09-30 16:25:36 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-11-22 18:47:04 +1000 |
| commit | 49a9c33bd75df2b8cebd58eab10f140c79a8f65c (patch) | |
| tree | c770303bf41043303322e7bb230615d96ad2ea6c /Source/Core/VideoCommon/TextureConfig.h | |
| parent | 5860c97144a01c4203e98671e158086c672bcf97 (diff) | |
VideoCommon: Move abstract texture creation function to Renderer
Diffstat (limited to 'Source/Core/VideoCommon/TextureConfig.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConfig.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureConfig.h b/Source/Core/VideoCommon/TextureConfig.h index 86ea88f651..fa2d60c494 100644 --- a/Source/Core/VideoCommon/TextureConfig.h +++ b/Source/Core/VideoCommon/TextureConfig.h @@ -22,6 +22,13 @@ enum class AbstractTextureFormat : u32 struct TextureConfig { constexpr TextureConfig() = default; + constexpr TextureConfig(u32 width_, u32 height_, u32 levels_, u32 layers_, + AbstractTextureFormat format_, bool rendertarget_) + : width(width_), height(height_), levels(levels_), layers(layers_), format(format_), + rendertarget(rendertarget_) + { + } + bool operator==(const TextureConfig& o) const; MathUtil::Rectangle<int> GetRect() const; |
