[vtkusers] get max texture memory size

Julien Finet julien.finet at kitware.com
Mon Sep 12 09:31:05 EDT 2011


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/fb7adf4f/attachment.htm>


More information about the vtkusers mailing list