camel -> snake for command enums + fixes

This commit is contained in:
ashpil
2021-06-26 23:23:50 -04:00
committed by Robin Voetter
parent 0e65efd9d6
commit 8f10cec149
3 changed files with 87 additions and 102 deletions

View File

@@ -70,8 +70,8 @@ For each function, a wrapper is generated into one of three structs:
Each wrapper struct can be called with an array of the appropriate enums:
```zig
const vk = @import("vulkan");
const BaseDispatch = vk.BaseWrapper([_]vk.BaseCommand {
.create_instance,
const BaseDispatch = vk.BaseWrapper(.{
.CreateInstance,
});
```
The wrapper struct then provides wrapper functions for each function pointer in the dispatch struct: