mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 21:20:07 -05:00
06/11/2017
--Code changes -Make the OS-specific stylesheets part of the installer.
This commit is contained in:
parent
c4e891b18c
commit
f66a278c73
@ -73,7 +73,18 @@ $$ASSETS_DIR/tatasz_pack_03.gradient
|
|||||||
INSTALLS += palettes
|
INSTALLS += palettes
|
||||||
|
|
||||||
themes.path = $$SHARE_INSTALL_DIR
|
themes.path = $$SHARE_INSTALL_DIR
|
||||||
themes.files = $$ASSETS_DIR/dark.qss
|
win32 {
|
||||||
|
themes.files = $$ASSETS_DIR/dark_windows.qss
|
||||||
|
}
|
||||||
|
|
||||||
|
macx {
|
||||||
|
themes.files = $$ASSETS_DIR/dark_mac.qss
|
||||||
|
}
|
||||||
|
|
||||||
|
unix:!macx {
|
||||||
|
themes.files = $$ASSETS_DIR/dark_linux.qss
|
||||||
|
}
|
||||||
|
|
||||||
#message(THEMES INSTALL SOURCE: $$themes.files)
|
#message(THEMES INSTALL SOURCE: $$themes.files)
|
||||||
INSTALLS += themes
|
INSTALLS += themes
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
using namespace EmberNs;
|
using namespace EmberNs;
|
||||||
using namespace EmberCommon;
|
using namespace EmberCommon;
|
||||||
|
|
||||||
|
//#define DO_NVIDIA 1
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void SaveFinalImage(Renderer<T, T>& renderer, vector<byte>& pixels, char* suffix)
|
void SaveFinalImage(Renderer<T, T>& renderer, vector<byte>& pixels, char* suffix)
|
||||||
{
|
{
|
||||||
@ -1463,14 +1465,14 @@ bool TestAllVarsCLBuild(size_t platform, size_t device, bool printSuccess = true
|
|||||||
{
|
{
|
||||||
renderer.SetEmber(it);
|
renderer.SetEmber(it);
|
||||||
|
|
||||||
if (platform != 0 &&
|
//if (platform != 0 &&
|
||||||
((it.GetXform(0)->GetVariationById(eVariationId::VAR_SYNTH) != nullptr) ||//Nvidia OpenCL driver crashes when building too many synths.
|
// ((it.GetXform(0)->GetVariationById(eVariationId::VAR_SYNTH) != nullptr) ||//Nvidia OpenCL driver crashes when building too many synths.
|
||||||
(it.GetXform(0)->GetVariationById(eVariationId::VAR_PRE_SYNTH) != nullptr) ||
|
// (it.GetXform(0)->GetVariationById(eVariationId::VAR_PRE_SYNTH) != nullptr) ||
|
||||||
(it.GetXform(0)->GetVariationById(eVariationId::VAR_POST_SYNTH) != nullptr)))
|
// (it.GetXform(0)->GetVariationById(eVariationId::VAR_POST_SYNTH) != nullptr)))
|
||||||
{
|
//{
|
||||||
cout << "Skipping synth.\n";
|
// cout << "Skipping synth.\n";
|
||||||
continue;
|
// continue;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (renderer.BuildIterProgramForEmber())
|
if (renderer.BuildIterProgramForEmber())
|
||||||
{
|
{
|
||||||
@ -1952,8 +1954,6 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define DO_NVIDIA 1
|
|
||||||
|
|
||||||
int _tmain(int argc, _TCHAR* argv[])
|
int _tmain(int argc, _TCHAR* argv[])
|
||||||
{
|
{
|
||||||
//int i;
|
//int i;
|
||||||
@ -2193,28 +2193,28 @@ int _tmain(int argc, _TCHAR* argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//#ifdef DO_DOUBLE
|
#ifdef DO_DOUBLE
|
||||||
//
|
|
||||||
// //t.Tic();
|
//t.Tic();
|
||||||
// //TestCpuGpuResults<double>();
|
//TestCpuGpuResults<double>();
|
||||||
// //t.Toc("TestCpuGpuResults<double>()");
|
//t.Toc("TestCpuGpuResults<double>()");
|
||||||
// if (b)
|
if (b)
|
||||||
// {
|
{
|
||||||
// t.Tic();
|
t.Tic();
|
||||||
// TestAllVarsCLBuild<double>(0, 0, true);
|
b = TestAllVarsCLBuild<double>(0, 0, true);
|
||||||
// t.Toc("TestAllVarsCLBuild<double>()");
|
t.Toc("TestAllVarsCLBuild<double>()");
|
||||||
//
|
|
||||||
// if (b)
|
if (b)
|
||||||
// {
|
{
|
||||||
//#ifdef DO_NVIDIA
|
#ifdef DO_NVIDIA
|
||||||
// t.Tic();
|
t.Tic();
|
||||||
// TestAllVarsCLBuild<double>(1, 0, true);
|
TestAllVarsCLBuild<double>(1, 0, true);
|
||||||
// t.Toc("TestAllVarsCLBuild<double>()");
|
t.Toc("TestAllVarsCLBuild<double>()");
|
||||||
//#endif
|
#endif
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
//#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
//PrintAllVars();
|
//PrintAllVars();
|
||||||
//_CrtDumpMemoryLeaks();
|
//_CrtDumpMemoryLeaks();
|
||||||
|
Loading…
Reference in New Issue
Block a user