From 634f0ee85971c6c9e64f82bd3ad80c4d311d4b21 Mon Sep 17 00:00:00 2001 From: J Reece Wilson Date: Fri, 25 Sep 2020 13:04:30 +0100 Subject: [PATCH] Aurora branch changes --- DirectXTex/BC.cpp | 0 DirectXTex/BC.h | 0 DirectXTex/BC4BC5.cpp | 0 DirectXTex/BC6HBC7.cpp | 0 DirectXTex/BCDirectCompute.cpp | 0 DirectXTex/BCDirectCompute.h | 0 DirectXTex/DDS.h | 0 DirectXTex/DirectXTex.h | 0 DirectXTex/DirectXTex.inl | 0 DirectXTex/DirectXTexCompress.cpp | 15 +++- DirectXTex/DirectXTexCompressGPU.cpp | 0 DirectXTex/DirectXTexConvert.cpp | 0 DirectXTex/DirectXTexD3D11.cpp | 0 DirectXTex/DirectXTexD3D12.cpp | 0 DirectXTex/DirectXTexDDS.cpp | 0 DirectXTex/DirectXTexFlipRotate.cpp | 0 DirectXTex/DirectXTexHDR.cpp | 0 DirectXTex/DirectXTexImage.cpp | 0 DirectXTex/DirectXTexMipmaps.cpp | 0 DirectXTex/DirectXTexMisc.cpp | 0 DirectXTex/DirectXTexNormalMaps.cpp | 0 DirectXTex/DirectXTexP.h | 0 DirectXTex/DirectXTexPMAlpha.cpp | 0 DirectXTex/DirectXTexResize.cpp | 0 DirectXTex/DirectXTexTGA.cpp | 0 DirectXTex/DirectXTexUtil.cpp | 0 DirectXTex/DirectXTexWIC.cpp | 0 DirectXTex/DirectXTex_Desktop_2017.vcxproj | 0 .../DirectXTex_Desktop_2017.vcxproj.filters | 0 .../DirectXTex_Desktop_2017_Win10.vcxproj | 0 ...ectXTex_Desktop_2017_Win10.vcxproj.filters | 0 DirectXTex/DirectXTex_Desktop_2019.vcxproj | 0 .../DirectXTex_Desktop_2019.vcxproj.filters | 0 .../DirectXTex_Desktop_2019_Win10.vcxproj | 0 ...ectXTex_Desktop_2019_Win10.vcxproj.filters | 0 DirectXTex/DirectXTex_GDK_2017.vcxproj | 0 .../DirectXTex_GDK_2017.vcxproj.filters | 0 DirectXTex/DirectXTex_GDK_2019.vcxproj | 0 .../DirectXTex_GDK_2019.vcxproj.filters | 0 DirectXTex/DirectXTex_Windows10_2017.vcxproj | 0 .../DirectXTex_Windows10_2017.vcxproj.filters | 0 DirectXTex/DirectXTex_Windows10_2019.vcxproj | 0 .../DirectXTex_Windows10_2019.vcxproj.filters | 0 DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj | 0 ...DirectXTex_XboxOneXDK_2017.vcxproj.filters | 0 DirectXTex/Shaders/BC6HEncode.hlsl | 0 DirectXTex/Shaders/BC7Encode.hlsl | 0 DirectXTex/Shaders/CompileShaders.cmd | 2 + DirectXTex/d3dx12.h | 0 DirectXTex/filters.h | 0 DirectXTex/scoped.h | 0 PlatformSupport/ClangBsearch.hpp | 0 PlatformSupport/ClangCommon.hpp | 0 PlatformSupport/ClangMemCpy_s.hpp | 0 PlatformSupport/DXMemory.hpp | 0 PlatformSupport/MSVCSal.h | 0 PlatformSupport/MSVCStubs.hpp | 0 PlatformSupport/PlatformSupportPublic.hpp | 8 ++ PlatformSupport/StdFS.hpp | 0 PlatformSupport/Win32DXG.hpp | 0 PlatformSupport/Win32Errors.hpp | 0 PlatformSupport/Win32Public.hpp | 14 ++-- PlatformSupport/Win32WIC.hpp | 0 premake_helper.lua | 73 +++++++++++++++++++ 64 files changed, 102 insertions(+), 10 deletions(-) mode change 100644 => 100755 DirectXTex/BC.cpp mode change 100644 => 100755 DirectXTex/BC.h mode change 100644 => 100755 DirectXTex/BC4BC5.cpp mode change 100644 => 100755 DirectXTex/BC6HBC7.cpp mode change 100644 => 100755 DirectXTex/BCDirectCompute.cpp mode change 100644 => 100755 DirectXTex/BCDirectCompute.h mode change 100644 => 100755 DirectXTex/DDS.h mode change 100644 => 100755 DirectXTex/DirectXTex.h mode change 100644 => 100755 DirectXTex/DirectXTex.inl mode change 100644 => 100755 DirectXTex/DirectXTexCompress.cpp mode change 100644 => 100755 DirectXTex/DirectXTexCompressGPU.cpp mode change 100644 => 100755 DirectXTex/DirectXTexConvert.cpp mode change 100644 => 100755 DirectXTex/DirectXTexD3D11.cpp mode change 100644 => 100755 DirectXTex/DirectXTexD3D12.cpp mode change 100644 => 100755 DirectXTex/DirectXTexDDS.cpp mode change 100644 => 100755 DirectXTex/DirectXTexFlipRotate.cpp mode change 100644 => 100755 DirectXTex/DirectXTexHDR.cpp mode change 100644 => 100755 DirectXTex/DirectXTexImage.cpp mode change 100644 => 100755 DirectXTex/DirectXTexMipmaps.cpp mode change 100644 => 100755 DirectXTex/DirectXTexMisc.cpp mode change 100644 => 100755 DirectXTex/DirectXTexNormalMaps.cpp mode change 100644 => 100755 DirectXTex/DirectXTexP.h mode change 100644 => 100755 DirectXTex/DirectXTexPMAlpha.cpp mode change 100644 => 100755 DirectXTex/DirectXTexResize.cpp mode change 100644 => 100755 DirectXTex/DirectXTexTGA.cpp mode change 100644 => 100755 DirectXTex/DirectXTexUtil.cpp mode change 100644 => 100755 DirectXTex/DirectXTexWIC.cpp mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2017.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2017.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2017_Win10.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2017_Win10.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2019.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2019.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_GDK_2017.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_GDK_2017.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_GDK_2019.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_GDK_2019.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_Windows10_2017.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_Windows10_2017.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_Windows10_2019.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_Windows10_2019.vcxproj.filters mode change 100644 => 100755 DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj mode change 100644 => 100755 DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj.filters mode change 100644 => 100755 DirectXTex/Shaders/BC6HEncode.hlsl mode change 100644 => 100755 DirectXTex/Shaders/BC7Encode.hlsl mode change 100644 => 100755 DirectXTex/Shaders/CompileShaders.cmd mode change 100644 => 100755 DirectXTex/d3dx12.h mode change 100644 => 100755 DirectXTex/filters.h mode change 100644 => 100755 DirectXTex/scoped.h mode change 100644 => 100755 PlatformSupport/ClangBsearch.hpp mode change 100644 => 100755 PlatformSupport/ClangCommon.hpp mode change 100644 => 100755 PlatformSupport/ClangMemCpy_s.hpp mode change 100644 => 100755 PlatformSupport/DXMemory.hpp mode change 100644 => 100755 PlatformSupport/MSVCSal.h mode change 100644 => 100755 PlatformSupport/MSVCStubs.hpp create mode 100755 PlatformSupport/PlatformSupportPublic.hpp mode change 100644 => 100755 PlatformSupport/StdFS.hpp mode change 100644 => 100755 PlatformSupport/Win32DXG.hpp mode change 100644 => 100755 PlatformSupport/Win32Errors.hpp mode change 100644 => 100755 PlatformSupport/Win32Public.hpp mode change 100644 => 100755 PlatformSupport/Win32WIC.hpp create mode 100755 premake_helper.lua diff --git a/DirectXTex/BC.cpp b/DirectXTex/BC.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/BC.h b/DirectXTex/BC.h old mode 100644 new mode 100755 diff --git a/DirectXTex/BC4BC5.cpp b/DirectXTex/BC4BC5.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/BC6HBC7.cpp b/DirectXTex/BC6HBC7.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/BCDirectCompute.cpp b/DirectXTex/BCDirectCompute.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/BCDirectCompute.h b/DirectXTex/BCDirectCompute.h old mode 100644 new mode 100755 diff --git a/DirectXTex/DDS.h b/DirectXTex/DDS.h old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex.h b/DirectXTex/DirectXTex.h old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex.inl b/DirectXTex/DirectXTex.inl old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexCompress.cpp b/DirectXTex/DirectXTexCompress.cpp old mode 100644 new mode 100755 index 23aa74e..2a29ba9 --- a/DirectXTex/DirectXTexCompress.cpp +++ b/DirectXTex/DirectXTexCompress.cpp @@ -20,6 +20,13 @@ using namespace DirectX; + +#if defined(__clang__) + #define ALIGNAS(x) alignas(x) +#else + #define ALGINAS(x) __declspec(align(x)) +#endif + namespace { inline uint32_t GetBCFlags(_In_ TEX_COMPRESS_FLAGS compress) noexcept @@ -104,7 +111,7 @@ namespace if (!DetermineEncoderSettings(result.format, pfEncode, blocksize, cflags)) return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); - __declspec(align(16)) XMVECTOR temp[16]; + ALIGNAS(16) XMVECTOR temp[16]; const uint8_t *pSrc = image.pixels; const uint8_t *pEnd = image.pixels + image.slicePitch; const size_t rowPitch = image.rowPitch; @@ -263,7 +270,7 @@ namespace assert(bytesLeft > 0); size_t bytesToRead = std::min(rowPitch, size_t(bytesLeft)); - __declspec(align(16)) XMVECTOR temp[16]; + ALIGNAS(16) XMVECTOR temp[16]; if (!_LoadScanline(&temp[0], pw, pSrc, bytesToRead, format)) fail = true; @@ -441,7 +448,7 @@ namespace return HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED); } - __declspec(align(16)) XMVECTOR temp[16]; + ALIGNAS(16) XMVECTOR temp[16]; const uint8_t *pSrc = cImage.pixels; const size_t rowPitch = result.rowPitch; for (size_t h = 0; h < cImage.height; h += 4) @@ -534,7 +541,7 @@ namespace DirectX // Scan blocks for non-opaque alpha static const XMVECTORF32 threshold = { { { 0.99f, 0.99f, 0.99f, 0.99f } } }; - __declspec(align(16)) XMVECTOR temp[16]; + ALIGNAS(16) XMVECTOR temp[16]; const uint8_t *pPixels = cImage.pixels; for (size_t h = 0; h < cImage.height; h += 4) { diff --git a/DirectXTex/DirectXTexCompressGPU.cpp b/DirectXTex/DirectXTexCompressGPU.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexConvert.cpp b/DirectXTex/DirectXTexConvert.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexD3D11.cpp b/DirectXTex/DirectXTexD3D11.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexD3D12.cpp b/DirectXTex/DirectXTexD3D12.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexDDS.cpp b/DirectXTex/DirectXTexDDS.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexFlipRotate.cpp b/DirectXTex/DirectXTexFlipRotate.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexHDR.cpp b/DirectXTex/DirectXTexHDR.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexImage.cpp b/DirectXTex/DirectXTexImage.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexMipmaps.cpp b/DirectXTex/DirectXTexMipmaps.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexMisc.cpp b/DirectXTex/DirectXTexMisc.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexNormalMaps.cpp b/DirectXTex/DirectXTexNormalMaps.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexP.h b/DirectXTex/DirectXTexP.h old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexPMAlpha.cpp b/DirectXTex/DirectXTexPMAlpha.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexResize.cpp b/DirectXTex/DirectXTexResize.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexTGA.cpp b/DirectXTex/DirectXTexTGA.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexUtil.cpp b/DirectXTex/DirectXTexUtil.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTexWIC.cpp b/DirectXTex/DirectXTexWIC.cpp old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2017.vcxproj b/DirectXTex/DirectXTex_Desktop_2017.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2017.vcxproj.filters b/DirectXTex/DirectXTex_Desktop_2017.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2017_Win10.vcxproj b/DirectXTex/DirectXTex_Desktop_2017_Win10.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2017_Win10.vcxproj.filters b/DirectXTex/DirectXTex_Desktop_2017_Win10.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2019.vcxproj b/DirectXTex/DirectXTex_Desktop_2019.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2019.vcxproj.filters b/DirectXTex/DirectXTex_Desktop_2019.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj b/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj.filters b/DirectXTex/DirectXTex_Desktop_2019_Win10.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_GDK_2017.vcxproj b/DirectXTex/DirectXTex_GDK_2017.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_GDK_2017.vcxproj.filters b/DirectXTex/DirectXTex_GDK_2017.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_GDK_2019.vcxproj b/DirectXTex/DirectXTex_GDK_2019.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_GDK_2019.vcxproj.filters b/DirectXTex/DirectXTex_GDK_2019.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Windows10_2017.vcxproj b/DirectXTex/DirectXTex_Windows10_2017.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Windows10_2017.vcxproj.filters b/DirectXTex/DirectXTex_Windows10_2017.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Windows10_2019.vcxproj b/DirectXTex/DirectXTex_Windows10_2019.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_Windows10_2019.vcxproj.filters b/DirectXTex/DirectXTex_Windows10_2019.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj b/DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj old mode 100644 new mode 100755 diff --git a/DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj.filters b/DirectXTex/DirectXTex_XboxOneXDK_2017.vcxproj.filters old mode 100644 new mode 100755 diff --git a/DirectXTex/Shaders/BC6HEncode.hlsl b/DirectXTex/Shaders/BC6HEncode.hlsl old mode 100644 new mode 100755 diff --git a/DirectXTex/Shaders/BC7Encode.hlsl b/DirectXTex/Shaders/BC7Encode.hlsl old mode 100644 new mode 100755 diff --git a/DirectXTex/Shaders/CompileShaders.cmd b/DirectXTex/Shaders/CompileShaders.cmd old mode 100644 new mode 100755 index 48d7c0a..c2974ea --- a/DirectXTex/Shaders/CompileShaders.cmd +++ b/DirectXTex/Shaders/CompileShaders.cmd @@ -2,6 +2,8 @@ rem Copyright (c) Microsoft Corporation. All rights reserved. rem Licensed under the MIT License. +cp %1 + setlocal set error=0 diff --git a/DirectXTex/d3dx12.h b/DirectXTex/d3dx12.h old mode 100644 new mode 100755 diff --git a/DirectXTex/filters.h b/DirectXTex/filters.h old mode 100644 new mode 100755 diff --git a/DirectXTex/scoped.h b/DirectXTex/scoped.h old mode 100644 new mode 100755 diff --git a/PlatformSupport/ClangBsearch.hpp b/PlatformSupport/ClangBsearch.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/ClangCommon.hpp b/PlatformSupport/ClangCommon.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/ClangMemCpy_s.hpp b/PlatformSupport/ClangMemCpy_s.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/DXMemory.hpp b/PlatformSupport/DXMemory.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/MSVCSal.h b/PlatformSupport/MSVCSal.h old mode 100644 new mode 100755 diff --git a/PlatformSupport/MSVCStubs.hpp b/PlatformSupport/MSVCStubs.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/PlatformSupportPublic.hpp b/PlatformSupport/PlatformSupportPublic.hpp new file mode 100755 index 0000000..c89eeaa --- /dev/null +++ b/PlatformSupport/PlatformSupportPublic.hpp @@ -0,0 +1,8 @@ +#pragma once + +#if defined(_DXTX_NOWIN) + + #include "Win32Public.hpp" + #include "MSVCStubs.hpp" + +#endif \ No newline at end of file diff --git a/PlatformSupport/StdFS.hpp b/PlatformSupport/StdFS.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/Win32DXG.hpp b/PlatformSupport/Win32DXG.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/Win32Errors.hpp b/PlatformSupport/Win32Errors.hpp old mode 100644 new mode 100755 diff --git a/PlatformSupport/Win32Public.hpp b/PlatformSupport/Win32Public.hpp old mode 100644 new mode 100755 index c53971e..02bcf98 --- a/PlatformSupport/Win32Public.hpp +++ b/PlatformSupport/Win32Public.hpp @@ -14,13 +14,15 @@ #define __cdecl #endif +#include + #if defined(_DXTX_NOWIN) - using LONG = size_t; - using HANDLE = size_t; - using WORD = int16_t; - using DWORD = uint32_t; - using UINT = uint32_t; - using INT = int32_t; + using LONG = std::size_t; + using HANDLE = std::size_t; + using WORD = std::int16_t; + using DWORD = std::uint32_t; + using UINT = std::uint32_t; + using INT = std::int32_t; #include "Win32DXG.hpp" #include "Win32Errors.hpp" diff --git a/PlatformSupport/Win32WIC.hpp b/PlatformSupport/Win32WIC.hpp old mode 100644 new mode 100755 diff --git a/premake_helper.lua b/premake_helper.lua new file mode 100755 index 0000000..de3dd35 --- /dev/null +++ b/premake_helper.lua @@ -0,0 +1,73 @@ +function genProject(path) + + local projectFiles = { + path .. "/DirectXTex/BC.h", + path .. "/DirectXTex/BCDirectCompute.h", + path .. "/DirectXTex/DDS.h", + path .. "/DirectXTex/DirectXTex.h", + path .. "/DirectXTex/DirectXTexP.h", + path .. "/DirectXTex/filters.h", + path .. "/DirectXTex/scoped.h", + + path .. "/DirectXTex/BC.cpp", + path .. "/DirectXTex/BC4BC5.cpp", + path .. "/DirectXTex/BC6HBC7.cpp", + + path .. "/DirectXTex/DirectXTexConvert.cpp", + path .. "/DirectXTex/DirectXTexDDS.cpp", + path .. "/DirectXTex/DirectXTexFlipRotate.cpp", + path .. "/DirectXTex/DirectXTexHDR.cpp", + path .. "/DirectXTex/DirectXTexImage.cpp", + path .. "/DirectXTex/DirectXTexMipmaps.cpp", + path .. "/DirectXTex/DirectXTexMisc.cpp", + path .. "/DirectXTex/DirectXTexNormalMaps.cpp", + path .. "/DirectXTex/DirectXTexPMAlpha.cpp", + path .. "/DirectXTex/DirectXTexResize.cpp", + path .. "/DirectXTex/DirectXTexTGA.cpp", + path .. "/DirectXTex/DirectXTexUtil.cpp" + } + + + if (_G.win32) then + table.insert(projectFiles, path .. "/DirectXTex/DirectXTexCompressGPU.cpp") + table.insert(projectFiles, path .. "/DirectXTex/BCDirectCompute.cpp") + table.insert(projectFiles, path .. "/DirectXTex/DirectXTexWIC.cpp") + -- TODO: if d3d11 + table.insert(projectFiles, path .. "/DirectXTex/DirectXTexD3D12.cpp") + table.insert(projectFiles, path .. "/DirectXTex/d3dx12.h") + else + table.insert(projectFiles, path .. "/DirectXTex/DirectXTexCompress.cpp") + end + + local cmd = "\"" .. path .. "\\DirectXTex\\Shaders\\CompileShaders.cmd\" " .. "\"" .. path .. "\\DirectXTex\\Shaders"; + print("fxc compile script", cmd) + + if (_G.win32) then + buildcommands { cmd } + end + + defines + { + "_WIN32_WINNT=0x0A00", + + } + + if (not _G.win32) then + defines {"_DXTX_NOWIN"} + end + + files + { + projectFiles + } + + includedirs + { + path .. "/DirectXTex", + path .. "/DirectXMath", + path .. "/PlatformSupport" + } + +end + +return genProject