Jump to content

  • Log In with Google      Sign In   
  • Create Account

Visual Studio 2013 Graphics Debug


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
10 replies to this topic

#1   Members   

224
Like
0Likes
Like

Posted 06 March 2014 - 11:18 AM

Hi I am trying to use the Visual Studio 2013 Graphics debugger and tried to create an event group. Bute I ran into a problem while including d3d11_1.h header file . I copied the header to my include directory in June 2010 SDK's include file. But the following error pops up.

1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgi1_2.h(1271): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgi1_2.h(1271): error C2143: syntax error : missing ',' before '*'

1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgi1_2.h(1275): error C2061: syntax error : identifier 'DXGI_RGBA'

I am have also copied over dxgi1_2.h in the include directory . What is causing this problem ? Is it a conflict problem ? Can any one give me any pointer on how to create this event group ?

I am including the directx sdk june 2010 version. And all inherited paths along with it.



#2   Senior Moderators   

12513
Like
1Likes
Like

Posted 06 March 2014 - 11:47 AM

You can't just randomly splice the headers together from different SDK versions. You need to update wholesale to a recent version of the SDK.


SlimDX | Shark Eaters for iOS | Ventspace Blog | Twitter | Proud supporter of diversity and inclusiveness in game development

#3   Members   

224
Like
0Likes
Like

Posted 06 March 2014 - 11:50 AM

You can't just randomly splice the headers together from different SDK versions. You need to update wholesale to a recent version of the SDK.

Where can I get the june 2013 sdk ? Silly question . I googled it but cannot find it . I know it is included in the windows sdk. But how can I include it ?



#4   Members   

7788
Like
1Likes
Like

Posted 06 March 2014 - 12:11 PM

Visual Studio 2013 comes with Direct SDK built-in into Windows SDK.

In other words, you need only VS2013. Uninstall your DirectX June 2010 SDK (or whatever month it is).

However keep in mind that you will lose D3DX, which includes texture loading & other stuff.



#5   Members   

224
Like
0Likes
Like

Posted 06 March 2014 - 12:18 PM

 

However keep in mind that you will lose D3DX, which includes texture loading & other stuff.

 

Then how do I load textures ? 



#6   Members   

1646
Like
2Likes
Like

Posted 06 March 2014 - 12:44 PM

You would have to write your own loader or use a 3rd party library to do so . D3DX is a utility library and is really not required to use D3D, hence the removal in later version of the DXSDK.



#7   Members   

14143
Like
3Likes
Like

Posted 06 March 2014 - 12:49 PM

DXTK (DirectX Tool Kit) has WIC-based texture loading for a variety of file formats.


throw table_exception("(ノ ゜Д゜)ノ ︵ ┻━┻");


#8   Members   

16743
Like
1Likes
Like

Posted 06 March 2014 - 02:20 PM

https://directxtk.codeplex.com/


Game Developer, C++ Geek, Dragon Slayer - http://seanmiddleditch.com

C++ SG14 "Games & Low Latency" - Co-chair - public forums

Wargaming Seattle - Lead Server Engineer - We're hiring!


#9   Members   

102
Like
0Likes
Like

Posted 23 July 2015 - 04:28 AM

replace your header include to d3d11_1.h.

 

#include <d3d11.h> -> #include <d3d11_1.h>



#10   Members   

1461
Like
0Likes
Like

Posted 23 July 2015 - 05:28 AM


Then how do I load textures ? 

 

If you only care about *.DDS textures you can use the DirectX library's:

DirectX::CreateDDSTextureFromFileEx()


#11   GDNet+   

10739
Like
2Likes
Like

Posted 23 July 2015 - 12:23 PM


Uninstall your DirectX June 2010 SDK (or whatever month it is).

 

There is no reason whatsoever to uninstall the old SDK. It's not clear why you would recommend that. If the poster has other applications that were built with it, a lot of valuable work could be lost.

 

Potential conflicts between the current SDK and older versions are eliminated by simply not using inappropriate references.


Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.