Skip to content

Commit aa39480

Browse files
Disable formatting in generated test code
1 parent a8bec31 commit aa39480

File tree

2 files changed

+220
-432
lines changed

2 files changed

+220
-432
lines changed

scripts/dispatch_table_helper_generator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def generate(self):
7272

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

0 commit comments

Comments
 (0)