Skip to content

Commit

Permalink
Windows ISPC *DO NOT MERGE*
Browse files Browse the repository at this point in the history
  • Loading branch information
derwin12 committed Jan 28, 2025
1 parent 12928d8 commit 140ca50
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 13 deletions.
67 changes: 65 additions & 2 deletions xLights/Xlights.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_WINDOWS;%(PreprocessorDefinitions);WXDEBUG;__WXDEBUG__;_CRT_SECURE_NO_WARNINGS;IGNORE_VENDORS;$(DefineConstants);wxUSE_WEBP</PreprocessorDefinitions>
<PreprocessorDefinitions>HASISPC;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);WXDEBUG;__WXDEBUG__;_CRT_SECURE_NO_WARNINGS;IGNORE_VENDORS;$(DefineConstants);wxUSE_WEBP</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalOptions>/D "NOMINMAX"</AdditionalOptions>
Expand Down Expand Up @@ -344,7 +344,7 @@ xcopy "$(SolutionDir)..\bin64\Vamp\" "$(TargetDir)Vamp\" /e /y /i /r
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;IGNORE_VENDORS;$(DefineConstants)</PreprocessorDefinitions>
<PreprocessorDefinitions>XXHASISPC;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);_CRT_SECURE_NO_WARNINGS;IGNORE_VENDORS;$(DefineConstants)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalOptions>/D "NOMINMAX" %(AdditionalOptions)</AdditionalOptions>
Expand Down Expand Up @@ -1065,8 +1065,15 @@ xcopy "$(SolutionDir)..\bin64\Vamp\" "$(TargetDir)Vamp\" /e /y /i /r
<ClInclude Include="effects\FX.h" />
<ClInclude Include="effects\GuitarEffect.h" />
<ClInclude Include="effects\GuitarPanel.h" />
<ClInclude Include="effects\ispc\ButterflyFunctions.ispc.h" />
<ClInclude Include="effects\ispc\ISPCComputeUtilities.h" />
<ClInclude Include="effects\ispc\LayerBlendingFunctions.ispc.h" />
<ClInclude Include="effects\ispc\PinwheelFunctions.ispc.h" />
<ClInclude Include="effects\ispc\PlasmaFunctions.ispc.h">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
</ExcludedFromBuild>
</ClInclude>
<ClInclude Include="effects\ispc\SpacialColors.ispc.h" />
<ClInclude Include="effects\KaleidoscopeEffect.h" />
<ClInclude Include="effects\KaleidoscopePanel.h" />
<ClInclude Include="effects\LinesEffect.h" />
Expand Down Expand Up @@ -1521,6 +1528,62 @@ xcopy "$(SolutionDir)..\bin64\Vamp\" "$(TargetDir)Vamp\" /e /y /i /r
<ItemGroup>
<Text Include="..\documentation\xlDo Commands.txt" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="effects\ispc\LayerBlendingFunctions.ispc">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
<FileType>Document</FileType>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">echo "%(FullPath)" &gt; "E:\debug_ouput.txt"
echo "$(IntDir)%(Filename).obj" &gt;&gt; "E:\debug_ouput.txt"
ispc.exe "%(FullPath)" -o "$(IntDir)%(Filename).obj" --target=host</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename).obj</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(InputPath)</AdditionalInputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">echo "%(FullPath)" &gt; "E:\debug_ouput.txt"
echo "$(IntDir)%(Filename).obj" &gt;&gt; "E:\debug_ouput.txt"
ispc.exe "%(FullPath)" -o "$(IntDir)%(Filename).obj" --target=host</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(FileName).obj</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(InputPath)</AdditionalInputs>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="effects\ispc\ButterflyFunctions.ispc">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ispc.exe "%(FullPath)" -o "$(IntDir)%(Filename).obj" --target=host</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename).obj</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(InputPath)</AdditionalInputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename).obj</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(InputPath)</AdditionalInputs>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ispc.exe "%(FullPath)" -o "$(IntDir)%(Filename).obj" --target=host</Command>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="effects\ispc\PinwheelFunctions.ispc">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
<FileType>Document</FileType>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(InputPath)</AdditionalInputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(InputPath)</AdditionalInputs>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ispc.exe "%(FullPath)" -o "$(IntDir)%(Filename).obj" --target=host</Command>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ispc.exe "%(FullPath)" -o "$(IntDir)%(Filename).obj" --target=host</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename).obj</Outputs>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename).obj</Outputs>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="effects\ispc\PlasmaFunctions.ispc">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
<FileType>Document</FileType>
<Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">ispc.exe "%(FullPath)" --target=host -o "$(IntDir)%(Filename).obj"</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(IntDir)%(Filename).obj</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(InputPath)</AdditionalInputs>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
<Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">ispc.exe "%(FullPath)" --target=host -o "$(IntDir)%(Filename).obj"</Command>
<Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(IntDir)%(Filename).obj</Outputs>
<AdditionalInputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(InputPath)</AdditionalInputs>
</CustomBuild>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
10 changes: 10 additions & 0 deletions xLights/Xlights.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -2203,6 +2203,10 @@
<ClInclude Include="effects\ispc\LayerBlendingFunctions.ispc.h">
<Filter>Effects\ispc</Filter>
</ClInclude>
<ClInclude Include="effects\ispc\ButterflyFunctions.ispc.h" />
<ClInclude Include="effects\ispc\PinwheelFunctions.ispc.h" />
<ClInclude Include="effects\ispc\PlasmaFunctions.ispc.h" />
<ClInclude Include="effects\ispc\SpacialColors.ispc.h" />
</ItemGroup>
<ItemGroup>
<Filter Include="Models">
Expand Down Expand Up @@ -2262,4 +2266,10 @@
<Filter>automation</Filter>
</Text>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="effects\ispc\LayerBlendingFunctions.ispc" />
<CustomBuild Include="effects\ispc\ButterflyFunctions.ispc" />
<CustomBuild Include="effects\ispc\PinwheelFunctions.ispc" />
<CustomBuild Include="effects\ispc\PlasmaFunctions.ispc" />
</ItemGroup>
</Project>
3 changes: 0 additions & 3 deletions xLights/effects/ButterflyEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@

