代码拉取完成,页面将自动刷新
同步操作将从 ktxiaok/SharpBgfx 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<Project>
<PropertyGroup>
<!-- Instucts Visual Studio to always start MSBuild when building. -->
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
<ShaderCPath Condition=" $(ShaderCPath) == '' ">$(MSBuildThisFileDirectory)tools\shaderc.exe</ShaderCPath>
<ShaderIncludeDir Condition=" $(ShaderIncludeDir) == '' ">$(MSBuildThisFileDirectory)include</ShaderIncludeDir>
<VertexShaderIncludePattern Condition=" $(VertexShaderIncludePattern) == '' ">vs_*.sc</VertexShaderIncludePattern>
<FragmentShaderIncludePattern Condition=" $(FragmentShaderIncludePattern) == '' ">fs_*.sc</FragmentShaderIncludePattern>
<ComputeShaderIncludePattern Condition=" $(ComputeShaderIncludePattern) == '' ">cs_*.sc</ComputeShaderIncludePattern>
<ShaderOutputDir Condition=" $(ShaderOutputDir) == '' ">bin\</ShaderOutputDir>
</PropertyGroup>
<ItemGroup>
<VertexShaders Include="$(VertexShaderIncludePattern)" />
<FragmentShaders Include="$(FragmentShaderIncludePattern)" />
<ComputeShaders Include="$(ComputeShaderIncludePattern)" />
</ItemGroup>
<!-- Build process hooks. -->
<PropertyGroup>
<CleanDependsOn>CleanShaders;$(CoreCompileDependsOn)</CleanDependsOn>
<CoreCompileDependsOn>$(CoreCompileDependsOn);CompileShaders</CoreCompileDependsOn>
</PropertyGroup>
<Target Name="CleanShaders" BeforeTargets="CoreClean">
<RemoveDir Condition=" Exists('$(IntermediateOutputPath)$(ShaderOutputDir)') "
Directories="$(IntermediateOutputPath)$(ShaderOutputDir)" />
<RemoveDir Condition=" Exists('$(TargetDir)$(ShaderOutputDir)') "
Directories="$(TargetDir)$(ShaderOutputDir)" />
</Target>
<Target Name="CompileShaders"
BeforeTargets="AfterBuild"
AfterTargets="CopyFilesToOutputDirectory"
DependsOnTargets="EnsureShaderIntermediateOutputDirectory;CompileVertexShaders;CompileFragmentShaders;CompileComputeShaders;CopyShaderBinariesToOutputDirectory" />
<Target Name="EnsureShaderIntermediateOutputDirectory">
<MakeDir Directories="$(IntermediateOutputPath)$(ShaderOutputDir)dx11\" />
<MakeDir Directories="$(IntermediateOutputPath)$(ShaderOutputDir)glsl\" />
</Target>
<Target Name="CompileVertexShaders" Inputs="@(VertexShaders)" Outputs="$(IntermediateOutputPath)$(ShaderOutputDir)dx11\%(VertexShaders.Filename).bin;$(IntermediateOutputPath)$(ShaderOutputDir)glsl\%(VertexShaders.Filename).bin">
<Exec Command="$(ShaderCPath) --platform windows --type vertex -p vs_4_0 -O 3 -f "@(VertexShaders)" -o "$(IntermediateOutputPath)$(ShaderOutputDir)dx11\%(VertexShaders.Filename).bin" -i "$(ShaderIncludeDir)"" />
<Exec Command="$(ShaderCPath) --platform linux --type vertex -p 120 -f "@(VertexShaders)" -o "$(IntermediateOutputPath)$(ShaderOutputDir)glsl\%(VertexShaders.Filename).bin" -i "$(ShaderIncludeDir)"" />
</Target>
<Target Name="CompileFragmentShaders" Inputs="@(FragmentShaders)" Outputs="$(IntermediateOutputPath)$(ShaderOutputDir)dx11\%(FragmentShaders.Filename).bin;$(IntermediateOutputPath)$(ShaderOutputDir)glsl\%(FragmentShaders.Filename).bin">
<Exec Command="$(ShaderCPath) --platform windows --type fragment -p ps_4_0 -O 3 -f "@(FragmentShaders)" -o "$(IntermediateOutputPath)$(ShaderOutputDir)dx11\%(FragmentShaders.Filename).bin" -i "$(ShaderIncludeDir)"" />
<Exec Command="$(ShaderCPath) --platform linux --type fragment -p 120 -f "@(FragmentShaders)" -o "$(IntermediateOutputPath)$(ShaderOutputDir)glsl\%(FragmentShaders.Filename).bin" -i "$(ShaderIncludeDir)"" />
</Target>
<Target Name="CompileComputeShaders" Inputs="@(ComputeShaders)" Outputs="$(IntermediateOutputPath)$(ShaderOutputDir)dx11\%(ComputeShaders.Filename).bin;$(IntermediateOutputPath)$(ShaderOutputDir)glsl\%(ComputeShaders.Filename).bin">
<Exec Command="$(ShaderCPath) --platform windows --type compute -p cs_5_0 -O 3 -f "@(ComputeShaders)" -o "$(IntermediateOutputPath)$(ShaderOutputDir)dx11\%(ComputeShaders.Filename).bin" -i "$(ShaderIncludeDir)"" />
<Exec Command="$(ShaderCPath) --platform linux --type compute -p 430 -f "@(ComputeShaders)" -o "$(IntermediateOutputPath)$(ShaderOutputDir)glsl\%(ComputeShaders.Filename).bin" -i "$(ShaderIncludeDir)"" />
</Target>
<Target Name="CopyShaderBinariesToOutputDirectory">
<ItemGroup>
<ShaderBinaries Include="$(IntermediateOutputPath)$(ShaderOutputDir)**\*.bin" />
</ItemGroup>
<Copy SourceFiles="@(ShaderBinaries)"
DestinationFolder="$(TargetDir)$(ShaderOutputDir)%(RecursiveDir)"
SkipUnchangedFiles="true" />
</Target>
</Project>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。