Skip to content

Conversation

@vinsentli
Copy link
Contributor

No description provided.

@meta-cla meta-cla bot added the cla signed label Jan 15, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 15, 2026

@corporateshark has imported this pull request. If you are a Meta employee, you can view this in D90784867.

if (aspect == VK_IMAGE_ASPECT_COLOR_BIT && samples == VK_SAMPLE_COUNT_1_BIT &&
(usageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) != 0) {
(usageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) != 0 &&
(usageFlags & VK_IMAGE_USAGE_TRANSFER_DST_BIT) != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it assert failed at line 1051 in VulkanImage::clearColorImage if i create a memory less color attachment, so i use VK_IMAGE_USAGE_TRANSFER_DST_BIT directly.

IGL_DEBUG_ASSERT(usageFlags_ & VK_IMAGE_USAGE_TRANSFER_DST_BIT);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants