summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/include
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-05-31 15:35:34 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-05-31 15:35:34 +0000
commitc6bfb3bdcb4215eba7061090c25fa7604a1a0d44 (patch)
tree9b980c7331aecc3cbd110b51b2cd46f59ed6c8cf /Tests/TestApp/include
parentMoved Stride to vertex layout desc; updated tests (diff)
downloadDiligentEngine-c6bfb3bdcb4215eba7061090c25fa7604a1a0d44.tar.gz
DiligentEngine-c6bfb3bdcb4215eba7061090c25fa7604a1a0d44.zip
Updated back buffer format to match the one from the swap chain in the tests
Diffstat (limited to 'Tests/TestApp/include')
-rw-r--r--Tests/TestApp/include/TestBufferAccess.h2
-rw-r--r--Tests/TestApp/include/TestComputeShaders.h2
-rw-r--r--Tests/TestApp/include/TestDrawCommands.h2
-rw-r--r--Tests/TestApp/include/TestGeometryShader.h2
-rw-r--r--Tests/TestApp/include/TestTessellation.h2
-rw-r--r--Tests/TestApp/include/TestTexturing.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/Tests/TestApp/include/TestBufferAccess.h b/Tests/TestApp/include/TestBufferAccess.h
index 76d18f7..8f3458b 100644
--- a/Tests/TestApp/include/TestBufferAccess.h
+++ b/Tests/TestApp/include/TestBufferAccess.h
@@ -31,7 +31,7 @@ public:
static const int TriGridSize = 16;
TestBufferAccess();
- void Init( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent );
+ void Init( Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext, Diligent::ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent );
void Draw(float fTime);
private:
diff --git a/Tests/TestApp/include/TestComputeShaders.h b/Tests/TestApp/include/TestComputeShaders.h
index 38bf64e..bf10202 100644
--- a/Tests/TestApp/include/TestComputeShaders.h
+++ b/Tests/TestApp/include/TestComputeShaders.h
@@ -31,7 +31,7 @@ class TestComputeShaders : public UnitTestBase
public:
TestComputeShaders();
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext);
+ void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pContext, Diligent::ISwapChain *pSwapChain);
void Draw();
private:
diff --git a/Tests/TestApp/include/TestDrawCommands.h b/Tests/TestApp/include/TestDrawCommands.h
index 2600c39..d8a1d88 100644
--- a/Tests/TestApp/include/TestDrawCommands.h
+++ b/Tests/TestApp/include/TestDrawCommands.h
@@ -32,7 +32,7 @@ public:
static const int TriGridSize = 16;
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent);
+ void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent);
void Draw();
private:
diff --git a/Tests/TestApp/include/TestGeometryShader.h b/Tests/TestApp/include/TestGeometryShader.h
index 965c2db..3862561 100644
--- a/Tests/TestApp/include/TestGeometryShader.h
+++ b/Tests/TestApp/include/TestGeometryShader.h
@@ -30,7 +30,7 @@ class TestGeometryShader : public UnitTestBase
public:
TestGeometryShader() : UnitTestBase("Test Geometry Shaders"){}
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext);
+ void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain);
void Draw();
private:
diff --git a/Tests/TestApp/include/TestTessellation.h b/Tests/TestApp/include/TestTessellation.h
index c3257ac..2e808e8 100644
--- a/Tests/TestApp/include/TestTessellation.h
+++ b/Tests/TestApp/include/TestTessellation.h
@@ -29,7 +29,7 @@ class TestTessellation : public UnitTestBase
{
public:
TestTessellation() : UnitTestBase("Tessellation test") {}
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext);
+ void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::ISwapChain *pSwapChain);
void Draw();
private:
diff --git a/Tests/TestApp/include/TestTexturing.h b/Tests/TestApp/include/TestTexturing.h
index 27d934f..7f71868 100644
--- a/Tests/TestApp/include/TestTexturing.h
+++ b/Tests/TestApp/include/TestTexturing.h
@@ -30,7 +30,7 @@ class TestTexturing : public UnitTestBase
public:
TestTexturing();
- void Init(Diligent::IRenderDevice *pDevice, Diligent::IDeviceContext *pDeviceContext, Diligent::TEXTURE_FORMAT TexFormat, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent);
+ 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);