mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
AbstractTexture: Support multisampled abstract texture
This commit is contained in:
parent
4316f5f56b
commit
6374a4c4a8
19 changed files with 209 additions and 91 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue