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

Vulkan textures from previous frames are black #1543

Closed
Raikiri opened this issue Oct 7, 2019 · 1 comment
Closed

Vulkan textures from previous frames are black #1543

Raikiri opened this issue Oct 7, 2019 · 1 comment

Comments

@Raikiri
Copy link

Raikiri commented Oct 7, 2019

While debugging my vulkan renderer, I noticed that under certain circumstances, most textures start being displayed as black (0, 0, 0, 0) color. "Certain circumstances" seem to be somehow related to me trying to access textures that persist from previous frames. These textures are used as storage images in compute shaders across multiple frames (fluid simulation) and sometimes I can see their contents if I entirely overwrite it within one frame, but if I'm using data that's already there from previous frames, then they are displayed as black.

Here's one of those black captures: https://drive.google.com/file/d/1py7hx2EwDaTTDZQVRMCq4gctF0l9xroG/view?usp=sharing

Textures in question are for example in Compute Pass #1. All textured are displayed as black, but I know from behavior of the renderer that they are not.

Another clue: in that pass, all textures are actually derived from 3D Image 209 (that persists from previous frame) and if was black, then everything else would be as well. So probably that texture got screwed and everything else was a consequence of it.

I'm running GTX1060 laptop GPU.

@Raikiri
Copy link
Author

Raikiri commented Oct 8, 2019

I was running 1.4 in my tests. The problem does not reproduce in a nightly build.

@Raikiri Raikiri closed this as completed Oct 8, 2019
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

No branches or pull requests

1 participant