Jump to content
  • Advertisement
Sign in to follow this  

[SlimDX] DirectX 10 / 11 Texture Count Limitation

This topic is 2912 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there,

I think I have asked that before but since I have a ticket with Microsoft open and they want me to verify this once more I'll ask once again.

I have found limitations on how many textures I can create and they don't make sense to me... I am running the following code on a 48 Gig machine with a GTX 480. See the table below for results.

SlimDX.Direct3D11.Device device = new SlimDX.Direct3D11.Device(DriverType.Hardware, DeviceCreationFlags.None);
List<Texture2D> textureList = new List<Texture2D>();

int width = 8192;
int height = 4096;

for (int i = 0; i < 100000; i++)
Texture2DDescription texDesc = new Texture2DDescription();
texDesc.ArraySize = 1;
texDesc.BindFlags = BindFlags.ShaderResource;
texDesc.CpuAccessFlags = CpuAccessFlags.None;
texDesc.Format = SlimDX.DXGI.Format.R16_Float;
texDesc.Height = height;
texDesc.MipLevels = 1;
texDesc.OptionFlags = ResourceOptionFlags.None;
texDesc.SampleDescription = new SampleDescription(1, 0);
texDesc.Usage = ResourceUsage.Default;
texDesc.Width = width;

Texture2D texture = new Texture2D(device, texDesc);
catch (Exception ex)
MessageBox.Show("Error at texture " + i + " : " + ex.ToString());

foreach (Texture2D texture in textureList)

Now these are the results that I'm getting for different texture sizes...

Texture Dimension Format Size MB Max # Textures Memory Used GB
256x256 R16_Float 0.125 62,256 7.60
512x256 R16_Float 0.25 31,040 7.58
512x512 R16_Float 0.5 15,520 7.58
1024x512 R16_Float 1 7,760 7.58
2048x1024 R16_Float 4 1,940 7.58
4096x2048 R16_Float 16 485 7.58
8192x4096 R16_Float 64 485 30.31
8192x8192 R16_Float 128 485 60.63
16384x8192 R16_Float 256 242 60.50
16384x16384 R16_Float 512 121 60.50
16384x16384 R32_Float 1024 60 60.00

As you can see the first few rows seem to be limited to about 7.6 gigs, the one row that is limited at a bit over 30 gigs, and the remaining rows are limited at 60 gigs and even though I only have 48 gigs physical RAM in my computer, I was able to create all those textures up to the limit stated above...

if any of the SlimDX devs could verify that this is indeed not a problem stemming from SlimDX, that would be greatly appreciated.

Thanks for your help


Share this post

Link to post
Share on other sites

that was what I thought and was expecting... but for Microsoft to rule this out, I had to get it answered by someone with more C++ knowledge than myself.


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!