Thursday, October 08, 2015

where is the direct3d12 SDK?

download the windows 10 sdk at:https://dev.windows.com/en-US/downloads/windows-10-sdk
it drops its action here: c:\program files(x86)\windows kits\10\

and you can find the d3d12 sdk as a separate download in that directory. you can just point to the headers and libs in this directory for your dev work.

i'll pretend that was easy to figure out.

UPDATE 7.17.17:
changes continue for the SDK, new location is same high level directory but you have to dig a bit more to find the .h and libs:
c:\Program Files (x86)\Windows Kits\10\Include\10.15063.0\um

my guess is um is for unmanaged, as in fast, unmanaged code

IMO the upgraded directory clarity is a good thing.

--adam

where do i get the direct3d (d3d12) samples?

https://msdn.microsoft.com/en-us/library/windows/desktop/mt186624%28v=vs.85%29.aspx

Saturday, October 03, 2015

Enumerating a specific devices capabilities with D3D12


IDXGIAdapter2 *pAdapter;
LUID luid;
luid = mDevice->GetAdapterLuid();
pFactory->EnumAdapterByLuid(luid, IID_PPV_ARGS(&pAdapter));
DXGI_ADAPTER_DESC2 pDesc;
pAdapter->GetDesc2(&pDesc);
//check pDesc in the debugger, it has all you want, exercise for reader to print it out

MBP auto-brightness problems windows 8.1

have had a problem for some time when my MBP would dim and not come out of 'dim' even with brightness turned all the way up. found this fix and expect it to work. will pull the post if i find it not to do the trick.


http://www.howtogeek.com/107173/disable-windows-8s-adaptive-brightness-to-fix-dark-screen-problems/


Tuesday, September 29, 2015

Sunday, September 27, 2015

working directory, project or solution directory?

From here:

http://codeyarns.com/2013/12/30/how-to-change-working-directory-in-visual-studio/

"When developing a C++ program using Visual Studio, you typically compile and run it from the Visual Studio IDE. By default, when you do this, the executable is run with the working directory being the directory containing the Visual C++ project (.vcxproj). That is, this is the directory which acts as the current directory for your executable, when it run from within Visual Studio. Note that if you ran the executable from a commandline, then the working directory would be the current directory of your command prompt."

See the referred to page for how to change, etc.

Friday, September 25, 2015

Changing color of text in a console

Haven't used this yet but would like to so putting it down so i don't lose it:

Key is SetConsoleTextAttribute()

http://stackoverflow.com/questions/8285825/how-to-change-text-or-background-color-in-a-windows-console-application


Wednesday, September 23, 2015

console window moved off the display

Alt-Space
M
move with arrow keys
hit enter at end

Friday, August 14, 2015

'Enter' in an Excel cell

i always forget if its shift + enter or alt + enter or ctrl + enter...i use excel often but only need this every few months.

so, it is alt plus enter.  even on a macbook eyboard, no need to press fn+option+enter, just press option/alt+enter

Tuesday, July 07, 2015

Sunday, April 26, 2015

When debugging i want the console to pop-up in a non-stupid place

See the second response to this question:

http://stackoverflow.com/questions/9379773/runing-console-applications-on-other-monitor

Monday, February 02, 2015

intel compiler paths

i have run out of space in my path.the intel composer application suite sets lots of them. since i may need them again i am placing them here;

C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\tbb\vc10;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\ipp;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2011 SP1\redist\ia32\mkl;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32\compiler;