Results 1 to 2 of 2

Thread: Texture mapping in memory

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2005

    Texture mapping in memory

    I have two question
    1.How are the textures mapped in memory (in what kind of array) ?
    2.And in what memory ?
    thank you in advance !

  2. #2

    Re: Texture mapping in memory

    Each video hardware is free to store it any way it wishes since GL doesn't dictate what they should do.
    Each hw has it's own internal format. For example, some don't support GL_RGBA but do support GL_BGRA and if you try to upload in RGBA format, the driver will switch red and blue around using the CPU.

    The array type used depends on the texture type (1D, 2D, 3D, cubemap). The hw can also choose how and where to store mipmaps.

    The driver decides on the memory, but typically, they go into VRAM when there is space.

    Hope that helps.

Similar Threads

  1. Very very odd memory texture memory heap usage on OSX
    By mlfarrell in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 01-02-2015, 03:54 PM
  2. error while mapping the pinned memory
    By sajis997 in forum OpenCL
    Replies: 0
    Last Post: 08-20-2013, 06:27 AM
  3. Texture coord to memory coord mapping
    By imported_Budric in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-27-2010, 06:02 PM
  4. Texture Memory and PC memory issue
    By Luca Vacchetti in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-03-2004, 01:16 PM
  5. read back texture memory to system memory
    By PeterP in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-06-2002, 01:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean