summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeTest
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-03-25 18:13:07 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-03-25 18:13:07 +0000
commit4aebe8fda95216c1723eb10afb5e05fdc145d62a (patch)
tree01432d72ca6617989656739e5e14fe2b282a4909 /Tests/IncludeTest
parentAdded include tests for project Common (diff)
downloadDiligentEngine-4aebe8fda95216c1723eb10afb5e05fdc145d62a.tar.gz
DiligentEngine-4aebe8fda95216c1723eb10afb5e05fdc145d62a.zip
Added GraphicsTools project include tests
Diffstat (limited to 'Tests/IncludeTest')
-rw-r--r--Tests/IncludeTest/CMakeLists.txt4
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/BasicShaderSourceStreamFactoryH_test.cpp24
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/CommonlyUsedStatesH_test.cpp24
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/GraphicsUtilitiesH_test.cpp24
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/ShaderMacroHelperH_test.cpp24
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/TextureUploaderBaseH_test.cpp24
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D11H_test.cpp26
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D12H_test.cpp26
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/TextureUploaderGLH_test.cpp26
-rw-r--r--Tests/IncludeTest/src/GraphicsTools/TextureUploaderH_test.cpp24
10 files changed, 225 insertions, 1 deletions
diff --git a/Tests/IncludeTest/CMakeLists.txt b/Tests/IncludeTest/CMakeLists.txt
index 80370ec..ef61037 100644
--- a/Tests/IncludeTest/CMakeLists.txt
+++ b/Tests/IncludeTest/CMakeLists.txt
@@ -5,7 +5,8 @@ project(IncludeTest)
file(GLOB GRAPHICS_ENGINE_INC_TEST LIST_DIRECTORIES false src/GraphicsEngine/*.cpp)
file(GLOB PLATFORMS_INC_TEST LIST_DIRECTORIES false src/Platforms/*.cpp)
file(GLOB COMMON_INC_TEST LIST_DIRECTORIES false src/Common/*.cpp)
-add_library(IncludeTest ${GRAPHICS_ENGINE_INC_TEST} ${PLATFORMS_INC_TEST} ${COMMON_INC_TEST})
+file(GLOB GRAPHICS_TOOLS_INC_TEST LIST_DIRECTORIES false src/GraphicsTools/*.cpp)
+add_library(IncludeTest ${GRAPHICS_ENGINE_INC_TEST} ${PLATFORMS_INC_TEST} ${COMMON_INC_TEST} ${GRAPHICS_TOOLS_INC_TEST})
if(D3D11_SUPPORTED)
file(GLOB GRAPHICS_ENGINE_D3D11_INC_TEST LIST_DIRECTORIES false src/GraphicsEngineD3D11/*.cpp)
@@ -38,6 +39,7 @@ endif()
source_group("src\\GraphicsEngine" FILES ${GRAPHICS_ENGINE_INC_TEST})
source_group("src\\Platforms" FILES ${PLATFORMS_INC_TEST})
source_group("src\\Common" FILES ${COMMON_INC_TEST})
+source_group("src\\GraphicsTool" FILES ${GRAPHICS_TOOLS_INC_TEST})
set_target_properties(IncludeTest PROPERTIES
FOLDER Tests
diff --git a/Tests/IncludeTest/src/GraphicsTools/BasicShaderSourceStreamFactoryH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/BasicShaderSourceStreamFactoryH_test.cpp
new file mode 100644
index 0000000..c675247
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/BasicShaderSourceStreamFactoryH_test.cpp
@@ -0,0 +1,24 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#include "Graphics/GraphicsTools/include/BasicShaderSourceStreamFactory.h"
diff --git a/Tests/IncludeTest/src/GraphicsTools/CommonlyUsedStatesH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/CommonlyUsedStatesH_test.cpp
new file mode 100644
index 0000000..74371d4
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/CommonlyUsedStatesH_test.cpp
@@ -0,0 +1,24 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#include "Graphics/GraphicsTools/include/CommonlyUsedStates.h"
diff --git a/Tests/IncludeTest/src/GraphicsTools/GraphicsUtilitiesH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/GraphicsUtilitiesH_test.cpp
new file mode 100644
index 0000000..3a0b3f1
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/GraphicsUtilitiesH_test.cpp
@@ -0,0 +1,24 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#include "Graphics/GraphicsTools/include/GraphicsUtilities.h"
diff --git a/Tests/IncludeTest/src/GraphicsTools/ShaderMacroHelperH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/ShaderMacroHelperH_test.cpp
new file mode 100644
index 0000000..54aaf2e
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/ShaderMacroHelperH_test.cpp
@@ -0,0 +1,24 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#include "Graphics/GraphicsTools/include/ShaderMacroHelper.h"
diff --git a/Tests/IncludeTest/src/GraphicsTools/TextureUploaderBaseH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderBaseH_test.cpp
new file mode 100644
index 0000000..5d73f53
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderBaseH_test.cpp
@@ -0,0 +1,24 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#include "Graphics/GraphicsTools/include/TextureUploaderBase.h"
diff --git a/Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D11H_test.cpp b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D11H_test.cpp
new file mode 100644
index 0000000..2076150
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D11H_test.cpp
@@ -0,0 +1,26 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#if D3D11_SUPPORTED
+#include "Graphics/GraphicsTools/include/TextureUploaderD3D11.h"
+#endif
diff --git a/Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D12H_test.cpp b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D12H_test.cpp
new file mode 100644
index 0000000..b393d06
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderD3D12H_test.cpp
@@ -0,0 +1,26 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#if D3D12_SUPPORTED
+#include "Graphics/GraphicsTools/include/TextureUploaderD3D12.h"
+#endif \ No newline at end of file
diff --git a/Tests/IncludeTest/src/GraphicsTools/TextureUploaderGLH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderGLH_test.cpp
new file mode 100644
index 0000000..02b3b46
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderGLH_test.cpp
@@ -0,0 +1,26 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#if GL_SUPPORTED || GLES_SUPPORTED
+#include "Graphics/GraphicsTools/include/TextureUploaderGL.h"
+#endif \ No newline at end of file
diff --git a/Tests/IncludeTest/src/GraphicsTools/TextureUploaderH_test.cpp b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderH_test.cpp
new file mode 100644
index 0000000..ab7ffcc
--- /dev/null
+++ b/Tests/IncludeTest/src/GraphicsTools/TextureUploaderH_test.cpp
@@ -0,0 +1,24 @@
+/* Copyright 2015-2017 Egor Yusov
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF ANY PROPRIETARY RIGHTS.
+ *
+ * In no event and under no legal theory, whether in tort (including negligence),
+ * contract, or otherwise, unless required by applicable law (such as deliberate
+ * and grossly negligent acts) or agreed to in writing, shall any Contributor be
+ * liable for any damages, including any direct, indirect, special, incidental,
+ * or consequential damages of any character arising as a result of this License or
+ * out of the use or inability to use the software (including but not limited to damages
+ * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
+ * all other commercial damages or losses), even if such Contributor has been advised
+ * of the possibility of such damages.
+ */
+
+#include "Graphics/GraphicsTools/include/TextureUploader.h"