summaryrefslogtreecommitdiffstats
path: root/flake.nix
Commit message (Collapse)AuthorAge
* Allow `flake.nix` users to run Vulkan tests (#8152)Sam Estep2025-08-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR puts the [Khronos official Vulkan Loader](https://github.com/NixOS/nixpkgs/blob/6027c30c8e9810896b92429f0092f624f7b1aace/pkgs/by-name/vu/vulkan-loader/package.nix#L22-L27) in `LD_LIBRARY_PATH` for the `flake.nix` dev shell, allowing Vulkan tests to run. For example, before this PR: ``` $ build/Debug/bin/slang-test tests/compute/array-param.slang Supported backends: glslang spirv-dis clang gcc genericcpp llvm spirv-opt found test: 'tests/compute/array-param.slang' Check vk,vulkan: Not Supported Check cuda: Not Supported ignored test: 'tests/compute/array-param.slang (cuda)' passed test: 'tests/compute/array-param.slang.1 (cpu)' ignored test: 'tests/compute/array-param.slang.2 (dx11)' ignored test: 'tests/compute/array-param.slang.3 (dx12)' ignored test: 'tests/compute/array-param.slang.4 (vk)' === 100% of tests passed (1/1), 4 tests ignored === ``` In contrast, after this PR (on an Ubuntu machine with an NVIDIA GPU): ``` $ nixGLNvidia build/Debug/bin/slang-test tests/compute/array-param.slang Supported backends: glslang spirv-dis clang gcc genericcpp llvm spirv-opt found test: 'tests/compute/array-param.slang' Check vk,vulkan: Supported Check cuda: Not Supported ignored test: 'tests/compute/array-param.slang (cuda)' passed test: 'tests/compute/array-param.slang.1 (cpu)' ignored test: 'tests/compute/array-param.slang.2 (dx11)' ignored test: 'tests/compute/array-param.slang.3 (dx12)' passed test: 'tests/compute/array-param.slang.4 (vk)' === 100% of tests passed (2/2), 3 tests ignored === ```
* Disable automatic `#include` insertion for clangd (#7951)Sam Estep2025-07-28
|
* Document how to use LLDB in the Slang codebase (#7809)Sam Estep2025-07-24
| | | | | | | | | | | * Document how to use LLDB in the Slang codebase * Include `slang_lldb.py` in `.lldbinit` * Switch from GCC to Clang * Include a VS Code task to build before debugging * Fix clangd
* Let `flake.nix` users run `extras/formatting.sh` (#7682)Sam Estep2025-07-14
| | | Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
* Add Nix flake for direnv (#6635)Sam Estep2025-03-20
* Add Nix flake for direnv * Use Sai's suggestion for the `description` * Make `.envrc` optional * Move Nix docs to their own section * Tweak wording * Tweak wording more * Add `nixfmt` --------- Co-authored-by: Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>