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

ResourceLayout with CommandLists. #7

Open
LinkClinton opened this issue Mar 18, 2020 · 1 comment
Open

ResourceLayout with CommandLists. #7

LinkClinton opened this issue Mar 18, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@LinkClinton
Copy link
Owner

LinkClinton commented Mar 18, 2020

The TIME of commands execute is the time we submit them to queue. So we can record commands with more than one command lists. But we record the current resource layout of resource with CPU. It is fine if we record two command lists one by one. But if we record them at same time, the layout of resource will be wrong.

For example, if you have a texture with layout A. And you have two command lists B, C.

Step 0 : transform layout A to D with command list B.
Step 1 : transform layout A to E with command list C.
Step 2 : transform layout D back to A with command list B.
Step 3 : transform layout E back to A with command list C.

It is fine when GPU execute these commands. But it is wrong when command lists record this commands. Because at Step1 the layout of resource is D, so we will transform it from D to E.

@LinkClinton LinkClinton added the bug Something isn't working label Mar 18, 2020
@LinkClinton
Copy link
Owner Author

I think this situation can be aovided without damage the performance in a better framework. So this bug I won't fix before I find a case that damage the performance too much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant