Home | History | Annotate | Download | only in scripts

Lines Matching refs:table

67 # Generates dispatch table helper header files for LVL
69 """Generate dispatch table helper header based on XML element attributes"""
161 # Determine if this API should be ignored or added to the instance or device dispatch table
183 # Create a dispatch table from the appropriate list and return it as a string
186 table = ''
189 table += 'static inline void layer_init_device_dispatch_table(VkDevice device, VkLayerDispatchTable *table, PFN_vkGetDeviceProcAddr gpa) {\n'
190 table += ' memset(table, 0, sizeof(*table));\n'
191 table += ' // Device function pointers\n'
194 table += 'static inline void layer_init_instance_dispatch_table(VkInstance instance, VkLayerInstanceDispatchTable *table, PFN_vkGetInstanceProcAddr gpa) {\n'
195 table += ' memset(table, 0, sizeof(*table));\n'
196 table += ' // Instance function pointers\n'
203 table += '#ifdef %s\n' % item[1]
205 # If we're looking for the proc we are passing in, just point the table to it. This fixes the issue where
208 table += ' table->GetDeviceProcAddr = gpa;\n'
210 table += ' table->GetInstanceProcAddr = gpa;\n'
212 table += ' table->%s = (PFN_%s) gpa(%s, "%s");\n' % (base_name, item[0], table_type, item[0])
215 table += '#endif // %s\n' % item[1]
216 table += '}'
217 return table