Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ScaleImage to create its own texture cache and remove unnecessary sampling parameters. #349

Merged
merged 3 commits into from
Nov 28, 2024

Conversation

domchen
Copy link
Collaborator

@domchen domchen commented Nov 28, 2024

允许ScaleImage创建独立的纹理缓存,因为Image不再存在未应用的缩放,大部分lockTextureProxy方法也都可以移除不必要的sampling参数。

}
}
auto flattenImage =
std::shared_ptr<FlattenImage>(new FlattenImage(UniqueKey::Make(), std::move(source)));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FlattenImage是不是和MipmapImage一样,用一个固定key来处理UniqueKey比较好?

@Hparty Hparty merged commit a1a5a4d into main Nov 28, 2024
8 checks passed
@Hparty Hparty deleted the feature/domchen_scale branch November 28, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants