summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/include
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TestApp/include')
-rw-r--r--Tests/TestApp/include/TestApp.h90
-rw-r--r--Tests/TestApp/include/TestBufferAccess.h49
-rw-r--r--Tests/TestApp/include/TestComputeShaders.h39
-rw-r--r--Tests/TestApp/include/TestCopyTexData.h39
-rw-r--r--Tests/TestApp/include/TestDrawCommands.h48
-rw-r--r--Tests/TestApp/include/TestGeometryShader.h39
-rw-r--r--Tests/TestApp/include/TestRenderTarget.h40
-rw-r--r--Tests/TestApp/include/TestTessellation.h38
-rw-r--r--Tests/TestApp/include/TestTexturing.h51
-rw-r--r--Tests/TestApp/include/TestVPAndSR.h36
-rw-r--r--Tests/TestApp/include/UnitTestBase.h54
-rw-r--r--Tests/TestApp/include/pch.h48
12 files changed, 0 insertions, 571 deletions
diff --git a/Tests/TestApp/include/TestApp.h b/Tests/TestApp/include/TestApp.h
deleted file mode 100644
index b866b40..0000000
--- a/Tests/TestApp/include/TestApp.h
+++ /dev/null
@@ -1,90 +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 <vector>
-
-#include "NativeAppBase.h"
-#include "RefCntAutoPtr.h"
-#include "RenderDevice.h"
-#include "DeviceContext.h"
-#include "SwapChain.h"
-
-#include "TestDrawCommands.h"
-#include "TestBufferAccess.h"
-#include "TestTexturing.h"
-#include "TestComputeShaders.h"
-#include "Timer.h"
-#include "TestRenderTarget.h"
-#include "TestGeometryShader.h"
-#include "TestTessellation.h"
-
-namespace Diligent
-{
-
-class TestApp : public NativeAppBase
-{
-public:
- TestApp();
- ~TestApp();
- virtual void ProcessCommandLine(const char *CmdLine)override final;
- virtual const char* GetAppTitle()const override final { return m_AppTitle.c_str(); }
- virtual void Update(double CurrTime, double ElapsedTime)override final;
- virtual void WindowResize(int width, int height)override final;
- virtual void Render()override;
- virtual void Present()override;
-
-protected:
- void InitializeDiligentEngine(
-#if PLATFORM_LINUX
- void *display,
-#endif
- void *NativeWindowHandle
- );
- void InitializeRenderers();
-
- DeviceType m_DeviceType = DeviceType::Undefined;
- RefCntAutoPtr<IRenderDevice> m_pDevice;
- RefCntAutoPtr<IDeviceContext> m_pImmediateContext;
- std::vector<RefCntAutoPtr<IDeviceContext> > m_pDeferredContexts;
- RefCntAutoPtr<ISwapChain> m_pSwapChain;
- std::string m_AppTitle;
-
- std::unique_ptr<TestDrawCommands> m_pTestDrawCommands;
- std::unique_ptr<TestBufferAccess> m_pTestBufferAccess;
- std::unique_ptr<TestTexturing> m_pTestTexturing[16];
- std::unique_ptr<TestComputeShaders> m_pTestCS;
- std::unique_ptr<TestRenderTarget> m_pTestRT;
- TestGeometryShader m_TestGS;
- TestTessellation m_TestTessellation;
-
- RefCntAutoPtr<IBuffer> m_pUniformBuff2, m_pUniformBuff3, m_pUniformBuff4;
- RefCntAutoPtr<ITexture> m_pTestTex;
- RefCntAutoPtr<IFence> m_pFence;
- Uint64 m_NextFenceValue = 1;
-
- double m_CurrTime = 0;
-};
-
-}
diff --git a/Tests/TestApp/include/TestBufferAccess.h b/Tests/TestApp/include/TestBufferAccess.h
deleted file mode 100644
index 2fb27e1..0000000
--- a/Tests/TestApp/include/TestBufferAccess.h
+++ /dev/null
@@ -1,49 +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 TestBufferAccess : public UnitTestBase
-{
-public:
- static const int TriGridSize = 16;
- TestBufferAccess();
-
- void Init( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext, Diligent::ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent );
- void Draw(float fTime);
-
-private:
- void Define2DVertex(std::vector<float> &VertexData, float fX, float fY, float fR, float fG, float fB);
-
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pRenderDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-
- static const int NumRows = 5;
- static const int NumInstances = 3;
-
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> m_pPSO;
- Diligent::RefCntAutoPtr<Diligent::IBuffer> m_pVertexBuff, m_pInstBuff[7];
- float m_fXExtent, m_fYExtent;
-};
diff --git a/Tests/TestApp/include/TestComputeShaders.h b/Tests/TestApp/include/TestComputeShaders.h
deleted file mode 100644
index 756cf55..0000000
--- a/Tests/TestApp/include/TestComputeShaders.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 TestComputeShaders : public UnitTestBase
-{
-public:
- TestComputeShaders();
-
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext, Diligent::ISwapChain *pSwapChain);
- void Draw();
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pRenderDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/TestCopyTexData.h b/Tests/TestApp/include/TestCopyTexData.h
deleted file mode 100644
index 949132f..0000000
--- a/Tests/TestApp/include/TestCopyTexData.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 TestCopyTexData : public UnitTestBase
-{
-public:
- TestCopyTexData(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext);
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pContext;
- void Test2DTexture( Diligent::TEXTURE_FORMAT Format );
- void Test2DTexArray( Diligent::TEXTURE_FORMAT Format );
- void Test3DTexture( Diligent::TEXTURE_FORMAT Format );
-};
diff --git a/Tests/TestApp/include/TestDrawCommands.h b/Tests/TestApp/include/TestDrawCommands.h
deleted file mode 100644
index 83aa099..0000000
--- a/Tests/TestApp/include/TestDrawCommands.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 TestDrawCommands : public UnitTestBase
-{
-public:
- TestDrawCommands() : UnitTestBase("Draw commands test"){}
-
- static const int TriGridSize = 16;
-
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent);
- void Draw();
-
-private:
- void Define2DVertex(std::vector<float> &VertexData, float fX, float fY, float fR, float fG, float fB);
-
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pRenderDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> m_pPSO, m_pPSO_2xStride, m_pPSOInst;
- Diligent::RefCntAutoPtr<Diligent::IBuffer> m_pVertexBuff, m_pVertexBuff2, m_pIndexBuff, m_pInstanceData, m_pIndirectDrawArgs, m_pIndexedIndirectDrawArgs;
- Diligent::RefCntAutoPtr<Diligent::IResourceMapping> m_pResMapping;
- Diligent::RefCntAutoPtr<Diligent::IShaderResourceBinding> m_pSRB, m_pSRBInst;
-};
diff --git a/Tests/TestApp/include/TestGeometryShader.h b/Tests/TestApp/include/TestGeometryShader.h
deleted file mode 100644
index 229fa6b..0000000
--- a/Tests/TestApp/include/TestGeometryShader.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 TestGeometryShader : public UnitTestBase
-{
-public:
- TestGeometryShader() : UnitTestBase("Test Geometry Shaders"){}
-
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain);
- void Draw();
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> m_pPSO;
-};
diff --git a/Tests/TestApp/include/TestRenderTarget.h b/Tests/TestApp/include/TestRenderTarget.h
deleted file mode 100644
index 0468f00..0000000
--- a/Tests/TestApp/include/TestRenderTarget.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 "UnitTestBase.h"
-
-class TestRenderTarget : public UnitTestBase
-{
-public:
- TestRenderTarget();
-
- void Init(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;
-};
diff --git a/Tests/TestApp/include/TestTessellation.h b/Tests/TestApp/include/TestTessellation.h
deleted file mode 100644
index b3e135d..0000000
--- a/Tests/TestApp/include/TestTessellation.h
+++ /dev/null
@@ -1,38 +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 TestTessellation : public UnitTestBase
-{
-public:
- TestTessellation() : UnitTestBase("Tessellation test") {}
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain);
- void Draw();
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
- Diligent::RefCntAutoPtr<Diligent::IPipelineState> m_pQuadPSO, m_pTriPSO;
-};
diff --git a/Tests/TestApp/include/TestTexturing.h b/Tests/TestApp/include/TestTexturing.h
deleted file mode 100644
index c4e6500..0000000
--- a/Tests/TestApp/include/TestTexturing.h
+++ /dev/null
@@ -1,51 +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 TestTexturing : public UnitTestBase
-{
-public:
- TestTexturing();
-
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain, Diligent::TEXTURE_FORMAT TexFormat, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent);
- void Draw();
- static void GenerateTextureData(Diligent::IRenderDevice *pRenderDevice, std::vector<Diligent::Uint8> &Data, std::vector<Diligent::TextureSubResData> &SubResouces, const Diligent::TextureDesc &TexDesc, const float *ColorOffset = nullptr);
-
-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::ISampler> m_pSampler;
- Diligent::RefCntAutoPtr<Diligent::ITexture> m_pTexture;
- Diligent::RefCntAutoPtr<Diligent::IResourceMapping> m_pResourceMapping;
- const Diligent::Uint32 m_iTestTexWidth;
- const Diligent::Uint32 m_iTestTexHeight;
- const Diligent::Uint32 m_iMipLevels;
- Diligent::TEXTURE_FORMAT m_TextureFormat;
-};
diff --git a/Tests/TestApp/include/TestVPAndSR.h b/Tests/TestApp/include/TestVPAndSR.h
deleted file mode 100644
index 36f038f..0000000
--- a/Tests/TestApp/include/TestVPAndSR.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 TestVPAndSR : public UnitTestBase
-{
-public:
- TestVPAndSR(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext);
-
-private:
- Diligent::RefCntAutoPtr<Diligent::IRenderDevice> m_pRenderDevice;
- Diligent::RefCntAutoPtr<Diligent::IDeviceContext> m_pDeviceContext;
-};
diff --git a/Tests/TestApp/include/UnitTestBase.h b/Tests/TestApp/include/UnitTestBase.h
deleted file mode 100644
index 8a0ed7d..0000000
--- a/Tests/TestApp/include/UnitTestBase.h
+++ /dev/null
@@ -1,54 +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 <string>
-#include "UnitTestBase.h"
-
-class UnitTestBase
-{
-public:
- enum class TestResult
- {
- Unknown = 0,
- Skipped,
- Failed,
- Succeeded
- };
- UnitTestBase(const char *Name);
- ~UnitTestBase();
- void SetStatus(TestResult result, const char *info ="")
- {
- m_TestResult = result;
- m_TestResultInfo = info != nullptr ? info : "";
- }
-
-protected:
- std::string m_TestName;
- TestResult m_TestResult = TestResult::Unknown;
- std::string m_TestResultInfo;
- int m_TestNum = 0;
- static int m_TotalTests;
- static size_t m_MaxNameLen;
-};
diff --git a/Tests/TestApp/include/pch.h b/Tests/TestApp/include/pch.h
deleted file mode 100644
index 070c9a7..0000000
--- a/Tests/TestApp/include/pch.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.
- */
-
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#pragma once
-
-#include <list>
-#include <algorithm>
-#include <cassert>
-#include <memory>
-#include <chrono>
-#include <vector>
-
-#include "PlatformDefinitions.h"
-
-#include "BasicTypes.h"
-
-#include "RefCntAutoPtr.h"
-#include "DebugUtilities.h"
-#include "EngineFactory.h"
-#include "RenderDevice.h"
-#include "DeviceContext.h"
-#include "SwapChain.h"
-