Sign in to follow this  

d3d maximum texture size

This topic is 2847 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, I use VS 2008 (C#) and MDX, I have to display large images (images with sizes in order of several thousand pixels), but it seems that D3D cannot accept large textures (for instance when I load a 5700 x 5700 BMP, d3d crashes), so I'm going to divide my big texture into several smaller textures, how can I find the maximum texture size supported? any tips or suggestions? thanks

Share this post


Link to post
Share on other sites
The Caps structure will tell you in MaxTextureWidth and MaxTextureHeight. And you can check with the DirectX Caps Viewer (Which comes with the SDK). Generally it's 4096 for NVidia hardware and 2048 for older ATI (Although you'll need to check at runtime to be sure).

Also note that if the card doesn't support non-power of 2 textures, they'll be rounded up to the next power of 2 (8192x8192 in your case) if you're using D3DX, or the creation will fail if not.

EDIT: Ah, that's in C++ - C# will be similar.

Also, the minimum maximum texture size is 256x256 for DX9 hardware - so you can always assume that at least 256x256 is ok to create.

Share this post


Link to post
Share on other sites

This topic is 2847 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this