Search code examples
memorywebgltextures

Where is stored a gl.CreateTexture?


When creating a new texture using createTexture from the Web GL context, where is it stored? And it uses purely the GPU?

In the memory or in the graphics card memory? How's the performance in terms of resources (specially CPU load)?

Thanks!


Solution

  • gl.createTexture provides you with a GPU resource id, when and if that texture is allocated in GPU memory is up to the GPU driver.