Skip to content

Implement simple cache for decoded ASTC textures #1339

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions framework/scene_graph/components/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ class Image : public Component
private:
std::vector<uint8_t> data;

size_t data_hash{0};

VkFormat format{VK_FORMAT_UNDEFINED};

uint32_t layers{1};
Expand All @@ -146,6 +144,8 @@ class Image : public Component
std::unique_ptr<core::Image> vk_image;

std::unique_ptr<core::ImageView> vk_image_view;

size_t data_hash{0};
};

} // namespace sg
Expand Down
Loading