blob: e957c5bac02b649ced9d9e9d75080e954f9bd772 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
<?xml version="1.0" encoding="utf-8" ?>
<XPJ version="4">
<template filename="../../../common.xpjt"/>
<Project name="flexDemoD3D">
<Conditional value="${config}" match="internal">
<Import file="../../../src/device/compiler/xpj/flexDevice.xpj" />
<Import file="../../../src/compiler/xpj/flexD3D.xpj" />
</Conditional>
<Import file="../../../extensions/compiler/xpj/flexExtD3D.xpj" />
<Export platforms="Win32 Win64">../${xpj:TOOL}${xpj:PLATFORM}</Export>
<Var name="ProjectRoot" value="../../.."/>
<Target name="flexDemoD3D">
<!-- Dx12 needs a post 8.1 version of windows SDK -->
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
<!-- Windows -->
<Config name="default" type="console" platforms="Win32 Win64">
<apply-template name="windows-common"/>
<OutDir platform="Win32">${user:ProjectRoot}/bin/win32/</OutDir>
<OutDir platform="Win64">${user:ProjectRoot}/bin/win64/</OutDir>
<DebugWorkingDir>$(OutputPath)</DebugWorkingDir>
<Preprocessor type="define">
_CONSOLE
WIN32
_CRT_SECURE_NO_WARNINGS
FLEX_DX
FLEX_DX12
</Preprocessor>
<WarningLevel>3</WarningLevel>
<GenerateDebugInformation>true</GenerateDebugInformation>
<CharacterSet>MultiByte</CharacterSet>
<SearchPaths type="header">
${user:ProjectRoot}
${user:ProjectRoot}\demo
${user:ProjectRoot}\demo\d3d11
${user:ProjectRoot}\demo\d3d12
${user:ProjectRoot}\external\SDL2-2.0.4\include
${user:ProjectRoot}\external\D3D12\include
</SearchPaths>
<Libraries>
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib d3dcompiler.lib
</Libraries>
<Libraries platforms="Win32">
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x86/SDL2.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x86/SDL2main.lib
${user:ProjectRoot}/external/NvToolsExt/lib/Win32/nvToolsExt32_1.lib
${user:ProjectRoot}/external/D3D12/libs/x86/d3d12.lib
</Libraries>
<Libraries platforms="Win64">
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x64/SDL2.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x64/SDL2main.lib
${user:ProjectRoot}/external/NvToolsExt/lib/x64/nvToolsExt64_1.lib
${user:ProjectRoot}/external/D3D12/libs/x64/d3d12.lib
</Libraries>
</Config>
<Config name="debug" type="console" platforms="Win32 Win64">
<OutFile platform="Win32">NvFlexDemoDebugD3D_x86.exe</OutFile>
<OutFile platform="Win64">NvFlexDemoDebugD3D_x64.exe</OutFile>
<IntDir>./build/${xpj:PLATFORM}/DX/debug/</IntDir>
<Preprocessor type="define" platforms="Win32">
_DEBUG
_ITERATOR_DEBUG_LEVEL=0
FLEX_DIRECT_COMPUTE
</Preprocessor>
<Preprocessor type="define" platforms="Win64">
_DEBUG
_ITERATOR_DEBUG_LEVEL=0
</Preprocessor>
<RuntimeLibrary>MTd</RuntimeLibrary>
<GenerateDebugInformation>true</GenerateDebugInformation>
<FloatingPointModel>Precise</FloatingPointModel>
<Libraries platforms="Win32">
${user:ProjectRoot}/lib/win32/NvFlexDebugD3D_x86.lib
${user:ProjectRoot}/lib/win32/NvFlexExtDebugD3D_x86.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x86/SDL2.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x86/SDL2main.lib
${user:ProjectRoot}/external/NvToolsExt/lib/Win32/nvToolsExt32_1.lib
</Libraries>
<Libraries platforms="Win64">
${user:ProjectRoot}/lib/win64/NvFlexDebugD3D_x64.lib
${user:ProjectRoot}/lib/win64/NvFlexExtDebugD3D_x64.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x64/SDL2.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x64/SDL2main.lib
${user:ProjectRoot}/external/NvToolsExt/lib/x64/nvToolsExt64_1.lib
</Libraries>
</Config>
<Config name="release" type="console" platforms="Win32 Win64">
<OutFile platform="Win32">NvFlexDemoReleaseD3D_x86.exe</OutFile>
<OutFile platform="Win64">NvFlexDemoReleaseD3D_x64.exe</OutFile>
<IntDir>./build/${xpj:PLATFORM}/D3D/demo/release/</IntDir>
<Preprocessor type="define" platforms="Win32">
NDEBUG
</Preprocessor>
<Preprocessor type="define" platforms="Win64">
NDEBUG
</Preprocessor>
<RuntimeLibrary>MT</RuntimeLibrary>
<WholeProgramOptimization>1</WholeProgramOptimization>
<Optimization>3</Optimization>
<EnableIntrinsicFunctions>true</EnableIntrinsicFunctions>
<BufferSecurityCheck>false</BufferSecurityCheck>
<EnableFunctionLevelLinking>true</EnableFunctionLevelLinking>
<FloatingPointModel>Fast</FloatingPointModel>
<Libraries platforms="Win32">
${user:ProjectRoot}/lib/win32/NvFlexReleaseD3D_x86.lib
${user:ProjectRoot}/lib/win32/NvFlexExtReleaseD3D_x86.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x86/SDL2.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x86/SDL2main.lib
${user:ProjectRoot}/external/NvToolsExt/lib/Win32/nvToolsExt32_1.lib
</Libraries>
<Libraries platforms="Win64">
${user:ProjectRoot}/lib/win64/NvFlexReleaseD3D_x64.lib
${user:ProjectRoot}/lib/win64/NvFlexExtReleaseD3D_x64.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x64/SDL2.lib
${user:ProjectRoot}/external/SDL2-2.0.4/lib/x64/SDL2main.lib
${user:ProjectRoot}/external/NvToolsExt/lib/x64/nvToolsExt64_1.lib
</Libraries>
</Config>
<!-- Common Source -->
<Files name="NvCommon" type="source" root="${user:ProjectRoot}/external/NvCommon/src">
Nv/Common/*.cpp
Nv/Common/*.h
-Nv/Common/NvCoPathFinder.*
-Nv/Common/NvCoMemoryMappedFile.*
-Nv/Common/NvCoMemoryReadStream.*
-Nv/Common/NvCoMemoryWriteStream.*
-Nv/Common/NvCoCircularHeap.*
-Nv/Common/NvCoFreeListHeap.*
Nv/Common/Platform/Win/*.cpp
Nv/Common/Platform/Win/*.h
-Nv/Common/Platform/Win/NvCoWinMemoryMappedFile.*
-Nv/Common/Platform/Win/NvCoWinPathUtil.*
-Nv/Common/Platform/Win/NvCoWinMinimalInclude.*
-Nv/Common/Platform/Win/NvCoWinCriticalSection.*
Nv/Common/Util/*.cpp
Nv/Common/Util/*.h
-Nv/Common/Util/NvCoParseUtil.*
-Nv/Common/Util/NvCoStringEscapeUtil.*
-Nv/Common/Util/NvCoPathUtil.*
-Nv/Common/Util/NvCoArgParseUtil.*
-Nv/Common/Util/NvCoBitUtil.*
-Nv/Common/Random/*.cpp
-Nv/Common/Random/*.h
Nv/Common/Container/*.cpp
Nv/Common/Container/*.h
-Nv/Common/Container/NvCoHandleMap.*
Nv/Common/Render/Dx/*.cpp
Nv/Common/Render/Dx/*.h
Nv/Common/Render/Dx12/*.cpp
Nv/Common/Render/Dx12/*.h
-Nv/Common/Render/Dx/NvCoDxIncludeHandler.*
-Nv/Common/Render/Dx/NvCoDxShaderUtil.*
-Nv/Common/Render/Dx12/NvCoDx12AsyncManager.*
-Nv/Common/Render/Dx12/NvCoDx12DescriptorCache.*
Nv/Common/Render/Context/*.cpp
Nv/Common/Render/Context/*.h
Nv/Common/Render/Context/Dx12/*.cpp
Nv/Common/Render/Context/Dx12/*.h
</Files>
<Files name="demo" type="source" root="${user:ProjectRoot}/demo">
*.cpp *.h
scenes/*.h
</Files>
<Files name="include" type="source" root="${user:ProjectRoot}/include">
*.h
</Files>
<Files name="core" type="source" root="${user:ProjectRoot}/core">
*.cpp *.h
</Files>
<Dependencies>
flexD3D
flexExtD3D
</Dependencies>
<Files name="d3d12" type="source" root="${user:ProjectRoot}/demo/d3d12">
*.h
*.cpp
</Files>
<Files name="d3d11" type="source" root="${user:ProjectRoot}/demo/d3d11">
*.h
*.cpp
</Files>
<Files name="d3d" type="source" root="${user:ProjectRoot}/demo/d3d">
*.h
*.cpp
</Files>
<HLSL Configurations="release" DisableOptim="No" Debug="No" ShaderModel="5.0" Platforms="Win32 Win64" ObjectFileOutput=" " WarningAsErrors="false" OutputHeaderFileName="${user:ProjectRoot}/demo/d3d/shaders/%(Filename).hlsl.h">
<File ShaderType="Vertex" EntryPoint="debugLineVS"> "${user:ProjectRoot}/demo/d3d/shaders/debugLineVS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="debugLinePS"> "${user:ProjectRoot}/demo/d3d/shaders/debugLinePS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="imguiPS"> "${user:ProjectRoot}/demo/d3d/shaders/imguiPS.hlsl" </File>
<File ShaderType="Vertex" EntryPoint="imguiVS"> "${user:ProjectRoot}/demo/d3d/shaders/imguiVS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="meshPS"> "${user:ProjectRoot}/demo/d3d/shaders/meshPS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="meshPS"> "${user:ProjectRoot}/demo/d3d/shaders/meshAsyncComputeBenchPS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="meshPS_Shadow"> "${user:ProjectRoot}/demo/d3d/shaders/meshShadowPS.hlsl" </File>
<File ShaderType="Vertex" EntryPoint="meshVS"> "${user:ProjectRoot}/demo/d3d/shaders/meshVS.hlsl" </File>
<File ShaderType="Vertex" EntryPoint="pointVS"> "${user:ProjectRoot}/demo/d3d/shaders/pointVS.hlsl" </File>
<File ShaderType="Geometry" EntryPoint="pointGS"> "${user:ProjectRoot}/demo/d3d/shaders/pointGS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="pointPS"> "${user:ProjectRoot}/demo/d3d/shaders/pointPS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="pointShadowPS"> "${user:ProjectRoot}/demo/d3d/shaders/pointShadowPS.hlsl" </File>
<File ShaderType="Vertex" EntryPoint="diffuseVS"> "${user:ProjectRoot}/demo/d3d/shaders/diffuseVS.hlsl" </File>
<File ShaderType="Geometry" EntryPoint="diffuseGS"> "${user:ProjectRoot}/demo/d3d/shaders/diffuseGS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="diffusePS"> "${user:ProjectRoot}/demo/d3d/shaders/diffusePS.hlsl" </File>
<File ShaderType="Vertex" EntryPoint="ellipsoidDepthVS"> "${user:ProjectRoot}/demo/d3d/shaders/ellipsoidDepthVS.hlsl" </File>
<File ShaderType="Geometry" EntryPoint="ellipsoidDepthGS"> "${user:ProjectRoot}/demo/d3d/shaders/ellipsoidDepthGS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="ellipsoidDepthPS"> "${user:ProjectRoot}/demo/d3d/shaders/ellipsoidDepthPS.hlsl" </File>
<File ShaderType="Vertex" EntryPoint="passThroughVS"> "${user:ProjectRoot}/demo/d3d/shaders/passThroughVS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="blurDepthPS"> "${user:ProjectRoot}/demo/d3d/shaders/blurDepthPS.hlsl" </File>
<File ShaderType="Pixel" EntryPoint="compositePS"> "${user:ProjectRoot}/demo/d3d/shaders/compositePS.hlsl" </File>
</HLSL>
<Dependencies>
flexExtD3D
</Dependencies>
<Conditional value="${config}" match="internal">
<Dependencies>
flexD3D
flexDevice
</Dependencies>
</Conditional>
</Target>
</Project>
</XPJ>
|