im ngl im too tired to figure out why this isnt working rn

This commit is contained in:
Mars 2024-10-18 16:07:02 -04:00
parent edbcf2406b
commit 0caa990a93
Signed by untrusted user: pupbrained
GPG key ID: 0FF5B8826803F895
3 changed files with 31 additions and 24 deletions

1
.envrc
View file

@ -1,2 +1 @@
PATH_add ./shaders
use_flake

View file

@ -45,18 +45,24 @@
IMGUI_BUILD_VULKAN_BINDING = true;
};
deps = with pkgs; [
deps = with pkgs;
[
fmt
glfw
glm
glslang
imgui
shaderc
vulkan-extension-layer
vulkan-memory-allocator
vulkan-utility-libraries
vulkan-loader
vulkan-tools
];
]
++ (with pkgsStatic; [
spirv-tools
spirv-cross
spirv-headers
]);
in
with pkgs; rec {
packages = rec {
@ -102,11 +108,12 @@
};
};
devShell = mkShell.override {inherit stdenv;} {
packages =
devShell = mkShell.override {inherit stdenv;} rec {
buildInputs =
[
alejandra
bear
cmake
(llvmPackages_18.clang-tools.override {enableLibcxx = true;})
lldb
meson
@ -123,6 +130,7 @@
]
++ deps;
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
VULKAN_SDK = "${vulkan-headers}";
VK_LAYER_PATH = "${vulkan-validation-layers}/share/vulkan/explicit_layer.d";
VK_ICD_FILENAMES =

View file

@ -31,16 +31,16 @@ deps = [
dependency('vulkan', include_type: 'system'),
]
glslang_dep = cpp.find_library('glslang', required: false)
if not glslang_dep.found()
glslang_dep = dependency('glslang', required: true, include_type: 'system')
endif
spirv_dep = cpp.find_library('SPIRV', required: false)
spirv_dep = dependency('SPIRV-Tools', required: false, include_type: 'system')
if not spirv_dep.found()
spirv_dep = dependency('SPIRV', required: true, include_type: 'system')
spirv_dep = cpp.find_library('SPIRV-Tools', required: true)
endif
glslang_dep = dependency('glslang', required: false, include_type: 'system')
if not glslang_dep.found()
glslang_dep = cpp.find_library('glslang', required: true)
endif
imgui_dep = dependency('imgui', required: false, include_type: 'system')