<div dir="ltr"><span style="font-size:12.8000001907349px">Thanks Ian.</span><div style="font-size:12.8000001907349px">If I want to implement the actual CompSize function, how should I figure out the details? </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks, </div><div style="font-size:12.8000001907349px">   Shervin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 10, 2015 at 2:56 PM, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/10/2015 11:25 AM, Shervin Sharifi wrote:<br>
> Hi,<br>
><br>
>  This may not be the right forum to ask this, but I didn't know of a<br>
> better forum, so I thought I can ask here.<br>
><br>
>  I'm new to OpenGL. I am looking at XML registry for OpenGL and there<br>
> are some parameters with attributes containing a function COMPSIZE (I've<br>
> pasted an example below).<br>
>  I tried to find information on what the COMPSIZE function is, where/how<br>
> it is used, etc, but couldn't find documentation or credible information<br>
> on the Internet.<br>
>  Any information or pointer to that would be really helpful.<br>
<br>
</span>It's a signal to code generation scripts that the size of the data<br>
referenced by the "pointer" parameter depends on the values of "type"<br>
and "stride".  For example, GLX protocol code uses this to know how much<br>
image data to send to the server for glTexImage2D.<br>
<span class=""><br>
>  Thanks,<br>
>     Shervin<br>
><br>
><br>
><br>
> This example is from gl.xml in the OpenGL registry:<br>
><br>
>         <command><br>
>             <proto>void <name>glBinormalPointerEXT</name></proto><br>
>             <param group="BinormalPointerTypeEXT"><ptype>GLenum</ptype><br>
> <name>type</name></param><br>
>             <param><ptype>GLsizei</ptype> <name>stride</name></param><br>
>             <param len="COMPSIZE(type,stride)">const void<br>
> *<name>pointer</name></param><br>
>         </command><br>
><br>
><br>
</span>> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br>
</blockquote></div><br></div>