Home | History | Annotate | Download | only in smoke

Lines Matching refs:guard

77     def __init__(self, name, version, guard=None, commands=[]):
80 self.guard = guard
88 lines.append("Extension(name=%s, version=%s, guard=%s, commands=[" %
89 (repr(self.name), repr(self.version), repr(self.guard)))
99 vk_core = Extension(name='VK_core', version=0, guard=None, commands=[
239 vk_khr_surface = Extension(name='VK_KHR_surface', version=25, guard=None, commands=[
247 vk_khr_swapchain = Extension(name='VK_KHR_swapchain', version=67, guard=None, commands=[
255 vk_khr_display = Extension(name='VK_KHR_display', version=21, guard=None, commands=[
265 vk_khr_display_swapchain = Extension(name='VK_KHR_display_swapchain', version=9, guard=None, commands=[
269 vk_khr_xlib_surface = Extension(name='VK_KHR_xlib_surface', version=6, guard='VK_USE_PLATFORM_XLIB_KHR', commands=[
274 vk_khr_xcb_surface = Extension(name='VK_KHR_xcb_surface', version=6, guard='VK_USE_PLATFORM_XCB_KHR', commands=[
279 vk_khr_wayland_surface = Extension(name='VK_KHR_wayland_surface', version=5, guard='VK_USE_PLATFORM_WAYLAND_KHR', commands=[
284 vk_khr_mir_surface = Extension(name='VK_KHR_mir_surface', version=4, guard='VK_USE_PLATFORM_MIR_KHR', commands=[
289 vk_khr_android_surface = Extension(name='VK_KHR_android_surface', version=6, guard='VK_USE_PLATFORM_ANDROID_KHR', commands=[
293 vk_khr_win32_surface = Extension(name='VK_KHR_win32_surface', version=5, guard='VK_USE_PLATFORM_WIN32_KHR', commands=[
298 vk_ext_debug_report = Extension(name='VK_EXT_debug_report', version=1, guard=None, commands=[
319 def generate_header(guard):
322 lines.append("#ifndef %s" % guard)
323 lines.append("#define %s" % guard)
331 if ext.guard:
332 guard)
338 if ext.guard:
348 lines.append("#endif // %s" % guard)
352 def get_proc_addr(dispatchable, cmd, guard=None):
361 if guard:
362 c = ("#ifdef %s\n" % guard) + c + "\n#endif"
378 if ext.guard:
379 lines.append("#ifdef %s" % ext.guard)
386 commands_by_types[cmd.ty].append([cmd, ext.guard])
393 if ext.guard:
401 for cmd, guard in commands_by_types[Command.LOADER]:
402 lines.append(get_proc_addr("VK_NULL_HANDLE", cmd, guard))
410 for cmd, guard in commands_by_types[Command.INSTANCE]:
413 lines.append(get_proc_addr("instance", cmd, guard))
418 for cmd, guard in commands_by_types[Command.DEVICE]:
419 lines.append(get_proc_addr("instance", cmd, guard))
428 for cmd, guard in commands_by_types[Command.DEVICE]:
431 lines.append(get_proc_addr("dev", cmd, guard))