Skip to content

Fix for textures initialized with VkCopyMemoryToImage#3777

Closed
sasamiyatu wants to merge 1 commit intobaldurk:v1.xfrom
sasamiyatu:copy-memory-to-image-fix
Closed

Fix for textures initialized with VkCopyMemoryToImage#3777
sasamiyatu wants to merge 1 commit intobaldurk:v1.xfrom
sasamiyatu:copy-memory-to-image-fix

Conversation

@sasamiyatu
Copy link

Description

Currently, textures initialized using Vulkan 1.4 vkTransitionImageLayout and vkCopyMemoryToImage functions show up as black with 'Unknown previous layout' in RenderDoc captures. With these changes, these textures show up correctly with the correct layout in captures.

@baldurk
Copy link
Owner

baldurk commented Jan 21, 2026

This change is not correct as it stands, serialising vkCopyMemoryToImage will massively bloat memory usage while idle and although vkTransitionImageLayout is a smaller memory leak it will not cause any more calls to be serialised within the capture as the frame capture record is cleared before capture begins.

From what I can see possibly a needed change here is to ensure image layout tracking is updated when idle capturing, but without understanding the root problem I can't say. Can you please open a bug report following the template and provide a reproducible test case?

@baldurk baldurk closed this Jan 21, 2026
@sasamiyatu
Copy link
Author

Thank you for your feedback. I did verify that these changes fixed the issue with the test case I had. I will open a bug report with a reproducible test case.

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