#include "../Parallel.h"

#ifndef __WXMSW__
#include "ispc/ButterflyFunctions.ispc.h"
#define HASISPC
#endif

ButterflyEffect::ButterflyEffect(int i) : RenderableEffect(i, "Butterfly", butterfly_16, butterfly_24, butterfly_32, butterfly_48, butterfly_64)
{
Expand Down
3 changes: 0 additions & 3 deletions xLights/effects/PinwheelEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@

#include "../Parallel.h"

#ifndef __WXMSW__
#include "ispc/PinwheelFunctions.ispc.h"
#define HASISPC
#endif

PinwheelEffect::PinwheelEffect(int id) : RenderableEffect(id, "Pinwheel", pinwheel_16, pinwheel_24, pinwheel_32, pinwheel_48, pinwheel_64)
{
Expand Down
3 changes: 0 additions & 3 deletions xLights/effects/PlasmaEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
#include "../Parallel.h"


#ifndef __WXMSW__
#include "ispc/PlasmaFunctions.ispc.h"
#define HASISPC
#endif


PlasmaEffect::PlasmaEffect(int id) : RenderableEffect(id, "Plasma", plasma_16, plasma_24, plasma_32, plasma_48, plasma_64)
Expand Down
2 changes: 0 additions & 2 deletions xLights/effects/ispc/ISPCComputeUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

ISPCComputeUtilities ISPCComputeUtilities::INSTANCE;

#ifndef __WXMSW__
#define HASISPC
#endif


#ifdef HASISPC
Expand Down

0 comments on commit 140ca50

Please sign in to comment.