-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathChapter14CameraViewTransform.csproj
More file actions
47 lines (40 loc) · 2.18 KB
/
Chapter14CameraViewTransform.csproj
File metadata and controls
47 lines (40 loc) · 2.18 KB
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<!--<PublishAot>true</PublishAot>-->
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Silk.NET" Version="2.16.0" />
<PackageReference Include="Silk.NET.Vulkan.Extensions.EXT" Version="2.16.0" />
<PackageReference Include="Silk.NET.Vulkan.Extensions.KHR" Version="2.16.0" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="**/*.spv" />
</ItemGroup>
<ItemGroup>
<VertexShader Include="**/*.vert" />
<FragmentShader Include="**/*.frag" />
</ItemGroup>
<Target Name="CleanVulkanShader" BeforeTargets="Clean">
<Message Text="......................................SHADERS.clean..........................................................." Importance="high" />
<ItemGroup>
<FilesToDelete Include="**\*.spv" />
</ItemGroup>
<Delete Files="@(FilesToDelete)" />
<Message Text="......................................SHADERS.clean done......................................................" Importance="high" />
</Target>
<Target Name="BuildVulkanShader" BeforeTargets="BeforeBuild">
<Message Text="......................................SHADERS.compile........................................................." Importance="high" />
<Message Text=" Starting Vulkan Shader Compilation..." Importance="high" />
<Message Text=" VulkanBinPath: $(VulkanBinPath)" Importance="high" />
<Message Text=" VertexShader: @(VertexShader)" Importance="high" />
<Message Text=" FragmentShader: @(FragmentShader)" Importance="high" />
<Exec Command="$(VulkanBinPath)\glslc.exe "%(VertexShader.FullPath)" -o "%(VertexShader.FullPath).spv"" Condition="'@(VertexShader)'!=''" />
<Exec Command="$(VulkanBinPath)\glslc.exe "%(FragmentShader.FullPath)" -o "%(FragmentShader.FullPath).spv"" Condition="'@(FragmentShader)'!=''" />
<Message Text="......................................SHADERS.compile done...................................................." Importance="high" />
</Target>
</Project>