Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/dispatch_table_helper_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def generate(self):

# Create a dispatch table from the corresponding table_type and append it to out
def OutputDispatchTableHelper(self, out: list, table_type: str):
out.append(' // clang-format off\n')
if table_type == 'device':
out.append('static inline void layer_init_device_dispatch_table(VkDevice device, VkLayerDispatchTable *table, PFN_vkGetDeviceProcAddr gpa) {\n')
out.append(' memset(table, 0, sizeof(*table));\n')
Expand Down Expand Up @@ -99,4 +100,5 @@ def OutputDispatchTableHelper(self, out: list, table_type: str):
out.append( f' table->{command_name[2:]} = (PFN_{command_name})gpa({table_type}, "{command_name}");\n')
if command.protect is not None:
out.append( f'#endif // {command.protect}\n')
out.append(' // clang-format on\n')
out.append('}')
Loading