summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/include
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-12 22:41:17 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-12 22:41:17 +0000
commit80bfa52139976bd51b43c58e9576d379fe9f8a14 (patch)
tree3d7663ef18296eb5cc6de7fedeb8a1fc1e4d372f /Tests/TestApp/include
parentUpdated core & tools. Fixed https://github.com/DiligentGraphics/DiligentEngin... (diff)
downloadDiligentEngine-80bfa52139976bd51b43c58e9576d379fe9f8a14.tar.gz
DiligentEngine-80bfa52139976bd51b43c58e9576d379fe9f8a14.zip
Updated submodules (added unit tests). Reworked TestApp
Diffstat (limited to 'Tests/TestApp/include')
-rw-r--r--Tests/TestApp/include/MTResourceCreationTest.h59
-rw-r--r--Tests/TestApp/include/ShaderConverterTest.h32
-rw-r--r--Tests/TestApp/include/TestApp.h6
-rw-r--r--Tests/TestApp/include/TestBlendState.h37
-rw-r--r--Tests/TestApp/include/TestBrokenShader.h33
-rw-r--r--Tests/TestApp/include/TestBufferCreation.h32
-rw-r--r--Tests/TestApp/include/TestCreateObjFromNativeRes.h48
-rw-r--r--Tests/TestApp/include/TestCreateObjFromNativeResD3D11.h39
-rw-r--r--Tests/TestApp/include/TestCreateObjFromNativeResD3D12.h39
-rw-r--r--Tests/TestApp/include/TestCreateObjFromNativeResGL.h40
-rw-r--r--Tests/TestApp/include/TestCreateObjFromNativeResVK.h40
-rw-r--r--Tests/TestApp/include/TestDepthStencilState.h36
-rw-r--r--Tests/TestApp/include/TestMipMapsGeneration.h32
-rw-r--r--Tests/TestApp/include/TestPSOCompatibility.h37
-rw-r--r--Tests/TestApp/include/TestPipelineStateBase.h39
-rw-r--r--Tests/TestApp/include/TestRasterizerState.h36
-rw-r--r--Tests/TestApp/include/TestSamplerCreation.h36
-rw-r--r--Tests/TestApp/include/TestSeparateTextureSampler.h33
-rw-r--r--Tests/TestApp/include/TestShaderResArrays.h42
-rw-r--r--Tests/TestApp/include/TestShaderResourceLayout.h35
-rw-r--r--Tests/TestApp/include/TestShaderVarAccess.h35
-rw-r--r--Tests/TestApp/include/TestTextureCreation.h42
22 files changed, 0 insertions, 808 deletions
diff --git a/Tests/TestApp/include/MTResourceCreationTest.h b/Tests/TestApp/include/MTResourceCreationTest.h
deleted file mode 100644
index 9dcc419..0000000
--- a/Tests/TestApp/include/MTResourceCreationTest.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include <thread>
-#include <mutex>
-#include <atomic>
-#include <condition_variable>
-
-#include "UnitTestBase.h"
-
-class MTResourceCreationTest : public UnitTestBase
-{
-public:
- MTResourceCreationTest(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext, Diligent::Uint32 NumThreads);
- void StartThreads();
- void StopThreads();
-
-private:
- void ThreadWorkerFunc(bool bIsMasterThread);
- void WaitForThreadStart(int VarId);
- void StartThreads(int VarId);
- void WaitThreads(int VarId);
-
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pContext;
- std::vector<std::thread> m_Threads;
- volatile bool m_bStopThreadsFlag = false;
- volatile bool m_bStopThreadsFlagInternal = false;
-
- std::mutex m_Mtx;
- std::condition_variable m_CondVar;
- bool m_bReleaseThread[2] = {false, false};
- std::atomic<int> m_NumThreadsCompleted;
- std::atomic<int> m_NumBuffersCreated;
- std::atomic<int> m_NumTexturesCreated;
- std::atomic<int> m_NumPSOCreated;
-};
diff --git a/Tests/TestApp/include/ShaderConverterTest.h b/Tests/TestApp/include/ShaderConverterTest.h
deleted file mode 100644
index a151b9d..0000000
--- a/Tests/TestApp/include/ShaderConverterTest.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class ShaderConverterTest : public UnitTestBase
-{
-public:
- ShaderConverterTest( Diligent::IRenderDevice *pRenderDevice, Diligent::IDeviceContext *pContext );
-};
diff --git a/Tests/TestApp/include/TestApp.h b/Tests/TestApp/include/TestApp.h
index 6380f65..5d1cb59 100644
--- a/Tests/TestApp/include/TestApp.h
+++ b/Tests/TestApp/include/TestApp.h
@@ -33,15 +33,11 @@
#include "TestDrawCommands.h"
#include "TestBufferAccess.h"
-#include "TestTextureCreation.h"
-#include "TestSamplerCreation.h"
#include "TestTexturing.h"
#include "ScriptParser.h"
#include "TestComputeShaders.h"
#include "Timer.h"
#include "TestRenderTarget.h"
-#include "MTResourceCreationTest.h"
-#include "TestShaderResArrays.h"
#include "TestGeometryShader.h"
#include "TestTessellation.h"
@@ -81,8 +77,6 @@ protected:
std::unique_ptr<TestTexturing> m_pTestTexturing[16];
std::unique_ptr<TestComputeShaders> m_pTestCS;
std::unique_ptr<TestRenderTarget> m_pTestRT;
- std::unique_ptr<MTResourceCreationTest> m_pMTResCreationTest;
- std::unique_ptr<TestShaderResArrays> m_pTestShaderResArrays;
TestGeometryShader m_TestGS;
TestTessellation m_TestTessellation;
diff --git a/Tests/TestApp/include/TestBlendState.h b/Tests/TestApp/include/TestBlendState.h
deleted file mode 100644
index d67703a..0000000
--- a/Tests/TestApp/include/TestBlendState.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestPipelineStateBase.h"
-#include "UnitTestBase.h"
-
-class TestBlendState : public TestPipelineStateBase
-{
-public:
- TestBlendState( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext );
-
-private:
- void CreateTestBS( Diligent::BlendStateDesc &RSDesc );
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/TestBrokenShader.h b/Tests/TestApp/include/TestBrokenShader.h
deleted file mode 100644
index 49c9ec8..0000000
--- a/Tests/TestApp/include/TestBrokenShader.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestBrokenShader : public UnitTestBase
-{
-public:
- TestBrokenShader(Diligent::IRenderDevice *pDevice);
-
-};
diff --git a/Tests/TestApp/include/TestBufferCreation.h b/Tests/TestApp/include/TestBufferCreation.h
deleted file mode 100644
index 2127d8b..0000000
--- a/Tests/TestApp/include/TestBufferCreation.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestBufferCreation : public UnitTestBase
-{
-public:
- TestBufferCreation(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext);
-};
diff --git a/Tests/TestApp/include/TestCreateObjFromNativeRes.h b/Tests/TestApp/include/TestCreateObjFromNativeRes.h
deleted file mode 100644
index 9b8138e..0000000
--- a/Tests/TestApp/include/TestCreateObjFromNativeRes.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestCreateObjFromNativeRes : public UnitTestBase
-{
-public:
- TestCreateObjFromNativeRes() : UnitTestBase("Object initialization from native resource handle test") {}
- virtual ~TestCreateObjFromNativeRes()
- {
- if(m_NumTexturesCreated != 0 || m_NumBuffersCreated != 0 )
- {
- std::stringstream infoss;
- infoss << "Textures crated: " << m_NumTexturesCreated <<" Buffers created: " << m_NumBuffersCreated;
- SetStatus(TestResult::Succeeded, infoss.str().c_str());
- }
- else
- SetStatus(TestResult::Skipped);
- }
- virtual void CreateTexture(Diligent::ITexture *pTexture) = 0;
- virtual void CreateBuffer(Diligent::IBuffer *pBuffer) = 0;
-protected:
- int m_NumTexturesCreated = 0;
- int m_NumBuffersCreated = 0;
-};
diff --git a/Tests/TestApp/include/TestCreateObjFromNativeResD3D11.h b/Tests/TestApp/include/TestCreateObjFromNativeResD3D11.h
deleted file mode 100644
index 1890220..0000000
--- a/Tests/TestApp/include/TestCreateObjFromNativeResD3D11.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestCreateObjFromNativeRes.h"
-class TestCreateObjFromNativeResD3D11 : public TestCreateObjFromNativeRes
-{
-public:
- TestCreateObjFromNativeResD3D11(Diligent::IRenderDevice *pDevice) :
- m_pDevice(pDevice)
- {}
-
- virtual void CreateTexture(Diligent::ITexture *pTexture)override final;
- virtual void CreateBuffer(Diligent::IBuffer *pBuffer)override final;
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
-};
diff --git a/Tests/TestApp/include/TestCreateObjFromNativeResD3D12.h b/Tests/TestApp/include/TestCreateObjFromNativeResD3D12.h
deleted file mode 100644
index 0284bd9..0000000
--- a/Tests/TestApp/include/TestCreateObjFromNativeResD3D12.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestCreateObjFromNativeRes.h"
-class TestCreateObjFromNativeResD3D12 : public TestCreateObjFromNativeRes
-{
-public:
- TestCreateObjFromNativeResD3D12(Diligent::IRenderDevice *pDevice) :
- m_pDevice(pDevice)
- {}
-
- virtual void CreateTexture(Diligent::ITexture *pTexture)override final;
- virtual void CreateBuffer(Diligent::IBuffer *pBuffer)override final;
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
-};
diff --git a/Tests/TestApp/include/TestCreateObjFromNativeResGL.h b/Tests/TestApp/include/TestCreateObjFromNativeResGL.h
deleted file mode 100644
index 22ce901..0000000
--- a/Tests/TestApp/include/TestCreateObjFromNativeResGL.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestCreateObjFromNativeRes.h"
-
-class TestCreateObjFromNativeResGL : public TestCreateObjFromNativeRes
-{
-public:
- TestCreateObjFromNativeResGL(Diligent::IRenderDevice *pDevice) :
- m_pDevice(pDevice)
- {}
-
- virtual void CreateTexture(Diligent::ITexture *pTexture)override final;
- virtual void CreateBuffer(Diligent::IBuffer *pBuffer)override final;
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
-};
diff --git a/Tests/TestApp/include/TestCreateObjFromNativeResVK.h b/Tests/TestApp/include/TestCreateObjFromNativeResVK.h
deleted file mode 100644
index 434b2ee..0000000
--- a/Tests/TestApp/include/TestCreateObjFromNativeResVK.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestCreateObjFromNativeRes.h"
-
-class TestCreateObjFromNativeResVK : public TestCreateObjFromNativeRes
-{
-public:
- TestCreateObjFromNativeResVK(Diligent::IRenderDevice *pDevice) :
- m_pDevice(pDevice)
- {}
-
- virtual void CreateTexture(Diligent::ITexture *pTexture)override final;
- virtual void CreateBuffer(Diligent::IBuffer *pBuffer)override final;
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
-};
diff --git a/Tests/TestApp/include/TestDepthStencilState.h b/Tests/TestApp/include/TestDepthStencilState.h
deleted file mode 100644
index bb17669..0000000
--- a/Tests/TestApp/include/TestDepthStencilState.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestPipelineStateBase.h"
-
-class TestDepthStencilState : public TestPipelineStateBase
-{
-public:
- TestDepthStencilState( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext );
-
-private:
- void CreateTestDSS( Diligent::DepthStencilStateDesc &DSSDesc );
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/TestMipMapsGeneration.h b/Tests/TestApp/include/TestMipMapsGeneration.h
deleted file mode 100644
index a9c93ac..0000000
--- a/Tests/TestApp/include/TestMipMapsGeneration.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestMipMapsGeneration : public UnitTestBase
-{
-public:
- TestMipMapsGeneration(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext);
-};
diff --git a/Tests/TestApp/include/TestPSOCompatibility.h b/Tests/TestApp/include/TestPSOCompatibility.h
deleted file mode 100644
index dee5051..0000000
--- a/Tests/TestApp/include/TestPSOCompatibility.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestPSOCompatibility : public UnitTestBase
-{
-public:
- TestPSOCompatibility( Diligent::IRenderDevice *pDevice );
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> CreateTestPSO(const char *VSSource, const char *PSSource);
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> CreateTestPSO(const char *CSSource);
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
-};
diff --git a/Tests/TestApp/include/TestPipelineStateBase.h b/Tests/TestApp/include/TestPipelineStateBase.h
deleted file mode 100644
index c5fca52..0000000
--- a/Tests/TestApp/include/TestPipelineStateBase.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestPipelineStateBase : public UnitTestBase
-{
-public:
- TestPipelineStateBase( Diligent::IRenderDevice *pDevice, const char *TestName );
-
-protected:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
- Diligent::RefCntAutoPtr<Diligent::IShader> m_pTrivialVS;
- Diligent::RefCntAutoPtr<Diligent::IShader> m_pTrivialPS;
-
- Diligent::PipelineStateDesc m_PSODesc;
-};
diff --git a/Tests/TestApp/include/TestRasterizerState.h b/Tests/TestApp/include/TestRasterizerState.h
deleted file mode 100644
index 12a4560..0000000
--- a/Tests/TestApp/include/TestRasterizerState.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "TestPipelineStateBase.h"
-
-class TestRasterizerState : public TestPipelineStateBase
-{
-public:
- TestRasterizerState( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext );
-
-private:
- void CreateTestRS();
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/TestSamplerCreation.h b/Tests/TestApp/include/TestSamplerCreation.h
deleted file mode 100644
index 3472edc..0000000
--- a/Tests/TestApp/include/TestSamplerCreation.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestSamplerCreation : public UnitTestBase
-{
-public:
- TestSamplerCreation(Diligent::IRenderDevice *pDevice);
-
-private:
- //void CreateSamplerTexture(RESOURCE_DIMENSION Type, Uint32 BindFlags, Uint32 SampleCount);
- Diligent::IRenderDevice *m_pDevice;
-};
diff --git a/Tests/TestApp/include/TestSeparateTextureSampler.h b/Tests/TestApp/include/TestSeparateTextureSampler.h
deleted file mode 100644
index f1b361a..0000000
--- a/Tests/TestApp/include/TestSeparateTextureSampler.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestSeparateTextureSampler : public UnitTestBase
-{
-public:
- TestSeparateTextureSampler( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext );
-
-};
diff --git a/Tests/TestApp/include/TestShaderResArrays.h b/Tests/TestApp/include/TestShaderResArrays.h
deleted file mode 100644
index 49459e8..0000000
--- a/Tests/TestApp/include/TestShaderResArrays.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestShaderResArrays : public UnitTestBase
-{
-public:
- TestShaderResArrays(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent);
-
- void Draw();
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pRenderDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> m_pPSO;
- Diligent::RefCntAutoPtr<Diligent::IShaderResourceBinding> m_pSRB;
- Diligent::RefCntAutoPtr<Diligent::IBuffer> m_pVertexBuff;
- Diligent::RefCntAutoPtr<Diligent::ITexture> m_pTextures[8];
-};
diff --git a/Tests/TestApp/include/TestShaderResourceLayout.h b/Tests/TestApp/include/TestShaderResourceLayout.h
deleted file mode 100644
index 9c50a06..0000000
--- a/Tests/TestApp/include/TestShaderResourceLayout.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestShaderResourceLayout : public UnitTestBase
-{
-public:
- TestShaderResourceLayout( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext );
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/TestShaderVarAccess.h b/Tests/TestApp/include/TestShaderVarAccess.h
deleted file mode 100644
index 276558a..0000000
--- a/Tests/TestApp/include/TestShaderVarAccess.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-class TestShaderVarAccess : public UnitTestBase
-{
-public:
- TestShaderVarAccess( Diligent::IRenderDevice* pDevice, Diligent::IDeviceContext* pContext, Diligent::ISwapChain* pSwapChain );
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/TestTextureCreation.h b/Tests/TestApp/include/TestTextureCreation.h
deleted file mode 100644
index 96c3ba3..0000000
--- a/Tests/TestApp/include/TestTextureCreation.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Copyright 2019 Diligent Graphics LLC
- *
- * 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.
- */
-
-#pragma once
-
-#include "UnitTestBase.h"
-
-const bool bIsGL43 = false;
-
-class TestTextureCreation : public UnitTestBase
-{
-public:
- TestTextureCreation(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext);
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
- void TestTextureFormatAttribs();
- void CheckFormatSize( Diligent::TEXTURE_FORMAT *begin, Diligent::TEXTURE_FORMAT *end, Diligent::Uint32 RefSize );
- void CheckNumComponents( Diligent::TEXTURE_FORMAT *begin, Diligent::TEXTURE_FORMAT *end, Diligent::Uint32 RefComponents );
- void CheckComponentType( Diligent::TEXTURE_FORMAT *begin, Diligent::TEXTURE_FORMAT *end, Diligent::COMPONENT_TYPE RefType );
-
- int m_NumFormatsTested = 0;
-};