Does VisualStudio provide a way to view textures? - visual-studio-2012

I am creating a DirectX texture programatically and binding it to a shader. I would like to verify that the texture appears as expected. Does Visual Studio 2012 or some other tool provide a method of viewing a texture? I could render the thing but that will take a bit of work and if there's an existing solution I would prefer to use that.

In Visual Studio 2012 When using graphics debugger ( Main menu -> Debug -> Graphics -> Start Diagnostic ( Alt+F5) ), capture the frame (Print Screen), then in "Object table" choose your resource (SRV, UAV or buffer), on opened tab click link.
The only thing I doubt is in which editions graphics debugger avaliable.
NVIDIA Nsight has similar functionality, but it is not supporting VS 2012 yet. You can use v2.0 or v3.0 RC in VS 2010 if you have NVIDIA hardware.
AMD has its own toolset too, but I've never use it. You can try if you have AMD Radeon onboard.
And, as Robert J. stated, good old Microsoft PIX are also on duty.
If you don't want install old SDK, you can open its distributive and extract Utilities folder. Executable name is PIXWin.exe.

Related

Blurry Dev C++ On Windows 10

90% of the apps are displaying correctly sharp and clear as it's supposed to be on my uhd laptop screen. My scaling is 150% (as default also) (because of uhd screen in 15.6" laptop, 100% is too inefficient for my eyes.)
But dev c++ and some old softwares are looking blurry.
blurry dev c++
there is a fix on windows 10 settings named "advanced scaling" that is already enabled. is there any way to fix blurry dev c++ or do you recommend better up to date ide for c++ with compiler?
advanced scaling settings windows 10
(eclipse-cpp with mingw is slow,
clion is super but uses visual c++ compiler (i dont know if is there any setting for compiler,
microsoft visual c++ is good but showing some errors for nothing, actually says "no errors" than doesnt compiles for some time)
Right click on the Dev c++
Select “Properties” from the popup menu.
Click on “Compatibility” tab.
making the settings to manually fix fuzzy text in windows 10
Select “Override high DPI scaling behavior.
Select “System (Advanced)” not "System" or "Application" from the options provided in “Scaling performed by” section.
Click on “Apply” button and then on “OK.”
Fixed screenshot
There is a new version of Dev C++ compiled with the latest version of Delphi which supports high-DPI, Unicode, and Windows 10.
https://github.com/Embarcadero/Dev-Cpp/releases

Visual Studio 2012 - Locals not shown

I am using Visual Studio 2012 with the Intel Fortran Compiler XE 13.0 (from Parallel Studio 2013) to code in Fortran.
When debugging a project, the "Locals" and "Auto" windows don't show any variable. Similarly, when hovering over a variable name in the code, I don't get any datatip showing its value. Lastly, when trying to evaluate a variable or expression in the Watches I always get an "Unable to evaluate expression". So, as far as I understand, there's some problem involving debugger symbols or something like this.
Here's what I tried:
restarting VS and Windows
creating a new solution with default configuration
checking the Debugging options for any obvious setting which could case this
followed this answer, even if it looks like it's for a slightly different problem (VS recognizes a local variable, but saying it's out of scope)
repairing my Intel Parallel Studio XE 2013 installation
I never enabled optimization. Here's a screenshot so that you can clearly see what it's going on here.
P.S: as a last hint, I found a similar bug affecting VS2010, but 1) yeah, I've got VS2012 and I suppose it should have been fixed 2) it affects C++ (don't know if this matters though) 3) the patch is not directly available online.

How to display native types when debugging in VS2012 for mixed mode C++/CLI MFC app

Possible duplicate of this question.
I have a MFC project that uses /clr switch and some C++/CLI code to use a .Net component. Originally this was on VS2005.
On upgrading to VS2012 Update 2, during debugging, no values or types were shown for native data types. I learned that a new mechanism for native data type visualization (natvis) was introduced in VS2010 and extended / enhanced in VS2012. Following the information on that page, I unchecked Managed C++ Compatibility Mode and C/C++ edit and continue. After this, breakpoints became disabled and stopped being hit. Using "Only Managed" debugger, the breakpoints were hit but no values were shown.
Finally, I used "mixed" debugger and used __debugbreak() to force a break. This resulted in only integer values being shown ONLY if they are local autos; and data types were picked up correctly. However, std::string or CString values are not shown and instead their type is shown in value column. Similarly, pointers, class members, or functions argument values are not shown and type information, Undefined value, or out of scope is shown in the value column.
The behavior is consistent across autos, locals and watch windows as well as mouse hover on symbols.
How do I get the native data types to display their values during debugging in VS2012 mixed mode C++/CLI MFC application.
I have read this question and verified that all symbols have been loaded in modules window.
Apparently, Microsoft is aware of the issue and the upcoming CTP of Update 3 should fix it.
Additionally, why do I need to use __debugbreak()?
A couple of days ago, Microsoft released a Visual Studio Service Pack 3 RC which may help (installing it myself right now). Here is the link: http://www.microsoft.com/en-us/download/details.aspx?id=38832
Re-install Visual Studio 2012 and do not apply Service Pack 2.

