diff options
author | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-02-12 23:22:26 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-03-01 10:45:24 +0300 |
commit | 9da6df8a0eb964a59920ec0e6d2b1a8c1a8ca79a (patch) | |
tree | 762f4e81c9ee820b10f3411d7f948ed0848897f0 /drape/render_state.cpp | |
parent | 03328bb7b87504d8ba408e506977a2afde53f374 (diff) |
[vulkan] Added descriptor sets
Diffstat (limited to 'drape/render_state.cpp')
-rw-r--r-- | drape/render_state.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drape/render_state.cpp b/drape/render_state.cpp index dbe0844f7b..18985d0114 100644 --- a/drape/render_state.cpp +++ b/drape/render_state.cpp @@ -237,12 +237,13 @@ void TextureState::ApplyTextures(ref_ptr<GraphicsContext> context, RenderState c CHECK(it != bindings.end(), ("Texture bindings inconsistency.")); ref_ptr<dp::vulkan::VulkanTexture> t = texture.second->GetHardwareTexture(); + t->SetFilter(state.GetTextureFilter()); dp::vulkan::ParamDescriptor descriptor; descriptor.m_type = dp::vulkan::ParamDescriptor::Type::Texture; descriptor.m_imageDescriptor.imageView = t->GetTextureView(); + descriptor.m_imageDescriptor.sampler = vulkanContext->GetSampler(t->GetSamplerKey()); descriptor.m_imageDescriptor.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; - //descriptor.m_imageDescriptor.sampler =; //TODO(@rokuz, @darina): Implement. descriptor.m_textureSlot = it->second; vulkanContext->ApplyParamDescriptor(std::move(descriptor)); } |