OpenGL-是否有一种方法可以跟踪Glbufferdata / glbuffersubdata分配的实际使用内存?
有一个大型代码库,它使用GlbufferData函数分配了空的固定固定大小GPU存储器,并使用Glbuffersubdata部分填充/更新这些空的分配空间。由于并非所有分配的内存都使用了,是否有一种方法可以检查多少分配的视频内存已更新?
There is a big codebase which allocates empty fixed size of GPU memory using glBufferData function, and fills/updates these empty allocated space partially using glBufferSubData. Since not all of the allocated memory is used, is there a way to check how much of the allocated video memory are updated?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
renderdoc向您展示了任何更新方法(
glbuffersubdata
,通过持续的映射指示器等)更新了多少内存)诸如持续映射的指针之类的方法)。Renderdoc shows you how much memory is updated by any of your update methods (
glBufferSubData
, through persistent mapped pointers, etc etc) any time such an update is done (again, very important to track for more transparent update methods like persistent mapped pointers).