diff --git a/README.md b/README.md index f321c2a..cf77ae6 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ System requirements * A graphics card with Direct3D 12 support. * For instance, any GCN-based AMD Radeon™ GPU. * Windows® 10 (64-bit recommended). -* Visual Studio® 2015 with Visual C++® and the Windows 10 SDK installed. The [free community edition](https://www.visualstudio.com/downloads/download-visual-studio-vs) is sufficient. - * Note: neither Visual C++ nor the Windows 10 SDK are installed with Visual Studio 2015 by default. - * For a fresh installation of Visual Studio 2015, choose 'Custom', not 'Typical', and select the required components. +* Visual Studio® 2019 with Visual C++® and the Windows 10 SDK installed. The [free community edition](https://www.visualstudio.com/downloads/download-visual-studio-vs) is sufficient. + * Note: neither Visual C++ nor the Windows 10 SDK are installed with Visual Studio 2019 by default. + * For a fresh installation of Visual Studio 2019, choose 'Custom', not 'Typical', and select the required components. * For existing installations, you can re-run the installer or select Visual Studio from Programs and Features and click 'Change'. * When selecting components to be installed, the option to install the Windows 10 SDK is tucked away under Windows and Web Development -> Universal Windows App Development Tools. @@ -25,7 +25,7 @@ Building Visual Studio files can be found in the `hellod3d12\build` directory. -If you need to regenerate the Visual Studio files, open a command prompt in the `hellod3d12\premake` directory and run `..\..\premake\premake5.exe vs2015` (or `..\..\premake\premake5.exe vs2013` for Visual Studio 2013.) +If you need to regenerate the Visual Studio files, open a command prompt in the `hellod3d12\premake` directory and run `..\..\premake\premake5.exe vs2019` (or `..\..\premake\premake5.exe vs2017` for Visual Studio 2017.) Sample overview --------------- diff --git a/hellod3d12/build/HelloD3D12_2019.sln b/hellod3d12/build/HelloD3D12_2019.sln new file mode 100644 index 0000000..b621a21 --- /dev/null +++ b/hellod3d12/build/HelloD3D12_2019.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloD3D12", "HelloD3D12_2019.vcxproj", "{3F3B938C-ABC6-0051-B4D7-834520E25C51}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3F3B938C-ABC6-0051-B4D7-834520E25C51}.Debug|x64.ActiveCfg = Debug|x64 + {3F3B938C-ABC6-0051-B4D7-834520E25C51}.Debug|x64.Build.0 = Debug|x64 + {3F3B938C-ABC6-0051-B4D7-834520E25C51}.Release|x64.ActiveCfg = Release|x64 + {3F3B938C-ABC6-0051-B4D7-834520E25C51}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/hellod3d12/build/HelloD3D12_2019.vcxproj b/hellod3d12/build/HelloD3D12_2019.vcxproj new file mode 100644 index 0000000..dd19e14 --- /dev/null +++ b/hellod3d12/build/HelloD3D12_2019.vcxproj @@ -0,0 +1,126 @@ + + + + + Debug + x64 + + + Release + x64 + + + + {3F3B938C-ABC6-0051-B4D7-834520E25C51} + true + Win32Proj + HelloD3D12 + HelloD3D12 + 10.0 + + + + Application + true + Unicode + v142 + + + Application + false + Unicode + v142 + true + + + + + + + + + + + + + true + ..\bin\ + Desktop_2019\x64\Debug\ + HelloD3D12_Debug_2019 + .exe + + + false + ..\bin\ + Desktop_2019\x64\Release\ + HelloD3D12_Release_2019 + .exe + + + + NotUsing + Level4 + true + _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;DEBUG;_WINDOWS;%(PreprocessorDefinitions) + EditAndContinue + Disabled + Fast + + + Windows + true + d3dcompiler.lib;dxguid.lib;d3d12.lib;dxgi.lib;%(AdditionalDependencies) + WinMainCRTStartup + true + + + + + NotUsing + Level4 + true + _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;PROFILE;_WINDOWS;%(PreprocessorDefinitions) + ProgramDatabase + Full + true + true + false + true + Fast + + + Windows + true + true + true + d3dcompiler.lib;dxguid.lib;d3d12.lib;dxgi.lib;%(AdditionalDependencies) + WinMainCRTStartup + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/hellod3d12/premake/premake5.lua b/hellod3d12/premake/premake5.lua index bc4be58..3636a4d 100644 --- a/hellod3d12/premake/premake5.lua +++ b/hellod3d12/premake/premake5.lua @@ -25,7 +25,7 @@ project (_AMD_SAMPLE_NAME) floatingpoint "Fast" -- Specify WindowsTargetPlatformVersion here for VS2015 - windowstarget (_AMD_WIN_SDK_VERSION) + systemversion (_AMD_WIN_SDK_VERSION) files { "../src/**.h", "../src/**.cpp" } links { "d3dcompiler", "dxguid", "d3d12", "dxgi" } @@ -34,11 +34,17 @@ project (_AMD_SAMPLE_NAME) filter "configurations:Debug" defines { "WIN32", "_DEBUG", "DEBUG", "_WINDOWS" } - flags { "Symbols", "FatalWarnings", "Unicode", "WinMain" } + symbols "On" + characterset ("Unicode") + entrypoint "WinMainCRTStartup" + flags { "FatalWarnings"} targetsuffix ("_Debug" .. _AMD_VS_SUFFIX) filter "configurations:Release" defines { "WIN32", "NDEBUG", "PROFILE", "_WINDOWS" } - flags { "LinkTimeOptimization", "Symbols", "FatalWarnings", "Unicode", "WinMain" } + symbols "On" + characterset ("Unicode") + entrypoint "WinMainCRTStartup" + flags { "LinkTimeOptimization", "FatalWarnings" } targetsuffix ("_Release" .. _AMD_VS_SUFFIX) optimize "On" diff --git a/premake/amd_premake_util.lua b/premake/amd_premake_util.lua index 2b0485d..8d2d931 100644 --- a/premake/amd_premake_util.lua +++ b/premake/amd_premake_util.lua @@ -8,6 +8,6 @@ _AMD_VS_SUFFIX = "_" .. string.gsub(_ACTION, "vs", "") -- Specify build output directory structure here: e.g. Desktop_2012\x64\DLL_Debug _AMD_SAMPLE_DIR_LAYOUT = "Desktop%{_AMD_VS_SUFFIX}/%{cfg.platform}/%{cfg.buildcfg}" --- Specify WindowsTargetPlatformVersion here for VS2015 -_AMD_WIN_SDK_VERSION = "10.0.10240.0" +-- Specify WindowsTargetPlatformVersion here for VS2019 +_AMD_WIN_SDK_VERSION = "10.0" diff --git a/premake/premake5.exe b/premake/premake5.exe index 63f8647..f081fe1 100644 Binary files a/premake/premake5.exe and b/premake/premake5.exe differ