Compare commits

...

13 Commits

Author SHA1 Message Date
abdelrahman 2cdfcde5a3 Add swapchain recreation. Needs debugging though 2026-06-21 20:51:46 +01:00
abdelrahman ef12ba03d8 Bug fixes 2026-06-21 20:09:54 +01:00
abdelrahman a425166018 Render loop 2026-06-21 17:02:09 +01:00
abdelrahman f253b6f683 Build executable with RPATH 2026-06-21 17:02:02 +01:00
abdelrahman 2fb5eb1dd7 Reorder includes 2026-06-21 14:28:36 +01:00
abdelrahman 09239c0cda Add graphics pipeline 2026-06-21 14:27:23 +01:00
abdelrahman 44a34ed0a2 Fix return 2026-06-21 00:55:12 +01:00
abdelrahman e8a40e04a9 Load shaders and create shader module 2026-06-21 00:53:03 +01:00
abdelrahman 26ab321641 Add descriptors 2026-06-20 21:00:19 +01:00
abdelrahman 19e7382ff7 Don't hide temp memory triggers 2026-06-20 17:54:04 +01:00
abdelrahman 49b9f5778a Load textures 2026-06-20 17:50:14 +01:00
abdelrahman 2b1ba018ab Ignore ktx build directory 2026-06-20 17:49:58 +01:00
abdelrahman c87a0fa78a Switch to using Ninja for building KTX 2026-06-20 17:49:50 +01:00
5 changed files with 916 additions and 59 deletions
+1
View File
@@ -2,3 +2,4 @@
main
compile_commands.json
vendor
ktx/build
+3 -2
View File
@@ -9,7 +9,8 @@ build_ktx () {
-D CMAKE_INSTALL_PREFIX=$(realpath vendor) \
-D CMAKE_CXX_STANDARD=17 \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS="-msse4.1"
-D CMAKE_CXX_FLAGS="-msse4.1" \
-G Ninja
cmake --build ktx/build --config Release
cmake --install ktx/build
}
@@ -17,7 +18,7 @@ build_ktx () {
build_app () {
bear -- clang++ -g -c -Wno-nullability-completeness -DVK_NO_PROTOTYPES -I$VULKAN_SDK/include -Ivendor/include vulkan_profiles/vulkan_profiles.cpp main.cpp
bear -a -- clang -g -c -DVK_NO_PROTOTYPES -Ivulkan_profiles -I$VULKAN_SDK/include $VULKAN_SDK/include/volk/volk.c wapp/wapp.c
bear -a -- clang++ -g -DVK_NO_PROTOTYPES -Lvendor/lib -lSDL3 -lglm -ltinyobjloader -lktx -o main *.o
bear -a -- clang++ -g -DVK_NO_PROTOTYPES -L$VULKAN_SDK/lib -Lvendor/lib -lSDL3 -lglm -ltinyobjloader -lktx -lslang -Wl,-rpath,./vendor/lib -Wl,-rpath,$VULKAN_SDK/lib -o main *.o
}
clean_obj () {
+874 -16
View File
File diff suppressed because it is too large Load Diff
-3
View File
@@ -1,3 +0,0 @@
#!/bin/bash
LD_LIBRARY_PATH=vendor/lib/:$LD_LIBRARY_PATH ./main