PDA

View Full Version : wglShareLists - Sharing textures between rendering



Spyer
11-07-2008, 03:24 AM
I was wondering where the textures are when using wglShareLists,
are they on the PC RAM or on the graphic card ram?

IneQuation.pl
11-07-2008, 06:35 AM
I would guess this depends on the driver.

Spyer
11-07-2008, 12:28 PM
Let me refine my question.

When sharing textures between a number of rendering contexts is there a way to know where the textures are stored? (Video card RAM or PC RAM)

if it is indeed driver depended, is it writen in the driver spec?

V-man
11-08-2008, 09:19 AM
wglShareLists is just a flag that tells the driver that 2 contexts(or more) can use the same texture. Typically, the driver will store textures in the best place possible which would be VRAM.
It will do the same for all resources : shaders, FBO, VBO, etc.

Zengar
11-08-2008, 02:21 PM
Let me refine my question.

When sharing textures between a number of rendering contexts is there a way to know where the textures are stored? (Video card RAM or PC RAM)

if it is indeed driver depended, is it writen in the driver spec?

No way to know, not written in the spec :) Why do you want to know?