From 9da6df8a0eb964a59920ec0e6d2b1a8c1a8ca79a Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Tue, 12 Feb 2019 23:22:26 +0300 Subject: [vulkan] Added descriptor sets --- drape/render_state.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drape/render_state.cpp') 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 context, RenderState c CHECK(it != bindings.end(), ("Texture bindings inconsistency.")); ref_ptr 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)); } -- cgit v1.2.3