forked from mirror/vulkan-zig
Update readme to new api usage
This commit is contained in:
@@ -70,7 +70,7 @@ Each wrapper struct can be called with an array of the appropriate enums:
|
||||
```zig
|
||||
const vk = @import("vulkan");
|
||||
const BaseDispatch = vk.BaseWrapper(.{
|
||||
.CreateInstance,
|
||||
.createInstance = true,
|
||||
});
|
||||
```
|
||||
The wrapper struct then provides wrapper functions for each function pointer in the dispatch struct:
|
||||
|
||||
Reference in New Issue
Block a user