[vtkusers] Fwd: get max texture memory size

Julien Finet julien.finet at kitware.com
Mon Sep 12 09:52:39 EDT 2011


Forward on the mailing list...

---------- Forwarded message ----------
From: Andreas Bruening <devmail.andi at yahoo.de>
Date: Mon, Sep 12, 2011 at 9:49 AM
Subject: Re: [vtkusers] get max texture memory size
To: Julien Finet <julien.finet at kitware.com>


thanks for the reply. I will use vtkGPUInfo the check if i have
theoretically enough memory. But i also would like to figure out how much
texture memory is used or is free at the moment.

  *Von:* Julien Finet <julien.finet at kitware.com>
*An:* Andreas Bruening <devmail.andi at yahoo.de>
*Cc:* "vtkusers at vtk.org" <vtkusers at vtk.org>
*Gesendet:* 15:31 Montag, 12.September 2011
*Betreff:* Re: [vtkusers] get max texture memory size

Hi Andreas,

For the total GPU memory, you can look at
http://vtk.org/doc/nightly/html/classvtkGPUInfo.html

Regards,
Julien.

On Mon, Sep 12, 2011 at 8:19 AM, Andreas Bruening <devmail.andi at yahoo.de>wrote:

 Hi all,

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

glTexImage3D(GL_TEXTURE_3D,0,static_cast<GLint>(nInternalFormat),
nExtent[1] +1,nExtent[3] +1, nExtent[5] +1,0, nFormat, nType,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!

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 and free in total.

Thanks in advance
Andi


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110912/d97a4ea6/attachment.htm>


More information about the vtkusers mailing list