mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
hot-fix: proper calculation of image samples num
This commit is contained in:
@@ -261,6 +261,13 @@ struct Image {
|
||||
return last_level + 1;
|
||||
}
|
||||
|
||||
u32 NumSamples() const {
|
||||
if (GetType() == ImageType::Color2DMsaa || GetType() == ImageType::Color2DMsaaArray) {
|
||||
return 1u << last_level;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
ImageType GetType() const noexcept {
|
||||
return static_cast<ImageType>(type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user