<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 21, 2015 at 7:07 PM, Christopher Root <span dir="ltr"><<a href="mailto:vastcharade@hotmail.com" target="_blank">vastcharade@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I’m experimenting with qapitrace for the first time on macosx and am looking for the appropriate ways to view the contents of a vbo. From my experimentation with the gui, the only way I can do so is by looking at the trace info for glBufferData() calls and the like, but unfortunately I’m only able to interpret the contents of the buffer as a single type (i.e. GL_FLOAT).<br>
<br>
This is not ideal in my case for a couple reasons.<br>
<br>
1) vertex attributes in a buffer can be of several different types - GL_FLOAT, GL_INT, GL_DOUBLE, etc. Is there any way I can view the contents of the buffer as different types? </blockquote><div><br></div><div><br></div>Not yet, sorry.<div><br></div><div>Patches would be welcome.</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">diff --git a/retrace/glstate_shaders.cpp b/retrace/glstate_shaders.cpp</font></div><div><font face="monospace, monospace">index 71d577f..b0b01c2 100644</font></div><div><font face="monospace, monospace">--- a/retrace/glstate_shaders.cpp</font></div><div><font face="monospace, monospace">+++ b/retrace/glstate_shaders.cpp</font></div><div><font face="monospace, monospace">@@ -898,6 +898,7 @@ dumpShadersUniforms(StateWriter &writer, Context &context)</font></div><div><font face="monospace, monospace"> if (program) {</font></div><div><font face="monospace, monospace"> dumpTransformFeedback(writer, program);</font></div><div><font face="monospace, monospace"> }</font></div><div><font face="monospace, monospace">+ // TODO: Dump bound VBOs to JSON</font></div><div><font face="monospace, monospace"> writer.endObject();</font></div><div><font face="monospace, monospace"> writer.endMember(); // buffers</font></div><div><font face="monospace, monospace"> }</font></div></div><div><font face="monospace, monospace"><br></font></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Preferably at some point after the glVertexAttribPointer/glVertexAttribIPointer/glVertexLPointer calls where those types, offsets, and strides are defined? Perhaps directly at the glDraw…() calls? Trying to look at each attribute separately because they’re of different types is not ideal.<br></blockquote><div><br></div><div>Exactly. This stuff only makes sense at glDraw -- only then do we know which portion of the vertex buffer (or user arrays) has the vertices, and how many of them.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
2) The vbo may not be populated via glBufferData() calls. In my case, the buffer can be filled in by CUDA kernels via the cuda/opengl interop api. I can’t seem to find a way to view the contents of such filled buffers at all.<br>
<br>
<br>
Are there other ways to view vbo contents that aren’t immediately obvious? Any help appreciated.<br>
<br>
Thanks,<br>
<br>
Chris<br>
_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
</blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Jose</div></div>