diff options
Diffstat (limited to 'Tests/TestApp/src/TestGeometryShader.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestGeometryShader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestGeometryShader.cpp b/Tests/TestApp/src/TestGeometryShader.cpp index bc4ab5a..7977838 100644 --- a/Tests/TestApp/src/TestGeometryShader.cpp +++ b/Tests/TestApp/src/TestGeometryShader.cpp @@ -27,7 +27,6 @@ #include "pch.h" #include "TestGeometryShader.h" #include "MapHelper.h" -#include "BasicShaderSourceStreamFactory.h" using namespace Diligent; @@ -42,8 +41,9 @@ void TestGeometryShader::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCo m_pDeviceContext = pDeviceContext; ShaderCreateInfo CreationAttrs; - BasicShaderSourceStreamFactory BasicSSSFactory; - CreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory; + pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory(nullptr, &pShaderSourceFactory); + CreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory; CreationAttrs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL; CreationAttrs.UseCombinedTextureSamplers = true; |
