Skip to content

Commit 9a9a100

Browse files
author
Rys Sommefeldt
authored
Merge pull request #32 from ashleysmithgpu/master
Added Visual Studio 2017 project files, removed 2013 and below
2 parents cd431fd + 0e83ab3 commit 9a9a100

22 files changed

Lines changed: 905 additions & 122 deletions

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ Although DirectX 12 support is included, it hasn't been properly optimized.
3737
* AMD Radeon™ GCN-based GPU (HD 7000 series or newer)
3838
* Or other DirectX® 11 or DirectX 12 compatible discrete GPU with Shader Model 5 support
3939
* 64-bit Windows® 7 (SP1 with the [Platform Update](https://msdn.microsoft.com/en-us/library/windows/desktop/jj863687.aspx)), Windows 8.1, or Windows 10
40-
* Visual Studio® 2013 or Visual Studio 2015
41-
* Visual Studio 2015 and Windows 10 required for DirectX 12
40+
* Visual Studio 2015 or Visual Studio 2017
41+
* Visual Studio 2015 or 2017, and Windows 10 required for DirectX 12
4242

4343
### Getting started
4444

4545
#### Running the demo
46-
* Visual studio solutions for VS2015, DX11 and DX12, can be found in the `amd_tressfx_sample\build` directory.
46+
* Visual studio solutions for VS2015, VS2017, DX11 and DX12, can be found in the `amd_tressfx_sample\build` directory.
4747
* There are also solutions for just the core library in the `amd_tressfx\build` directory.
4848
* Change settings such as fullscreen/windowed and enable/disable D3D debug layer in `amd_tressfx_sample\bin\sushi.ini`
4949
* Run `SushiD3D11.exe` or `SushiD3D12.exe` in `amd_tressfx_sample\bin`.
@@ -56,13 +56,9 @@ Although DirectX 12 support is included, it hasn't been properly optimized.
5656

5757

5858
### Premake
59-
The Visual Studio solutions and projects in this repo were generated with Premake. If you need to regenerate the Visual Studio files, double-click on `gpuopen_tressfx_update_vs_files.bat` in the `premake` directory.
59+
The Visual Studio solutions and projects in this repo were generated with Premake. If you need to regenerate the Visual Studio files, double-click on `gpuopen_geometryfx_update_vs_files.bat` in the `premake` directory.
6060

61-
This version of Premake has been modified from the stock version to use the property sheet technique for the Windows SDK from this [Visual C++ Team blog post](http://blogs.msdn.com/b/vcblog/archive/2012/11/23/using-the-windows-8-sdk-with-visual-studio-2010-configuring-multiple-projects.aspx). The technique was originally described for using the Windows 8.0 SDK with Visual Studio 2010, but it applies more generally to using newer versions of the Windows SDK with older versions of Visual Studio.
62-
63-
By default, Visual Studio 2013 projects will compile against the Windows 8.1 SDK. However, the VS2013 projects generated with this version of Premake will use the next higher SDK (i.e. the Windows 10 SDK), if the newer SDK exists on the user's machine.
64-
65-
For Visual Studio 2015, the `systemversion` Premake function is used to add the `WindowsTargetPlatformVersion` element to the project file, to specify which version of the Windows SDK will be used. To change `WindowsTargetPlatformVersion` for Visual Studio 2015, change the value for `WINDOWS_TARGET_SDK` in `amd_tressfx_sample\premake` and regenerate the Visual Studio files.
61+
For Visual Studio 2015 and 2017, this version of Premake adds the `WindowsTargetPlatformVersion` element to the project file to specify which version of the Windows SDK will be used. To change `WindowsTargetPlatformVersion` for Visual Studio 2015 and 2017, change the value for `_AMD_WIN_SDK_VERSION` in `premake\amd_premake_util.lua` and regenerate the Visual Studio files.
6662

6763
### Third-Party Software
6864
* TressFX is distributed as source code, licensed under MIT. It contains no third-party code.

amd_tressfx/build/AMD_TressFX_2015.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<Keyword>Win32Proj</Keyword>
4949
<RootNamespace>AMD_TressFX</RootNamespace>
5050
<ProjectName>AMD_TressFX</ProjectName>
51+
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
5152
</PropertyGroup>
5253
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
5354
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DLL_Debug|Win32'" Label="Configuration">

amd_tressfx/build/AMD_TressFX_2015.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
44
<Filter Include="inc">
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AMD_TressFX", "AMD_TressFX_2013.vcxproj", "{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}"
3+
# Visual Studio 15
4+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AMD_TressFX", "AMD_TressFX_2017.vcxproj", "{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}"
55
EndProject
66
Global
77
GlobalSection(SolutionConfigurationPlatforms) = preSolution

amd_tressfx/build/AMD_TressFX_2013.vcxproj renamed to amd_tressfx/build/AMD_TressFX_2017.vcxproj

Lines changed: 64 additions & 73 deletions
Large diffs are not rendered by default.

amd_tressfx/build/AMD_TressFX_2013.vcxproj.filters renamed to amd_tressfx/build/AMD_TressFX_2017.vcxproj.filters

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
44
<Filter Include="inc">

amd_tressfx/build/Windows10SDKVS13_x64.props

Lines changed: 0 additions & 12 deletions
This file was deleted.

amd_tressfx/build/Windows10SDKVS13_x86.props

Lines changed: 0 additions & 12 deletions
This file was deleted.

amd_tressfx/premake/premake5.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ project (_AMD_LIBRARY_PROJECT_NAME)
3636
--exceptionhandling "Off"
3737
--rtti "Off"
3838

39-
-- Specify WindowsTargetPlatformVersion here for VS2015
40-
--windowstarget (_AMD_WIN_SDK_VERSION)
39+
-- Specify WindowsTargetPlatformVersion here for VS2015 and VS2017
40+
systemversion (_AMD_WIN_SDK_VERSION)
4141

4242
files { "../inc/**.h", "../src/**.h", "../src/**.cpp", "../src/Shaders/**.hlsl" }
4343
includedirs { "../inc" }
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AMD_TressFX", "..\..\amd_tressfx\build\AMD_TressFX_2017.vcxproj", "{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}"
5+
EndProject
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SuTressFXPluginD3D11", "SuTressFXPluginD3D11_2017.vcxproj", "{481719C3-34A6-A28C-DDC4-B687C932B332}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Release|x64 = Release|x64
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}.Debug|x64.ActiveCfg = Lib_Debug|x64
15+
{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}.Debug|x64.Build.0 = Lib_Debug|x64
16+
{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}.Release|x64.ActiveCfg = Lib_Release|x64
17+
{252C0AF0-91E1-82E5-1AD6-7CBC868A79E9}.Release|x64.Build.0 = Lib_Release|x64
18+
{481719C3-34A6-A28C-DDC4-B687C932B332}.Debug|x64.ActiveCfg = Debug|x64
19+
{481719C3-34A6-A28C-DDC4-B687C932B332}.Debug|x64.Build.0 = Debug|x64
20+
{481719C3-34A6-A28C-DDC4-B687C932B332}.Release|x64.ActiveCfg = Release|x64
21+
{481719C3-34A6-A28C-DDC4-B687C932B332}.Release|x64.Build.0 = Release|x64
22+
EndGlobalSection
23+
GlobalSection(SolutionProperties) = preSolution
24+
HideSolutionNode = FALSE
25+
EndGlobalSection
26+
EndGlobal

0 commit comments

Comments
 (0)