mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-17 21:48:02 -05:00
texture_cache: Add getter to query if image view is rescaled
This commit is contained in:
committed by
Fernando Sahmkow
parent
526e47f148
commit
c7a1cbad44
@ -186,8 +186,7 @@ void ComputePipeline::Configure() {
|
||||
for (u32 index = 0; index < desc.count; ++index) {
|
||||
ImageView& image_view{texture_cache.GetImageView((views_it++)->id)};
|
||||
textures[texture_binding] = image_view.Handle(desc.type);
|
||||
if (True(texture_cache.GetImage(image_view.image_id).flags &
|
||||
VideoCommon::ImageFlagBits::Rescaled)) {
|
||||
if (texture_cache.IsRescaling(image_view)) {
|
||||
scaling_mask |= 1u << texture_binding;
|
||||
}
|
||||
++texture_binding;
|
||||
|
@ -472,8 +472,7 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
|
||||
for (u32 index = 0; index < desc.count; ++index) {
|
||||
ImageView& image_view{texture_cache.GetImageView((views_it++)->id)};
|
||||
textures[texture_binding] = image_view.Handle(desc.type);
|
||||
if (True(texture_cache.GetImage(image_view.image_id).flags &
|
||||
VideoCommon::ImageFlagBits::Rescaled)) {
|
||||
if (texture_cache.IsRescaling(image_view)) {
|
||||
scaling_mask |= 1u << stage_texture_binding;
|
||||
}
|
||||
++texture_binding;
|
||||
|
Reference in New Issue
Block a user