summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-06 18:49:13 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-06 18:49:13 +0000
commitc651401e65a9beb2d186a26613fb2f2c759f80cd (patch)
treee3955f126e928822a37a2c617ec4fde1f7fb83a0
parentMade IShaderSourceInputStreamFactory derived from IObject (upgraded API Versi... (diff)
downloadDiligentCore-c651401e65a9beb2d186a26613fb2f2c759f80cd.tar.gz
DiligentCore-c651401e65a9beb2d186a26613fb2f2c759f80cd.zip
Updated readme
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 74689964..acdc9fee 100644
--- a/README.md
+++ b/README.md
@@ -343,8 +343,9 @@ ShaderCI.EntryPoint = "MyPixelShader";
ShaderCI.Desc.ShaderType = SHADER_TYPE_PIXEL;
ShaderCI.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
const auto* SearchDirectories = "shaders;shaders\\inc;";
-BasicShaderSourceStreamFactory BasicSSSFactory(SearchDirectories);
-ShaderCI.pShaderSourceStreamFactory = &BasicSSSFactory;
+RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory;
+m_pEngineFactory->CreateDefaultShaderSourceStreamFactory(nullptr, &pShaderSourceFactory);
+ShaderCI.pShaderSourceStreamFactory = pShaderSourceFactory;
RefCntAutoPtr<IShader> pShader;
m_pDevice->CreateShader(ShaderCI, &pShader);
```