mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 20:10:05 +00:00
TextureCache: Fix Buffer Views Scaling.
This commit is contained in:
parent
dfa8291526
commit
d7c9792169
@ -37,7 +37,8 @@ ImageViewBase::ImageViewBase(const ImageViewInfo& info, const ImageInfo& image_i
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImageViewBase::ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_info)
|
ImageViewBase::ImageViewBase(const ImageInfo& info, const ImageViewInfo& view_info)
|
||||||
: format{info.format}, type{ImageViewType::Buffer}, size{
|
: image_id{NULL_IMAGE_ID}, format{info.format}, type{ImageViewType::Buffer},
|
||||||
|
size{
|
||||||
.width = info.size.width,
|
.width = info.size.width,
|
||||||
.height = 1,
|
.height = 1,
|
||||||
.depth = 1,
|
.depth = 1,
|
||||||
|
@ -631,6 +631,9 @@ bool TextureCache<P>::IsRescaling() const noexcept {
|
|||||||
|
|
||||||
template <class P>
|
template <class P>
|
||||||
bool TextureCache<P>::IsRescaling(const ImageViewBase& image_view) const noexcept {
|
bool TextureCache<P>::IsRescaling(const ImageViewBase& image_view) const noexcept {
|
||||||
|
if (image_view.type == ImageViewType::Buffer) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const ImageBase& image = slot_images[image_view.image_id];
|
const ImageBase& image = slot_images[image_view.image_id];
|
||||||
return True(image.flags & ImageFlagBits::Rescaled);
|
return True(image.flags & ImageFlagBits::Rescaled);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user