summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestTessellation.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-06 16:29:50 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-06 16:29:50 +0000
commitea0c5eacdd91a1c17502eb2ba36093ac054572ce (patch)
tree827f3dc2613ecd5138126fd7cd22d850c42c7c9d /Tests/TestApp/src/TestTessellation.cpp
parentRefactored overloaded IPipelineState::GetStaticShaderVariable and IShaderReso... (diff)
downloadDiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.tar.gz
DiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.zip
Updated API version to 240021
Diffstat (limited to 'Tests/TestApp/src/TestTessellation.cpp')
-rw-r--r--Tests/TestApp/src/TestTessellation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestTessellation.cpp b/Tests/TestApp/src/TestTessellation.cpp
index e099998..388f837 100644
--- a/Tests/TestApp/src/TestTessellation.cpp
+++ b/Tests/TestApp/src/TestTessellation.cpp
@@ -27,7 +27,6 @@
#include "pch.h"
#include "TestTessellation.h"
#include "MapHelper.h"
-#include "BasicShaderSourceStreamFactory.h"
using namespace Diligent;
@@ -42,8 +41,9 @@ void TestTessellation::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont
m_pDeviceContext = pDeviceContext;
ShaderCreateInfo CreationAttrs;
- BasicShaderSourceStreamFactory BasicSSSFactory;
- CreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory;
+ RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory;
+ pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory("Shaders", &pShaderSourceFactory);
+ CreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory;
CreationAttrs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
CreationAttrs.UseCombinedTextureSamplers = true;