曰:珍愛生命,遠離微軟
MS Effect11 Hell
Error
Effects11: Internal loading error: cannot create shader reflection object.
MS Effect11存在2處
甲、SDK中DirectX SDK (June 2010)\Samples\C++\Effects11
乙、微軟開源https://github.com/Microsoft/FX11
D3DCompiler存在的2處
甲、DirectX SDK (June 2010)
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\D3Dcompiler.h
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86\d3dcompiler.lib
d3dcompiler_43.dll
乙、Windows SDK 8.1
C:\Program Files (x86)\Windows Kits\8.1\Include\um\d3dcompiler.h
C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x64\d3dcompiler.lib
每個VS安裝目錄下都帶d3dcompiler_47.dll
碼農曰
開源版FX11很難用
解決
將Windows SDK下的d3dcompiler改名或刪掉;不用微軟開源的FX11.
operator new在VS2015中不能聲明為static
"static __cdecl operator new"改成"inline __cdecl operator new"
Introduction to 3d Game Programming with Directx 11
通過以上,可以解決Introduction to 3d Game Programming with Directx 11的代碼在WIN7/Windows SDK 8/VS2015的編譯問題。
后來發現一處有人用蠻力解決編譯問題,涉及一些升級差異,有一定借鑒意義,未細看,先記之: DIRECTX 11 AND THE WINDOWS 8.0 SDK
再后來又發現一處修復編譯問題的方式,也記之:Direct3D 11 Book Demos with Windows 10 and Visual Studio 2015
ref:DLL Hell
Install DirectX SDK (June 2010) Error Code:S1023
Setup failed. Errors were encountered during installation of redistributable packages. Please close all open programs and try running setup again. If problems persist, contact DirectX Developer Support.
Error Code: S1023
解決
MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}
MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7}
準備Direct3D 12開發環境
Direct3D 12的頭文件和庫僅存在Windows 10 SDK中,沒有提供其他任何方式的安裝:Direct3D 12 Programming Environment Setup 05/31/2018 4 minutes to read
資源
MS Direct3D 12 Graphics
官方入門-The D3D12 Residency Starter Library:github:DirectX-Graphics-Samples
Sample說明
directx-12-programming-guide
Windows 10 SDK Download
Retarget Platform to Windows 10
WIN7+VS2015+Direct3D 12總會遇到一些問題。
默認WIN7+VS2015使用的Window 8 SDK,可以在工程配置--Genertal--Target Platform中查看。如果后來安裝了Windows 10 SDK,默認情況下不會啟用,需要手動修改.
手動修改Solution所有:Solution右鍵---Retaget Solution ---選擇Windows 10
SVN文件大小寫改名引起的混亂
在windows下,svn大小寫改名后變動無法理解。
通過web查看svn庫會發現,根源在于svn庫中存在分別為大寫和小寫的2份文件名字,在windows下拉取后,會只能拉取到一份。
VS2017安裝VA后無法啟動
https://blog.csdn.net/PiggyXP/article/details/82956677
找到VA安裝路徑,改名后可以切動,再卸載,再重裝,碰巧就好了
C:\Users\\AppData\Local\Microsoft\VisualStudio\15.0_0ab7aabe\Extensions
RC.exe無法言語的蛋
WIN7+VS2017+WIN8 SDK+WIN10SDK 一群混亂的玩意
只有碰到才知道痛的啥
清理Windows臨時文件的蛋
直接刪除
C:\Users\UserName\AppData\Local\Google\Chrome\User Data
C:\Users\UserName\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\nh51vms0.fgc\Data
C:\Program Files\NVIDIA Corporation\Installer2
篩選刪除
C:\Users\UserName\AppData\Local\UnrealEngine
C:\Users\UserName\AppData\Roaming\Tencent\iDisk\log
扯淡的VSHub
可以在msdn論壇看到不知道是不是官方的碼農扯了一堆vshub好處的淡,如果按設計意圖來說它應該如和如何。不扯淡了,直接將其他刪除吧:
C:\Program Files (x86)\Common Files\microsoft shared\VsHub__delete
Windows 10 遠程桌面高延遲
打開命令行,執行:
reg add "HKLM\software\policies\microsoft\windows nt\Terminal Services\Client" /v fClientDisableUDP /d 1 /t REG_DWORD
Remote Desktop intermittently freezing
0000
0000
0000