diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-05-20 19:07:10 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-05-20 19:07:10 +0000 |
| commit | cdd7791661e8a176360bcaba4397192cc452e94f (patch) | |
| tree | 09d0b4cfe8f610ceffbe8c519a165e7a3e545d3b /Graphics/GraphicsEngineVulkan | |
| parent | Updated PipelineState VK: only creating default SRB if there are static resou... (diff) | |
| download | DiligentCore-cdd7791661e8a176360bcaba4397192cc452e94f.tar.gz DiligentCore-cdd7791661e8a176360bcaba4397192cc452e94f.zip | |
Couple minor updates
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h b/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h index fb968b43..e52f6b08 100644 --- a/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h +++ b/Graphics/GraphicsEngineVulkan/include/ShaderResourceLayoutVk.h @@ -322,7 +322,7 @@ private: // There is no need to use shared ptr as referenced resource cache is either part of the // parent ShaderVkImpl object or ShaderResourceBindingVkImpl object - ShaderResourceCacheVk *m_pResourceCache; + ShaderResourceCacheVk *m_pResourceCache = nullptr; std::unique_ptr<void, STDDeleterRawMem<void> > m_ResourceBuffer; std::array<Uint16, SHADER_VARIABLE_TYPE_NUM_TYPES> m_NumResources = {}; diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp index 6a95af24..b9ab2fd7 100644 --- a/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp +++ b/Graphics/GraphicsEngineVulkan/src/ShaderResourceLayoutVk.cpp @@ -325,7 +325,6 @@ void ShaderResourceLayoutVk::VkResource::UpdateDescriptorHandle(VkDescriptorSet WriteDescrSet.pTexelBufferView = pTexelBufferView; ParentResLayout.m_pLogicalDevice->UpdateDescriptorSets(1, &WriteDescrSet, 0, nullptr); - } bool ShaderResourceLayoutVk::VkResource::UpdateCachedResource(ShaderResourceCacheVk::Resource& DstRes, |
