D3D10 question

Started by
2 comments, last by menohack 10 years, 9 months ago

What happens when the memory I create from textures exceeds the memory that the GPU has?

Advertisement
Well, find out:

while(true)
{
   device->CreateTexture2D(&textureDesc, NULL, &texture);
}
Better take cover first.

[spoiler]E_OUTOFMEMORY
[/spoiler]

I thought it will use RAM memory

I think it only allocates memory on the GPU. There is no reason to mirror data in CPU RAM as well. Also, you are more likely to have more RAM than GPU memory.

This topic is closed to new replies.

Advertisement