为什么在创建/销毁许多 VertexBuffer 时驱动程序会崩溃
当我创建多个 VertexBuffer,销毁其中一些,然后重新创建它们时,出现以下错误:
驱动程序遇到意外错误。
未提供行号或其他调试信息。可能是什么原因造成的?我需要不断地重新创建VertexBuffers,因为顶点数量发生变化,这就是为什么我不能使用DynamicVertexBuffer并连续使用SetData。
When I create several VertexBuffers, destroy some of them, then recreate them, I get the following error:
The driver has encountered an unexpected error.
No line number or other debug information is provided. What could be causing this? I need to constantly re-create VertexBuffers, because the number of vertices changes, which is why I can't use a DynamicVertexBuffer and use SetData continuously.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的。显然;我一次只能 Dispose() 五个 VertexBuffer,因此每次调用 Draw 时,我最多只能处理五个 VertexBuffer,而且它工作得很好。这是可行的,但仍然很高兴知道它为什么有效,以及是什么导致它崩溃。
OK. Apparently; I can only Dispose() of five VertexBuffers at a time, so on each call to Draw, I only dispose a maximum of five VertexBuffers, and it works perfectly. This works, but it would still be nice to know WHY it works, and what caused it to crash to begin with.