From ea0c5eacdd91a1c17502eb2ba36093ac054572ce Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 6 Apr 2019 09:29:50 -0700 Subject: Updated API version to 240021 --- Tests/TestApp/src/TestShaderResourceLayout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Tests/TestApp/src/TestShaderResourceLayout.cpp') diff --git a/Tests/TestApp/src/TestShaderResourceLayout.cpp b/Tests/TestApp/src/TestShaderResourceLayout.cpp index 63b8ddc..3d2cd94 100644 --- a/Tests/TestApp/src/TestShaderResourceLayout.cpp +++ b/Tests/TestApp/src/TestShaderResourceLayout.cpp @@ -26,7 +26,6 @@ #include "pch.h" #include "TestShaderResourceLayout.h" -#include "BasicShaderSourceStreamFactory.h" using namespace Diligent; @@ -43,8 +42,9 @@ TestShaderResourceLayout::TestShaderResourceLayout( IRenderDevice *pDevice, IDev } ShaderCreateInfo CreationAttrs; - BasicShaderSourceStreamFactory BasicSSSFactory("Shaders"); - CreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr pShaderSourceFactory; + pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory("Shaders", &pShaderSourceFactory); + CreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory; CreationAttrs.EntryPoint = "main"; CreationAttrs.UseCombinedTextureSamplers = false; -- cgit v1.2.3