Skip to content

Commit b8ad544

Browse files
committed
added README
1 parent be6c5d6 commit b8ad544

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# VulkanMemoryAllocator
2+
3+
This is [VulkanMemoryAllocator](https://gpuopen.com/vulkan-memory-allocator/),
4+
packaged for the [Zig](https://ziglang.org/) build system.
5+
6+
## how to use
7+
8+
1. Add `zclay` to the dependency list in `build.zig.zon`:
9+
10+
```sh
11+
zig fetch --save git+https://github.com/johan0A/VulkanMemoryAllocator#v3.2.1
12+
```
13+
14+
2. Config `build.zig`:
15+
16+
```zig
17+
...
18+
const vma_dep = b.dependency("VulkanMemoryAllocator", .{
19+
.target = target,
20+
.optimize = optimize,
21+
});
22+
your_compilation.linkLibrary("vma", zclay_dep.artifact("VulkanMemoryAllocator"));
23+
...
24+
```

0 commit comments

Comments
 (0)