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

Default initialize ImageAttachment::ComponentMapping #115

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
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 include/vuk/ImageAttachment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace vuk {
bool allow_srgb_unorm_mutable = false;
ImageViewCreateFlags image_view_flags = {};
ImageViewType view_type = ImageViewType::eInfer;
ComponentMapping components;
ComponentMapping components = {};
ImageLayout layout = ImageLayout::eUndefined;

uint32_t base_level = VK_REMAINING_MIP_LEVELS;
Expand Down Expand Up @@ -219,4 +219,4 @@ namespace std {
struct hash<vuk::ImageAttachment> {
size_t operator()(vuk::ImageAttachment const& x) const noexcept;
};
} // namespace std
} // namespace std
Loading