-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
19,761 additions
and
19,718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cmake_minimum_required(VERSION 3.26) | ||
|
||
add_subdirectory(viewer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cmake_minimum_required(VERSION 3.26) | ||
project(vulkan_splatting_viewer) | ||
|
||
add_executable(vulkan_splatting_viewer main.cpp) | ||
|
||
target_include_directories(vulkan_splatting_viewer PRIVATE third_party) | ||
|
||
target_link_libraries(vulkan_splatting_viewer PRIVATE | ||
libenvpp::libenvpp | ||
vulkan_splatting) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef VULKANSPLATTING_H | ||
#define VULKANSPLATTING_H | ||
|
||
#include <optional> | ||
#include <string> | ||
|
||
class VulkanSplatting { | ||
public: | ||
struct RendererConfiguration { | ||
bool enableVulkanValidationLayers = false; | ||
std::optional<uint8_t> physicalDeviceId = std::nullopt; | ||
bool immediateSwapchain = false; | ||
std::string scene; | ||
|
||
float fov = 45.0f; | ||
float near = 0.2f; | ||
float far = 1000.0f; | ||
bool enableGui = true; | ||
uint32_t width = 800; | ||
uint32_t height = 600; | ||
}; | ||
|
||
explicit VulkanSplatting(RendererConfiguration configuration) : configuration(configuration) {} | ||
|
||
void start() const; | ||
private: | ||
RendererConfiguration configuration; | ||
}; | ||
|
||
#endif //VULKANSPLATTING_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
cmake_minimum_required(VERSION 3.26) | ||
project(vulkan_splatting) | ||
|
||
add_subdirectory(shaders) | ||
|
||
file(GLOB EXTERNAL_SOURCE | ||
${imgui_SOURCE_DIR}/*.cpp | ||
${imgui_SOURCE_DIR}/backends/imgui_impl_glfw.cpp | ||
${imgui_SOURCE_DIR}/backends/imgui_impl_vulkan.cpp | ||
third_party/implot/implot.cpp | ||
third_party/implot/implot_demo.cpp | ||
third_party/implot/implot_items.cpp | ||
) | ||
|
||
file(GLOB_RECURSE SOURCE | ||
*.cpp | ||
vulkan/*.cpp) | ||
|
||
add_library(vulkan_splatting STATIC | ||
${SOURCE} | ||
${EXTERNAL_SOURCE} | ||
) | ||
|
||
target_include_directories(vulkan_splatting | ||
PUBLIC | ||
${CMAKE_SOURCE_DIR}/include/vulkan_splatting | ||
PRIVATE | ||
third_party | ||
${Vulkan_INCLUDE_DIRS} | ||
${GLM_INCLUDE_DIRS} | ||
${glm_SOURCE_DIR} | ||
${imgui_SOURCE_DIR} | ||
${imgui_SOURCE_DIR}/backends | ||
${spdlog_SOURCE_DIR}/include | ||
${CMAKE_BINARY_DIR}/shaders | ||
) | ||
|
||
add_dependencies(vulkan_splatting shaders) | ||
|
||
target_link_libraries(vulkan_splatting PUBLIC Vulkan::Vulkan glfw spdlog::spdlog) | ||
if (UNIX) | ||
target_link_libraries(vulkan_splatting PUBLIC ${CMAKE_DL_LIBS}) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.