diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-06 16:29:50 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-06 16:29:50 +0000 |
| commit | ea0c5eacdd91a1c17502eb2ba36093ac054572ce (patch) | |
| tree | 827f3dc2613ecd5138126fd7cd22d850c42c7c9d /Tests/TestApp/src/TestBufferAccess.cpp | |
| parent | Refactored overloaded IPipelineState::GetStaticShaderVariable and IShaderReso... (diff) | |
| download | DiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.tar.gz DiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.zip | |
Updated API version to 240021
Diffstat (limited to 'Tests/TestApp/src/TestBufferAccess.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestBufferAccess.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestBufferAccess.cpp b/Tests/TestApp/src/TestBufferAccess.cpp index db8dc7b..6c31c2f 100644 --- a/Tests/TestApp/src/TestBufferAccess.cpp +++ b/Tests/TestApp/src/TestBufferAccess.cpp @@ -28,7 +28,6 @@ #include <math.h> #include "TestBufferAccess.h" #include "MapHelper.h" -#include "BasicShaderSourceStreamFactory.h" using namespace Diligent; @@ -113,8 +112,9 @@ void TestBufferAccess::Init( IRenderDevice *pDevice, IDeviceContext *pContext, I } ShaderCreateInfo CreationAttrs; - BasicShaderSourceStreamFactory BasicSSSFactory; - CreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory; + pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory(nullptr, &pShaderSourceFactory); + CreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory; CreationAttrs.Desc.TargetProfile = bUseGLSL ? SHADER_PROFILE_GL_4_2 : SHADER_PROFILE_DX_5_0; CreationAttrs.UseCombinedTextureSamplers = true; |
