Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 848623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:58:23+00:00 2026-05-15T06:58:23+00:00

Hey, I have a texture loaded with glTextImage2D. I want to get the texture’s

  • 0

Hey, I have a texture loaded with glTextImage2D.
I want to get the texture’s size after it was loaded to the VRAM, what do I need to do?
My internal format is RGBA and the texture’s format varies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:58:24+00:00Added an answer on May 15, 2026 at 6:58 am

    This might be helpful to you and you can probably infer the actual memory usage from it. However, I believe this still is rather an approximation:

    http://www.geeks3d.com/20100531/programming-tips-how-to-know-the-graphics-memory-size-and-usage-in-opengl/

    (query the total memory usage of OpenGL using NVIDIA or ATI specific extensions)

    Also note that from my experience, approximating the memory usage by rough calculation was usually sufficient. Textures “should” be stored either 1,2 or 4 components without any significant overhead. Therefore for a WxH RGBA texture, calculate W*H*4. If you store float textures (i.e. GL_RGBA32F), calculate W*H*4*4. For Mip-Maps, add (1/3) additional memory consumption. Be aware however, that – at least to my knowledge – texture memory can also fragment, possibly leaving you with less available memory as estimated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hey i have two tables i want to get the combined result out of
Hey I have an array with numbers in it. Now I want to divide
Hey I have this code right here: http://pastie.org/534470 And on line 109 I get
Hey I have this kinda structure in my ini file I want to be
hey i have a counter text here and i need to know how to
Hey i have a textview i need to count the string length of textview
Hey I have tried a lot creating spree extension , but after weeks efforts
Hey I have a fairly basic question about regular expressions. I want to just
Hey I have a wordpress blog, and I need to add some negative margin
Hey there. Basically, I have a batch-file, that goes through all model and texture

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.