Jump to content
  • Advertisement
Sign in to follow this  
karnaltaB

[SharpDX] DXGI Adapter Video Memory problem

This topic is 923 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,

 

My video card has 4gb of dedicated memory but when I query the DXGI adapter description for DedicatedVideoMemory property, it return me a negative value of -1073741824.

 

How can I get my real video memory ? Look like it's bugging with large memory video card.

 

Thank for your help.

Share this post


Link to post
Share on other sites
Advertisement

Yes you are right, if I compil my application with a 64 bit target, I got the correct 4Gb value from the DXGI Adapter Description.

 

That throw me another problem... I need to store that value into a Int64, cause the Int32 throw me an overflow exception.. Now I need to think how to manage 32 bit system correctly, because compiling my application on 64 bits target will not allow a 32 bit system to run it..

 

I am a "traditionnal" application developper, I am doing SharpDX engine just for fun so that kind of 32/64 bit problems are new to me ;)

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!