From 0034ccf31d23fe4002fedeed38ebf90903f87a84 Mon Sep 17 00:00:00 2001 From: tnie Date: Sun, 28 Jul 2024 18:46:17 -0500 Subject: [PATCH 1/2] expose `vulkan_compile_shader` with CMake install --- CMakeLists.txt | 7 +++++++ cmake/komputeConfig.cmake.in | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d869f407..e777b85e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,6 +309,13 @@ if(KOMPUTE_OPT_INSTALL) FILE komputeTargets.cmake NAMESPACE kompute:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kompute) + + # Copy CMake files needed to `vulkan_compile_shader` + install(FILES + cmake/vulkan_shader_compiler.cmake + cmake/bin_file_to_header.cmake + cmake/bin2h.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/kompute) endif() diff --git a/cmake/komputeConfig.cmake.in b/cmake/komputeConfig.cmake.in index 77735762..ef053ce7 100644 --- a/cmake/komputeConfig.cmake.in +++ b/cmake/komputeConfig.cmake.in @@ -5,4 +5,7 @@ find_dependency(Vulkan REQUIRED) include(${CMAKE_CURRENT_LIST_DIR}/komputeTargets.cmake) -check_required_components(kompute) \ No newline at end of file +# Expose `vulkan_compile_shader` +include(${CMAKE_CURRENT_LIST_DIR}/vulkan_shader_compiler.cmake) + +check_required_components(kompute) From f840aaf7be49c868b88e48160d91e852d2071008 Mon Sep 17 00:00:00 2001 From: tnie Date: Sun, 28 Jul 2024 20:25:14 -0500 Subject: [PATCH 2/2] wip --- README.md | 4 ++-- docs/index.rst | 2 +- docs/overview/async-parallel.rst | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 85a22a30..6cffe71a 100644 --- a/README.md +++ b/README.md @@ -350,7 +350,7 @@ Simplified Kompute Components

-(very tiny, check the full reference diagram in docs for details) +(very tiny, check the full reference diagram in docs for details)

@@ -374,7 +374,7 @@ The image below provides an intuition on how Kompute Sequences can be allocated ## Mobile Enabled -Kompute has been optimized to work in mobile environments. The [build system](#build-overview) enables for dynamic loading of the Vulkan shared library for Android environments, together with a working [Android NDK wrapper](https://github.com/KomputeProject/kompute/tree/master/vk_ndk_wrapper_include) for the CPP headers. +Kompute has been optimized to work in mobile environments. The [build system](#build-overview) enables for dynamic loading of the Vulkan shared library for Android environments. diff --git a/docs/index.rst b/docs/index.rst index 02b235d9..9beafb34 100755 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,7 +3,7 @@ Kompute Docs Home ========================================== High Level Overview (from README) --------- +--------------------------------- .. mdinclude:: ../README.md diff --git a/docs/overview/async-parallel.rst b/docs/overview/async-parallel.rst index 114ac8f3..3becac17 100644 --- a/docs/overview/async-parallel.rst +++ b/docs/overview/async-parallel.rst @@ -43,5 +43,7 @@ The reason why this is important is that the Await function not only waits for t Async and Parallel Examples ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -We have added a set of examples for asynchronous and parallel processing examples in the `Advanced Examples documentation page `_ +.. _advanced-examples::advanced-examples.rst + +We have added a set of examples for asynchronous and parallel processing examples in the `Advanced Examples documentation page :ref:_advanced-examples`