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

When loading an OBJ with a large index range, I encounter the following error. Could you suggest a solution? #134

Open
JinukJeong92 opened this issue Feb 1, 2024 · 2 comments

Comments

@JinukJeong92
Copy link

When loading an OBJ with a large index range, I encounter the following error. Could you suggest a solution?

Validation Error: [ VUID-vkCmdDrawIndexed-robustBufferAccess2-07825 ] Object 0: handle = 0xa4324a00000001c5, type = VK_OBJECT_TYPE_BUFFER; | MessageID = 0x41363e42 | vkCmdDrawIndexed(): index size (4) * (firstIndex (0) + indexCount (10000)) + binding offset (0) = an ending offset of 40000 bytes, which is greater than the index buffer size (24000). The Vulkan spec states: If robustBufferAccess2 is not enabled, (indexSize {times} (firstIndex + indexCount) + offset) must be less than or equal to the size of the bound index buffer, with indexSize being based on the type specified by indexType, where the index buffer, indexType, and offset are specified via vkCmdBindIndexBuffer

@jmorton06
Copy link
Owner

I’ll have a look into this

@jmorton06
Copy link
Owner

Not been able to reproduce this. Is it for one specific obj?

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

2 participants