camel -> snake for command enums + fixes

This commit is contained in:
ashpil
2021-06-26 23:23:50 -04:00
parent e36930ad5d
commit 722ddfdb6b
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: