From c651401e65a9beb2d186a26613fb2f2c759f80cd Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 6 Apr 2019 11:49:13 -0700 Subject: Updated readme --- README.md | 5 +++-- 1 file 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 pShaderSourceFactory; +m_pEngineFactory->CreateDefaultShaderSourceStreamFactory(nullptr, &pShaderSourceFactory); +ShaderCI.pShaderSourceStreamFactory = pShaderSourceFactory; RefCntAutoPtr pShader; m_pDevice->CreateShader(ShaderCI, &pShader); ``` -- cgit v1.2.3