Where can I locate themes for VS2012

Okay, the lack of color on VS2012 is gross.
Is there someplace I can get a theme pack or something for it so that it actually looks reasonable? I really liked the look of VS2010. However, the new one reminds me way too much of 1984.
While we are at it, is there anyway to have it stop shouting at me? ALL CAPS menus are pretty hard to read. [ note: caps was resolved, thanks Konamiman]
Yes, luckily you can revert the Visual Studio 2012 ALL CAPS menus to normal menus by hacking the registry:
Launch regedit and navigate to
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General
Create a DWORD value named SuppressUppercaseConversion with value 1.
NOTE: As explained in the answer pointed by Yahoo Serious, the VisualStudio part on the registry key name should be changed to VSWinExpress for Visual Studio Express, and to VWDExpress for Visual Studio Express for Web.
UPDATE:
I have applied this hack in another machine and at first it did not work. It turned out that I had selected the key name from this response by double clicking it, then copied it, then pasted it in regedit. Well, by doing so I had inadvertently created the key with a trailing space in the name! And hence it did not work.
So, if you apply this hack and it seems to not work, ensure that there are no trailing spaces in the key name.
New Theme editor Specifically for 2012:
http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05
Comes w/ VS 2010 style blue and a few others...
Here is a shot of my VS2012 install that almost looks like the familiar 2010 we are all used to. It makes me feel normal again!
Here is exactly how I did this, step-by-step:
1) Close all instances of Visual Studio
2) Download vsip and extract it to a temp directory. (as of 1/3/2013 the current version is 1.5.2)
3) Open up a command prompt with "Run as administrator"
4) Go to the temp directory and run VSIP.exe - This will run an interactive program that accepts commands.
4a) Type "backup --version=2012" - This will backup all of your VS2012 UI dlls, just in case something gets messed up and you want to uninstall VSIP.
4b) Type "extract" - This will extract all of the old icons from your installation of VS2010 (per VS2010 license VSIP can not distribute those icons so we have to have a local install to pull them from).
4c) Type "inject" - This will inject all of the old 2010 icons from the previous step into the VS2012 DLLs.
4d) Type "menus -n" - This will change the menus so they are NOT ALL CAPITALIZED!
5) Download and install NiceVS - do not download the one dated 10/14 or you will be missing icons. As of 1/3/2013 I downloaded the file named "NiceVS.0.8.1.1 Beta.Full.vsix".
6) Download and install VS2012 Color Theme Editor - The next time you start VS2012 select the "Blue" theme from the color select window.
Now you should have a nice install of VS2012 that looks like my screen shot above! It takes three different applications to patch that hideous UI but it's certainly workable now! If you don't have VS2010 installed on the same machine as VS2012 then you will have to run 4b on a machine with VS2010 and then copy the VSIP Images directory to your 2012 development machine.
Update: If you install "VS 2012 Update 1" after running these steps you will need to re-run step 4c from the VSIP admin prompt (or all of step 4 if you didn't keep the extract of the VS2010 images). The file menu icons and color scheme stay as they are but the update reverts the icons in the solution explorer back to the ugly ones. Re-running the VSIP inject fixes it right up!
I feel your pain, and have been checking daily for a solution. I've now discovered this site, which includes a theme editor, as well as drumroll a VS2010 theme for VS2012!
http://bchavez.bitarmory.com/archive/2012/08/27/modify-visual-studio-2012-dark-and-light-themes.aspx
Edit - I just noticed that Brian Chavez already posted the same link as me. However, I don't think it included a premade 2010 theme until today.
Edit 2 - Another theme editor - http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a-81a8-337d4e7ace05
AND ICONS!!! - http://vsip.codeplex.com/
http://studiostyl.es/
The themes for 2010 work for 2012 as well
This extension was just released a couple of days ago:
Visual Studio 2012 Color Theme Editor
If you want to change the VS shell environment themes in Visual Studio 2012, try this utility:
Modify Visual Studio 2012 Dark (and Light) Themes
Source Code
The quick option to look is VSColorOutput extension for VS2012. Just look at Tools->Extensions and NUGet package will help you to locate it asap.
Another option would be downloading and Visual Studio Color Schemes. http://studiostyles.info/ . Here is a link to Scott Gu's blog which describes how to apply your preferred schema.

Free Visual Studio Pluggin For Code COmpletion in Visual C++

I am doing some C++ projects in visual c++ using Visual Studio Pro 2010. But unfortunately, auto complete support, automatic brace completion are not there. For example, If you type "in", there is not auto completion pop up windows showing that "Int", if u type "ret", nothing is shown for "return", these simple auto completion feature are available in netbeans, eclipse. But not in VS.
I used Visual assist x for a month but it is not a free extension. Can someone help???? is there any free pluggin that can do these things in C++...
There are also good pluggin that serves these issues like resharper. But all these works for C# and VB
Auto completion should be available trough Visual Studio directly. As for extra options this may not do all that you're used to with Visual Assist X, but it's free and it helps you make some changes to the code very easily: DevExpress Refactor! for C++

Resources