Forward on the mailing list...<div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Andreas Bruening</b> <span dir="ltr"><<a href="mailto:devmail.andi@yahoo.de">devmail.andi@yahoo.de</a>></span><br>
Date: Mon, Sep 12, 2011 at 9:49 AM<br>Subject: Re: [vtkusers] get max texture memory size<br>To: Julien Finet <<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>><br><br><br><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt">
<div><span>thanks for the reply. I will use vtkGPUInfo the check if i have theoretically enough memory. But i also <var></var>would like to figure out how much texture memory is used or is free at the moment. <br></span></div>
<div><br></div>
<div style="font-family:times new roman, new york, times, serif;font-size:12pt">
<div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Arial">
<div style="border-bottom:#ccc 1px solid;border-left:#ccc 1px solid;padding-bottom:0px;line-height:0;margin:5px 0px;padding-left:0px;padding-right:0px;min-height:0px;font-size:0px;border-top:#ccc 1px solid;border-right:#ccc 1px solid;padding-top:0px" readonly>
</div><b><span style="font-weight:bold">Von:</span></b> Julien Finet <<a href="mailto:julien.finet@kitware.com" target="_blank">julien.finet@kitware.com</a>><br><b><span style="font-weight:bold">An:</span></b> Andreas Bruening <<a href="mailto:devmail.andi@yahoo.de" target="_blank">devmail.andi@yahoo.de</a>><br>
<b><span style="font-weight:bold">Cc:</span></b> "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br><b><span style="font-weight:bold">Gesendet:</span></b> 15:31 Montag, 12.September 2011 <br>
<b><span style="font-weight:bold">Betreff:</span></b> Re: [vtkusers] get max texture memory size<br></font><div><div></div><div class="h5"><br>
<div>Hi Andreas,
<div><br></div>
<div>For the total GPU memory, you can look at <a href="http://vtk.org/doc/nightly/html/classvtkGPUInfo.html" rel="nofollow" target="_blank">http://vtk.org/doc/nightly/html/classvtkGPUInfo.html</a><br><br></div>
<div>Regards,</div>
<div>Julien.</div>
<div><br>
<div>On Mon, Sep 12, 2011 at 8:19 AM, Andreas Bruening <span dir="ltr"><<a href="mailto:devmail.andi@yahoo.de" rel="nofollow" target="_blank">devmail.andi@yahoo.de</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex">
<div>
<div style="background-color:#fff;font-family:times new roman, new york, times, serif;color:#000;font-size:12pt">
<div>Hi all,</div>
<div> </div>
<div>how can i get the maximum available texture memory? I am working on a volumerendering tool using vtkOpenGLGPUVolumeRayCastMapper. I have to deal with large volume data and want to figure out if the data fits in the texture memory in one block. My idea is to call <font size="1"></font></div>
<div><font face="times new roman, new york, times, serif"><font size="+0"><font color="#030003"><font color="#030003"></font></font></font></font> </div>
<div><font face="times new roman, new york, times, serif"><font size="+0"><font color="#030003"><font color="#030003">glTexImage3D</font></font>(<font color="#030003"><font color="#030003">GL_TEXTURE_3D</font></font>,0,<font color="#0000ff"><font color="#0000ff">static_cast</font></font><<font color="#030003"><font color="#030003">GLint</font></font>>(<font color="#030003"><font color="#030003">nInternalFormat</font></font></font>),</font></div>
<div><font size="+0"><font face="times new roman, new york, times, serif"><font color="#030003"><font color="#030003">nExtent</font></font>[1] +1,<font color="#030003"><font color="#030003">nExtent</font></font>[3] +1, <font color="#030003"><font color="#030003">nExtent</font></font>[5] +1,0, <font color="#030003"><font color="#030003">nFormat</font></font>, <font color="#030003"><font color="#030003">nType</font></font>,0);</font></font></div>
<div><font size="+0"></font> </div>
<div><font size="+0">at the beginning and see if i can reserve a block of a desired size. But if this function succeeded the mapper cant allocate such a big block anymore(without calling the function it works). I guess the glTexImage function reserves the block and i have to release it. But i dont know how and i need help! </font></div>
<div><font size="+0"></font> </div>
<div><font size="+0">And is there a tool to tray the grafic cards memory? I would like to see how much texture and video memory is in use<var></var> and free in total.</font></div>
<div> </div>
<div>Thanks in advance</div>
<div>Andi</div>
<div><font size="+0"> </font></div></div></div><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" rel="nofollow" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote></div><br></div></div>
<br><br></div></div></div></div></div></div></div><br></div>