Get tessellation mostly working for terrain

This commit is contained in:
2024-03-16 03:57:56 -04:00
parent 4fdfac200d
commit b5e8c10cb9
51 changed files with 975 additions and 471 deletions

View File

@@ -73,7 +73,7 @@ namespace fgl::engine
texture_map.emplace( path.string(), tex.m_handle );
return tex;
return std::move( tex );
}
Texture::Texture( std::shared_ptr< TextureHandle > handle ) : m_handle( handle )
@@ -200,7 +200,8 @@ namespace fgl::engine
VkImageView vk_view { view->getVkView() };
VkSampler vk_sampler { view->getSampler()->getVkSampler() };
m_handle->m_imgui_set = ImGui_ImplVulkan_AddTexture( vk_sampler, vk_view, VK_IMAGE_LAYOUT_GENERAL );
m_handle->m_imgui_set =
ImGui_ImplVulkan_AddTexture( vk_sampler, vk_view, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL );
#endif
}