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

Maybe is index error in OB allocator shader. #4

Open
graphicboys opened this issue Jun 3, 2014 · 0 comments
Open

Maybe is index error in OB allocator shader. #4

graphicboys opened this issue Jun 3, 2014 · 0 comments

Comments

@graphicboys
Copy link

In ObAllocateVert.shader 38 line (function allocChildTile):
This line:
"uint nextFreeAddress = (1U + 8U * nextFreeTile);"
Maybe error, I think the address do NOT need to plus one, so it's should be:
"uint nextFreeAddress = (0U + 8U * nextFreeTile);"
After I read your codes, I think the layout of node_next pool be like:
+------------------------+-----+
| Node at level0 | ....
+------------------------+-----+
"Node at level 0" contains 8 uint for address of 8 children.
Do you agree with me ?

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