Implement vulkan backend

This commit is contained in:
2026-07-05 22:11:05 +01:00
parent a073dec6a0
commit 5a26bf54c8
5 changed files with 2045 additions and 2 deletions
+21 -2
View File
@@ -3,9 +3,28 @@
default: build
# Build the project
CC := "clang"
CXX := "clang++"
VK_FLAGS := "-DVK_NO_PROTOTYPES -I$VULKAN_SDK/include -I$VULKAN_SDK/include/vma"
BUILDDIR := "build"
# Build the project (object files only — no entry point yet)
build:
@echo "TODO: implement build"
mkdir -p {{BUILDDIR}}
{{CXX}} -g -c -Wno-nullability-completeness {{VK_FLAGS}} \
src/prism/rhi/vulkan/profiles/vulkan_profiles.cpp \
-o {{BUILDDIR}}/vulkan_profiles.o
{{CXX}} -g -c -Wno-nullability-completeness {{VK_FLAGS}} \
src/prism/rhi/vulkan/pr_rhi_vk_vma.cpp \
-o {{BUILDDIR}}/pr_rhi_vk_vma.o
{{CC}} -g -c {{VK_FLAGS}} $VULKAN_SDK/include/volk/volk.c -o {{BUILDDIR}}/volk.o
{{CC}} -g -c {{VK_FLAGS}} src/prism/rhi/vulkan/pr_rhi_vk.c -o {{BUILDDIR}}/pr_rhi_vk.o
{{CC}} -g -c src/wapp/wapp.c -o {{BUILDDIR}}/wapp.o
@echo "--- build done (objects in {{BUILDDIR}}/) ---"
# Clean object files
clean:
rm -rf {{BUILDDIR}}
# Run linter / typecheck
lint: