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 /unityplugin/GhostCubeScene/src | |
| parent | Refactored overloaded IPipelineState::GetStaticShaderVariable and IShaderReso... (diff) | |
| download | DiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.tar.gz DiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.zip | |
Updated API version to 240021
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
| -rw-r--r-- | unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index abd3a26..4aad6f5 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -25,7 +25,6 @@ #include "PlatformDefinitions.h" #include "BasicMath.h" #include <algorithm> -#include "BasicShaderSourceStreamFactory.h" #include "GraphicsUtilities.h" #include "MapHelper.h" #include "CommonlyUsedStates.h" @@ -94,8 +93,9 @@ void GhostCubeScene::OnGraphicsInitialized() PSODesc.GraphicsPipeline.DepthStencilDesc.DepthFunc = UseReverseZ ? COMPARISON_FUNC_GREATER_EQUAL : COMPARISON_FUNC_LESS_EQUAL; ShaderCreateInfo ShaderCI; - BasicShaderSourceStreamFactory BasicSSSFactory("shaders"); - ShaderCI.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory; + pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory("shaders", &pShaderSourceFactory); + ShaderCI.pShaderSourceStreamFactory = pShaderSourceFactory; ShaderCI.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL; ShaderCI.UseCombinedTextureSamplers = true; |
