Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: wglShareLists - Sharing textures between rendering

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    2

    wglShareLists - Sharing textures between rendering

    I was wondering where the textures are when using wglShareLists,
    are they on the PC RAM or on the graphic card ram?

  2. #2
    Intern Contributor IneQuation.pl's Avatar
    Join Date
    Aug 2008
    Location
    Gliwice, Poland
    Posts
    69

    Re: wglShareLists - Sharing textures between rendering

    I would guess this depends on the driver.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2008
    Posts
    2

    Re: wglShareLists - Sharing textures between rendering

    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?

  4. #4
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,421

    Re: wglShareLists - Sharing textures between rendering

    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.
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

  5. #5
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: wglShareLists - Sharing textures between rendering

    Quote Originally Posted by Spyer
    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •