diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-06 18:49:13 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-06 18:49:13 +0000 |
| commit | c651401e65a9beb2d186a26613fb2f2c759f80cd (patch) | |
| tree | e3955f126e928822a37a2c617ec4fde1f7fb83a0 | |
| parent | Made IShaderSourceInputStreamFactory derived from IObject (upgraded API Versi... (diff) | |
| download | DiligentCore-c651401e65a9beb2d186a26613fb2f2c759f80cd.tar.gz DiligentCore-c651401e65a9beb2d186a26613fb2f2c759f80cd.zip | |
Updated readme
| -rw-r--r-- | README.md | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); ``` |
