Lines Matching refs:proto
61 def _is_loader_non_trampoline_entrypoint(self, proto): argument
62 …if proto.name in ["GetDeviceProcAddr", "EnumeratePhysicalDevices", "EnumerateLayers", "DbgRegister…
64 return not self.is_dispatchable_object_first_param(proto)
67 def is_dispatchable_object_first_param(self, proto): argument
68 in_objs = proto.object_in_params()
70 param0 = proto.params[0]
167 def _generate_object_setup(self, proto): argument
172 if not self._requires_special_trampoline_code(proto.name):
175 if "Get" in proto.name:
178 if proto.name == "GetSwapchainInfoKHR":
179 ptype = proto.params[-3].name
180 psize = proto.params[-2].name
181 pdata = proto.params[-1].name
191 obj_params = proto.object_out_params()
209 for proto in self.protos:
210 if self._is_loader_non_trampoline_entrypoint(proto):
214 obj_setup = self._generate_object_setup(proto)
216 func.append(qual + proto.c_func(prefix="vk", attr="VKAPI"))
221 if proto.ret != 'void' and obj_setup:
227 proto.params[0].name)
231 dispatch = "disp->%s;" % proto.c_call()
232 if proto.ret == 'void':
272 for proto in self.protos:
273 if self.is_dispatchable_object_first_param(proto) or proto.name == "CreateInstance":
275 (proto.name, proto.name, proto.name))
278 (proto.name, proto.name))
286 for proto in self.protos:
287 if proto.params[0].ty != "VkInstance" and proto.params[0].ty != "VkPhysicalDevice":
289 stmts.append("table->%s = vk%s;" % (proto.name, proto.name))
300 for proto in self.protos:
301 if self.is_dispatchable_object_first_param(proto):
302 lookups.append("if (!strcmp(name, \"%s\"))" % (proto.name))
304 % (proto.name))
385 for proto in self.protos:
386 if self.exports and proto.name not in self.exports:
392 body.append(" vk" + proto.name)
401 self.intercepted = [proto.name for proto in self.protos]
403 for proto in self.protos:
404 if proto.name == "GetDeviceProcAddr":
405 self.gpa = proto
414 for proto in self.protos:
415 if proto.name not in self.intercepted:
416 lookups.append("/* no %s%s */" % (self.prefix, proto.name))
419 lookups.append("if (!strcmp(name, \"%s\"))" % proto.name)
421 (self.gpa.ret, self.prefix, proto.name))
424 for proto in self.protos:
425 …if self._is_loader_non_trampoline_entrypoint(proto) or self._requires_special_trampoline_code(prot…
426 special_lookups.append("if (!strcmp(name, \"%s\"))" % proto.name)
428 (self.gpa.ret, self.prefix, proto.name))