summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubeScene/src
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 /unityplugin/GhostCubeScene/src
parentRefactored overloaded IPipelineState::GetStaticShaderVariable and IShaderReso... (diff)
downloadDiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.tar.gz
DiligentEngine-ea0c5eacdd91a1c17502eb2ba36093ac054572ce.zip
Updated API version to 240021
Diffstat (limited to 'unityplugin/GhostCubeScene/src')
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeScene.cpp6
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;