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

If primitiveRestartEnable is set to true, computeBounds will fail #1229

Open
jacky-wang7 opened this issue Jun 26, 2024 · 1 comment
Open

Comments

@jacky-wang7
Copy link

Describe the bug
vsg::ComputeBounds does not seem to determine the clearing of index 0xFFFFFFF.

To Reproduce
Steps to reproduce the behavior:

  1. set vsg::InputAssemblyState->primitiveRestartEnable = true;
  2. Set the vertex index to 0xFFFFFFFF.
  3. node->accept(computeBounds)
  4. t_vec3 error

Expected behavior
Can ComputeBounds skip special values?

@jacky-wang7
Copy link
Author

In computerBounds:
bounds.add(matrix * dec3(vertices->at(uint_indices-at(i))));
if indices is a special value of 0xFFFFFFFF, It will error.
I don't know if there will be similar problems elsewhere. I have only encountered it in computerBounds.

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