diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-05-06 21:09:56 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-05-06 21:09:56 +0000 |
| commit | 45538595c5d0afa4ce7464beb1df9aeff9b5bf48 (patch) | |
| tree | 7b4fc9179114a2193498ce93594d1af5d059234a /Graphics/GraphicsEngineVulkan | |
| parent | Working on VK shader resource layout (diff) | |
| download | DiligentCore-45538595c5d0afa4ce7464beb1df9aeff9b5bf48.tar.gz DiligentCore-45538595c5d0afa4ce7464beb1df9aeff9b5bf48.zip | |
Improved SPIRV shader resource loading
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp index 41adb8f8..e7914ad1 100644 --- a/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/ShaderVkImpl.cpp @@ -54,7 +54,7 @@ ShaderVkImpl::ShaderVkImpl(IReferenceCounters *pRefCounters, RenderDeviceVkImpl // Load shader resources auto &Allocator = GetRawAllocator(); auto *pRawMem = ALLOCATE(Allocator, "Allocator for ShaderResources", sizeof(SPIRVShaderResources)); - auto *pResources = new (pRawMem) SPIRVShaderResources(Allocator, m_Desc.ShaderType, m_SPIRV, m_Desc.DefaultVariableType, m_Desc.VariableDesc, m_Desc.NumVariables); + auto *pResources = new (pRawMem) SPIRVShaderResources(Allocator, m_Desc.ShaderType, m_SPIRV, m_Desc.DefaultVariableType, m_Desc.VariableDesc, m_Desc.NumVariables, m_Desc.Name); m_pShaderResources.reset(pResources, STDDeleterRawMem<SPIRVShaderResources>(Allocator)); // Clone only static resources that will be set directly in the shader |
