From 6f6f444bebda5758ba843004dcde8e6b93b1dd8a Mon Sep 17 00:00:00 2001 From: Minus Date: Tue, 17 Nov 2026 18:55:18 +0000 Subject: [PATCH] selectors: a.b sends with self, a::b without; drop a:b The `.` and `::` selectors swap meaning and `a:b` is removed, so every access is one of: a.b read the member a.b(args) call the member WITH a as self a::b static read (no self) a::b(args) call the member WITHOUT self - compiler: postfix `.` emits CALLMETHOD (with self) when followed by `(`, else GETATTR; `::` emits GETATTR + CALL (no self); the `:` form is gone (with a helpful error suggesting `.`/`::`). - `:` remains only for type hints (local x : int), unchanged. - ffi: `lib.func(...)` (with self) and `ffi::load(...)` (no self); the native loaders no longer skip a receiver. - file: `File::open` is static, so cm_open reads args[0]/args[1]. - lexer: fix cat_lexer_kind_name, whose table had drifted from the enum (missing `nil`), mislabelling tokens. - self-hosted parser (std/lang/parser.cat): `.name(` -> method (self), `::name(` -> call (no self); compiler/checker unchanged. - tools/migrate_selectors.py: one-pass migration of the call forms. - regenerated std/glfw and std/vulkan; migrated examples/tests/std and the README; new tests/selectors.cat (130 green). Verified live: GLFW window + Vulkan device still work; `a:b` now errors. --- README.md | 38 +- examples/classes.cat | 8 +- examples/ffi.cat | 10 +- examples/files.cat | 16 +- examples/generators.cat | 8 +- examples/glfw.cat | 22 +- examples/oop.cat | 6 +- examples/slots.cat | 4 +- examples/vulkan.cat | 20 +- include/cat/types/ffi.h | 6 +- include/cat/types/file.h | 2 +- include/cat/types/memory.h | 8 +- include/cat/types/selector.h | 10 +- src/cat/compiler.c | 93 ++- src/cat/lexer.c | 16 +- src/cat/types/ffi.c | 6 +- src/cat/types/file.c | 12 +- src/cat/types/generator.c | 4 +- src/cat/types/list.c | 2 +- src/cat/types/memory.c | 12 +- src/cat/types/selector.c | 4 +- std/fs/fs.cat | 12 +- std/glfw/glfw.cat | 248 +++--- std/lang/parser.cat | 23 +- std/vulkan/vulkan.cat | 1300 ++++++++++++++++---------------- tests/ffi.cat | 20 +- tests/functions_as_objects.cat | 2 +- tests/glfw.cat | 22 +- tests/memory.cat | 32 +- tests/run_tests.sh | 9 + tests/selectors.cat | 35 + tests/vulkan.cat | 20 +- tools/gen_glfw.py | 2 +- tools/gen_vulkan.py | 2 +- tools/migrate_selectors.py | 44 ++ 35 files changed, 1114 insertions(+), 964 deletions(-) create mode 100644 tests/selectors.cat create mode 100644 tools/migrate_selectors.py diff --git a/README.md b/README.md index 7cc2e99..5c8beea 100644 --- a/README.md +++ b/README.md @@ -104,25 +104,35 @@ as concretas compartilham seu conjunto de métodos (`read`/`write`/ ```lua local s = StringIO("hello") -- stream de texto em memória local b = BytesIO() -- stream de bytes em memória -b:write("bytes"); print(b:read()) +b.write("bytes"); print(b.read()) local f = File::open("x.txt") -- classmethod -> File -f:write("data"); f:close() +f.write("data"); f.close() local r = File::open("x.txt", "r") -print(r:read()); r:close() +print(r.read()); r.close() ``` -`File::open(path[, mode])` é um **classmethod** (sintaxe `::`) que -retorna um `File`. `AbstractFile` não é instanciável. +`File::open(path[, mode])` é um **classmethod** (sintaxe `::`, **sem** +`self`) que retorna um `File`. `AbstractFile` não é instanciável. -## Class methods (`::`) +## Seletores: `.` (com self) e `::` (sem self) -Chamadas com `::` passam o receptor como primeiro argumento (`self`), -como `Object::method(args)` em outras linguagens: +`.`, `::` e `[]` são os acessos. A regra: ```lua -local f = File::open("a.txt") -- File::open +obj.field -- lê o membro +obj.method(args) -- chama o membro COM obj como self +obj::static(args) -- chama o membro SEM self +``` + +Um nome de membro pode ser keyword (`glfw.false`). A antiga sintaxe +`obj:method(args)` foi **removida**. + +```lua +local f = File::open("a.txt") -- sem self +local util = { twice = function(x) return x * 2 end } +print(util::twice(21)) -- 42 ``` ## Type hints avançados @@ -247,7 +257,7 @@ class Dog extends Animal end local d = Dog("Rex") -- constrói via `new` -print(d:speak()) -- Rex barks +print(d.speak()) -- Rex barks ``` ## `ffi` — chamar código nativo (estilo ctypes/CDLL) @@ -258,16 +268,16 @@ uma assinatura declarada, usando **libffi** para a chamada ABI-correta ```lua local m = ffi::load("libm.so.6") -local pow = m:func("pow", "double(double,double)") +local pow = m.func("pow", "double(double,double)") print(pow(2, 10)) -- 1024 local c = ffi::load("libc.so.6") -local strlen = c:func("strlen", "long(string)") +local strlen = c.func("strlen", "long(string)") ``` `ffi` é um módulo (namespace): `::` acessa o membro estático -(`ffi::load`), enquanto `:` envia mensagem a uma instância -(`m:func(...)`). +(`ffi::load`, **sem** self), enquanto `.` envia mensagem a uma instância +(`m.func(...)`, **com** o `m` como self). Gramática da assinatura: `RET(ARG,ARG,...)`, com tipos `void`, `bool`, `char`, `int8/uint8`, `int16/uint16`, `int/long/int32/uint32`, diff --git a/examples/classes.cat b/examples/classes.cat index 9bd98a4..a797f25 100644 --- a/examples/classes.cat +++ b/examples/classes.cat @@ -19,13 +19,13 @@ class Dog extends Animal end local a = Animal("cat") -print(a:speak()) -print(a:get_name()) +print(a.speak()) +print(a.get_name()) -- subclassing: Dog inherits init/get_name, overrides speak local d = Dog("Rex") -print(d:speak()) -print(d:get_name()) +print(d.speak()) +print(d.get_name()) -- use: import another catscript file (its definitions become global here) use "std/math/math.cat" diff --git a/examples/ffi.cat b/examples/ffi.cat index d46fa70..51c77ef 100644 --- a/examples/ffi.cat +++ b/examples/ffi.cat @@ -4,19 +4,19 @@ -- signature, and call it. libffi performs the ABI-correct call. local m = ffi::load("libm.so.6") -local pow = m:func("pow", "double(double,double)") +local pow = m.func("pow", "double(double,double)") print("pow(2,10) =", pow(2, 10)) -local sqrt = m:func("sqrt", "double(double)") +local sqrt = m.func("sqrt", "double(double)") print("sqrt(144) =", sqrt(144)) local c = ffi::load("libc.so.6") -local getpid = c:func("getpid", "int()") +local getpid = c.func("getpid", "int()") local pid = getpid() print("getpid > 0:", pid > 0) -local strlen = c:func("strlen", "long(string)") +local strlen = c.func("strlen", "long(string)") print("strlen:", strlen("catscript")) -local abs = c:func("abs", "int(int)") +local abs = c.func("abs", "int(int)") print("abs(-42) =", abs(-42)) diff --git a/examples/files.cat b/examples/files.cat index 9597ed6..b070795 100644 --- a/examples/files.cat +++ b/examples/files.cat @@ -6,23 +6,23 @@ -- in-memory text stream local s = StringIO("hello, catscript") -print("stringio:", s:read()) +print("stringio:", s.read()) -- in-memory byte stream, written then read back local b = BytesIO() -b:write("bytes ") -b:write("io") -print("bytesio:", b:read()) +b.write("bytes ") +b.write("io") +print("bytesio:", b.read()) -- a real file, opened with the File::open classmethod local path = "/tmp/catscript_demo.txt" local w = File::open(path, "w") -w:write("line one\n") -w:close() +w.write("line one\n") +w.close() local r = File::open(path, "r") -print("file:", r:read()) -r:close() +print("file:", r.read()) +r.close() -- type hints: advisory, including DynSized() and sentinel_sized function describe(n : cint, buf : cbyte[sentinel_sized<0>]) -> ascii_text diff --git a/examples/generators.cat b/examples/generators.cat index 0e7eb4c..ee52e33 100644 --- a/examples/generators.cat +++ b/examples/generators.cat @@ -13,10 +13,10 @@ print("type:", type(count_up(3))) -- manual iteration with next local g = count_up(3) -print("next:", g:next()) -print("next:", g:next()) -print("next:", g:next()) -print("next:", g:next()) -- empty: exhausted +print("next:", g.next()) +print("next:", g.next()) +print("next:", g.next()) +print("next:", g.next()) -- empty: exhausted -- for..in drives any iterator automatically local sum = 0 diff --git a/examples/glfw.cat b/examples/glfw.cat index 014c4ae..b88c678 100644 --- a/examples/glfw.cat +++ b/examples/glfw.cat @@ -8,26 +8,26 @@ use glfw local version = memory(12) -glfw.get_version(version, version:ptr() + 4, version:ptr() + 8) -print("glfw:", version:u32(0), version:u32(4), version:u32(8)) +glfw::get_version(version, version.ptr() + 4, version.ptr() + 8) +print("glfw:", version.u32(0), version.u32(4), version.u32(8)) -local ok = glfw.init() +local ok = glfw::init() print("init:", ok) -- a hidden window with no client API (for Vulkan surfaces) -glfw.window_hint(glfw.visible, glfw.false) -glfw.window_hint(0x00022001, 0) -- CLIENT_API = NO_API -local win = glfw.create_window(320, 240, "cat", 0, 0) +glfw::window_hint(glfw.visible, glfw.false) +glfw::window_hint(0x00022001, 0) -- CLIENT_API = NO_API +local win = glfw::create_window(320, 240, "cat", 0, 0) print("window:", win > 0) if win > 0 then local fw = memory(8) local fh = memory(8) - glfw.get_framebuffer_size(win, fw, fh) - print("framebuffer:", fw:u32(0), fh:u32(0)) - print("should close:", glfw.window_should_close(win) == glfw.true) - glfw.destroy_window(win) + glfw::get_framebuffer_size(win, fw, fh) + print("framebuffer:", fw.u32(0), fh.u32(0)) + print("should close:", glfw::window_should_close(win) == glfw.true) + glfw::destroy_window(win) end -glfw.terminate() +glfw::terminate() print("done") diff --git a/examples/oop.cat b/examples/oop.cat index b4c54db..90d1af9 100644 --- a/examples/oop.cat +++ b/examples/oop.cat @@ -13,6 +13,6 @@ local counter = { end } -counter:increment(1) -counter:increment(2) -print("counter:", counter:get()) -- 3 +counter.increment(1) +counter.increment(2) +print("counter:", counter.get()) -- 3 diff --git a/examples/slots.cat b/examples/slots.cat index c441954..df57461 100644 --- a/examples/slots.cat +++ b/examples/slots.cat @@ -9,6 +9,6 @@ local f = File::open("/tmp/catscript_slots_demo.txt", "w") print("path:", f.path) print("mode:", f.mode) print("closed:", f.closed) -f:write("slots") -f:close() +f.write("slots") +f.close() print("closed:", f.closed) diff --git a/examples/vulkan.cat b/examples/vulkan.cat index a14cdb0..c163434 100644 --- a/examples/vulkan.cat +++ b/examples/vulkan.cat @@ -9,23 +9,23 @@ use vulkan -- VkApplicationInfo local ai = memory(vulkan.size_vk_application_info) -ai:fill(0) -ai:set_u32(0, vulkan.structure_type_application_info) -ai:set_u32(24, 0x00400000) -- apiVersion 1.0.0 +ai.fill(0) +ai.set_u32(0, vulkan.structure_type_application_info) +ai.set_u32(24, 0x00400000) -- apiVersion 1.0.0 -- VkInstanceCreateInfo local ci = memory(vulkan.size_vk_instance_create_info) -ci:fill(0) -ci:set_u32(0, vulkan.structure_type_instance_create_info) -ci:set_u64(24, ai:ptr()) -- pApplicationInfo +ci.fill(0) +ci.set_u32(0, vulkan.structure_type_instance_create_info) +ci.set_u64(24, ai.ptr()) -- pApplicationInfo local inst = memory(8) -local r = vulkan.create_instance(ci, 0, inst) +local r = vulkan::create_instance(ci, 0, inst) print("create_instance:", r == vulkan.success) local n = memory(4) -vulkan.enumerate_physical_devices(inst:u64(0), n, 0) -print("devices > 0:", n:u32(0) > 0) +vulkan::enumerate_physical_devices(inst.u64(0), n, 0) +print("devices > 0:", n.u32(0) > 0) -vulkan.destroy_instance(inst:u64(0), 0) +vulkan::destroy_instance(inst.u64(0), 0) print("done") diff --git a/include/cat/types/ffi.h b/include/cat/types/ffi.h index 3c34c72..a565376 100644 --- a/include/cat/types/ffi.h +++ b/include/cat/types/ffi.h @@ -7,11 +7,11 @@ * a declared signature, using libffi to perform the ABI-correct call. * * local lib = ffi.load("libm.so.6") - * local pow = lib:func("pow", "double(double,double)") + * local pow = lib.func("pow", "double(double,double)") * print(pow(2, 10)) -- 1024 * * local c = ffi.load("libc.so.6") - * local pid = c:func("getpid", "int()") + * local pid = c.func("getpid", "int()") * * Signature grammar: "RET(ARG,ARG,...)" where each type is one of * void, bool, char, int8/uint8, int16/uint16, int/long/int32/uint32, @@ -24,7 +24,7 @@ #include "cat/value.h" /* CAT_TYPES_FFI_Library -- a dlopen() handle as a first-class value. - * `lib:func(name, sig)` / `lib[name]` resolve a symbol. */ + * `lib.func(name, sig)` / `lib[name]` resolve a symbol. */ typedef struct CAT_TYPES_FFI_Library { CAT_VALUE_Value base; void *handle; diff --git a/include/cat/types/file.h b/include/cat/types/file.h index 52437b1..3d7e8a3 100644 --- a/include/cat/types/file.h +++ b/include/cat/types/file.h @@ -13,7 +13,7 @@ * BytesIO -- an in-memory byte buffer (read as bytes) * * `File` is also exposed to catscript as a class table so that - * `File::open(path)` / `File:open(path)` produce a `File` value. + * `File::open(path)` produces a `File` value (static, no self). */ #ifndef CAT_TYPES_FILE_H #define CAT_TYPES_FILE_H diff --git a/include/cat/types/memory.h b/include/cat/types/memory.h index 1c13c80..fee0837 100644 --- a/include/cat/types/memory.h +++ b/include/cat/types/memory.h @@ -14,10 +14,10 @@ * and for the whole VM run since values are not freed early). * * local m = memory(16) - * m:set_u32(0, 1234) - * print(m:u32(0)) -- 1234 - * m:set_text(4, "hi") -- 7 bytes: "hi" + NUL is at 4..6 - * print(m:text(4)) -- hi + * m.set_u32(0, 1234) + * print(m.u32(0)) -- 1234 + * m.set_text(4, "hi") -- 7 bytes: "hi" + NUL is at 4..6 + * print(m.text(4)) -- hi */ #ifndef CAT_TYPES_MEMORY_H #define CAT_TYPES_MEMORY_H diff --git a/include/cat/types/selector.h b/include/cat/types/selector.h index bddd070..6396c18 100644 --- a/include/cat/types/selector.h +++ b/include/cat/types/selector.h @@ -7,11 +7,11 @@ * compiler lowers surface syntax to ordinary method sends against a small * set of well-known selector names: * - * obj(a, b) -> obj:_parenthesis_(a, b) - * obj[i] -> obj:_squarebrackets_(i) - * obj[i] = v -> obj:_squarebrackets_set_(i, v) - * obj.k -> obj:_dot_("k") - * obj.k = v -> obj:_dot_set_("k", v) + * obj(a, b) -> obj._parenthesis_(a, b) + * obj[i] -> obj._squarebrackets_(i) + * obj[i] = v -> obj._squarebrackets_set_(i, v) + * obj.k -> obj._dot_("k") + * obj.k = v -> obj._dot_set_("k", v) * { ... } -> _curlybrackets_ hook on the new object * * Every object bound to these names inherits a default implementation diff --git a/src/cat/compiler.c b/src/cat/compiler.c index 430ea46..dda64a2 100644 --- a/src/cat/compiler.c +++ b/src/cat/compiler.c @@ -405,42 +405,81 @@ static void primary(Compiler *c) if (c->tok.kind == CAT_LEXER_TOK_NAME || (c->tok.kind >= CAT_LEXER_TOK_AND && c->tok.kind <= CAT_LEXER_TOK_EXTENDS)) { - int k = add_string(c, c->tok.text); - emit(c, CAT_BYTECODE_OP_GETATTR, k, 0, c->tok.line); + char mname[256]; + int mline = c->tok.line; + int k; + snprintf(mname, sizeof(mname), "%s", c->tok.text); next(c); + k = add_string(c, mname); + if (check(c, CAT_LEXER_TOK_LPAREN)) { + /* a.b(args) -- method call WITH self */ + int nargs = 0; + next(c); + while (!check(c, CAT_LEXER_TOK_RPAREN) && + !check(c, CAT_LEXER_TOK_EOF)) { + expr(c); + nargs++; + if (!accept(c, CAT_LEXER_TOK_COMMA)) + break; + } + expect(c, CAT_LEXER_TOK_RPAREN, "')'"); + emit(c, CAT_BYTECODE_OP_CALLMETHOD, nargs, k, + mline); + } else { + /* a.b -- read the member (a field, or a function + * value to be called later) */ + emit(c, CAT_BYTECODE_OP_GETATTR, k, 0, mline); + } } - } else if ((check(c, CAT_LEXER_TOK_COLON) || - check(c, CAT_LEXER_TOK_DCOLON)) && - c->lx.src[c->lx.pos] != '\0') { - /* method call: obj:name(args), or class method: - * Class::name(args). Both call with the receiver as - * the implicit first argument (`self`). */ + } else if (check(c, CAT_LEXER_TOK_DCOLON)) { + /* a::b -- static access: no `self`. `a::b(args)` calls + * `b` without the receiver; `a::b` reads the member. */ + next(c); + if (c->tok.kind == CAT_LEXER_TOK_NAME || + (c->tok.kind >= CAT_LEXER_TOK_AND && + c->tok.kind <= CAT_LEXER_TOK_EXTENDS)) { + char mname[256]; + int mline = c->tok.line; + int k; + snprintf(mname, sizeof(mname), "%s", c->tok.text); + next(c); + k = add_string(c, mname); + emit(c, CAT_BYTECODE_OP_GETATTR, k, 0, mline); + if (check(c, CAT_LEXER_TOK_LPAREN)) { + /* call the member WITHOUT self */ + int nargs = 0; + next(c); + while (!check(c, CAT_LEXER_TOK_RPAREN) && + !check(c, CAT_LEXER_TOK_EOF)) { + expr(c); + nargs++; + if (!accept(c, CAT_LEXER_TOK_COMMA)) + break; + } + expect(c, CAT_LEXER_TOK_RPAREN, "')'"); + emit(c, CAT_BYTECODE_OP_CALL, nargs, 0, mline); + } + } + } else if (check(c, CAT_LEXER_TOK_COLON)) { + /* The old `obj:method(args)` syntax was removed. Detect it + * (name '.') and point the user at the new forms. */ size_t sp = c->lx.pos; int sl = c->lx.line; - CAT_LEXER_Token la; + CAT_LEXER_Token la, nx; cat_lexer_next(&c->lx, &la); if (la.kind == CAT_LEXER_TOK_NAME) { - char mname[256]; - int k, nargs = 0; - snprintf(mname, sizeof(mname), "%s", la.text); - c->tok = la; - next(c); - expect(c, CAT_LEXER_TOK_LPAREN, "'('"); - while (!check(c, CAT_LEXER_TOK_RPAREN) && - !check(c, CAT_LEXER_TOK_EOF)) { - expr(c); - nargs++; - if (!accept(c, CAT_LEXER_TOK_COMMA)) - break; - } - expect(c, CAT_LEXER_TOK_RPAREN, "')'"); - k = add_string(c, mname); - emit(c, CAT_BYTECODE_OP_CALLMETHOD, nargs, k, c->tok.line); - } else { + cat_lexer_next(&c->lx, &nx); c->lx.pos = sp; c->lx.line = sl; - break; + if (nx.kind == CAT_LEXER_TOK_LPAREN) { + err_at(c, c->tok.line, + "the ':' method syntax was removed; " + "use '.' for obj.method(args) or " + "'::' for obj::method(args)"); + c->failed = 1; + } } + break; } else if (check(c, CAT_LEXER_TOK_LPAREN)) { int nargs = 0; next(c); diff --git a/src/cat/lexer.c b/src/cat/lexer.c index b9dd8aa..db092e4 100644 --- a/src/cat/lexer.c +++ b/src/cat/lexer.c @@ -281,16 +281,16 @@ int cat_lexer_next(CAT_LEXER_Lexer *lx, CAT_LEXER_Token *out) const char *cat_lexer_kind_name(int kind) { + /* Must match enum CAT_LEXER_Kind exactly (same order). */ static const char *names[] = { "EOF", "NAME", "INT", "FLOAT", "STRING", - "and", "break", "do", "else", "elseif", "end", "false", "for", - "function", "if", "in", "local", "not", "or", "repeat", - "return", "then", "true", "until", "while", - "yield", "try", "except", "raise", - "+", "-", "*", "/", "%", "^", "#", "==", "~=", "<=", ">=", "<", - ">", "=", "(", ")", "{", "}", "[", "]", ";", ",", ".", ":", - "::", "..", "->", - "class", "extends", "use" + "and", "break", "do", "else", "elseif", "end", "false", + "for", "function", "if", "in", "local", "nil", "not", + "or", "repeat", "return", "then", "true", "until", "while", + "yield", "try", "except", "raise", "use", "class", "extends", + "+", "-", "*", "/", "%", "^", "#", "==", "~=", "<=", ">=", + "<", ">", "=", "(", ")", "{", "}", "[", "]", ";", ",", + ".", ":", "::", "..", "->" }; if (kind >= 0 && kind < (int)(sizeof(names) / sizeof(names[0]))) return names[kind]; diff --git a/src/cat/types/ffi.c b/src/cat/types/ffi.c index 474e0d7..cd62e08 100644 --- a/src/cat/types/ffi.c +++ b/src/cat/types/ffi.c @@ -3,7 +3,7 @@ * * Naming rule: symbols here are cat_types_ffi_* / CAT_TYPES_FFI_*. * - * `ffi.load(path)` dlopen()s a shared object. `lib:func(name, sig)` + * `ffi.load(path)` dlopen()s a shared object. `lib.func(name, sig)` * dlsym()s a symbol and prepares a libffi call from the signature, e.g. * "double(double,double)". Calling the result makes the ABI-correct * native call and converts the result back to a catscript value. @@ -254,7 +254,7 @@ CAT_VALUE_Vtable *cat_types_ffi_function_vtable(void) /* ---- the Library value ---------------------------------------------- */ -/* lib:func(name, sig) -- the explicit form that carries the signature. */ +/* lib.func(name, sig) -- the explicit form that carries the signature. */ static int lib_method_func(CAT_VM_State *vm, CAT_VALUE_Value **args, int nargs, CAT_VALUE_Value **out) { @@ -280,7 +280,7 @@ static int library_get_attr_full(CAT_VALUE_Value *self, const char *name, static int library_call(CAT_VALUE_Value *self, CAT_VALUE_Value **args, int nargs, CAT_VALUE_Value **out, CAT_ERROR_Error *err) { - /* Calling a library directly: lib("name", "sig") == lib:func(...) */ + /* Calling a library directly: lib("name", "sig") == lib.func(...) */ CAT_VALUE_Value *callargs[4]; callargs[0] = self; diff --git a/src/cat/types/file.c b/src/cat/types/file.c index e723504..bab794a 100644 --- a/src/cat/types/file.c +++ b/src/cat/types/file.c @@ -9,8 +9,8 @@ * f = File::open("x.txt") -- a real file * s = StringIO("hello") -- an in-memory text stream * b = BytesIO() -- an in-memory byte stream - * f:write("data"); f:close() - * s:read() + * f.write("data"); f.close() + * s.read() * * Thread-safety: every stream owns its own buffer/handle; nothing here * touches shared mutable state, so streams created and used on separate @@ -363,12 +363,14 @@ static int cm_open(CAT_VM_State *vm, CAT_VALUE_Value **args, int nargs, const char *path, *mode; (void)vm; - if (nargs < 2) { + /* `File::open(path, mode)` is static (`::`), so the receiver is NOT + * passed: path is args[0] and mode args[1]. */ + if (nargs < 1) { *out = cat_types_empty(); return 0; } - path = as_text(args[1]); - mode = (nargs > 2) ? as_text(args[2]) : "r"; + path = as_text(args[0]); + mode = (nargs > 1) ? as_text(args[1]) : "r"; if (mode == NULL) mode = "r"; *out = cat_types_file_open(path, mode); diff --git a/src/cat/types/generator.c b/src/cat/types/generator.c index bc76bce..de57480 100644 --- a/src/cat/types/generator.c +++ b/src/cat/types/generator.c @@ -16,7 +16,7 @@ static int generator_next(CAT_VALUE_Value *self, CAT_VALUE_Value **out, CAT_ERROR_Error *err); -/* `it:next()` method form: receiver is args[0]. */ +/* `it.next()` method form: receiver is args[0]. */ static int gen_method_next(CAT_VM_State *vm, CAT_VALUE_Value **args, int nargs, CAT_VALUE_Value **out); @@ -113,7 +113,7 @@ static int generator_next(CAT_VALUE_Value *self, CAT_VALUE_Value **out, return 1; /* exhausted */ } -/* `it:next()` -- returns the next value, or empty when exhausted. */ +/* `it.next()` -- returns the next value, or empty when exhausted. */ static int gen_method_next(CAT_VM_State *vm, CAT_VALUE_Value **args, int nargs, CAT_VALUE_Value **out) { diff --git a/src/cat/types/list.c b/src/cat/types/list.c index cff8604..3108f52 100644 --- a/src/cat/types/list.c +++ b/src/cat/types/list.c @@ -24,7 +24,7 @@ static int list_next(CAT_VALUE_Value *self, CAT_VALUE_Value **out, return 0; } -/* list[i] / list:get(i) -- 0-based indexing. */ +/* list[i] / list.get(i) -- 0-based indexing. */ static int list_get_attribute(CAT_VALUE_Value *self, const char *name, CAT_VALUE_Value **out, CAT_ERROR_Error *err) { diff --git a/src/cat/types/memory.c b/src/cat/types/memory.c index 9d34e7b..a3d3a0a 100644 --- a/src/cat/types/memory.c +++ b/src/cat/types/memory.c @@ -111,7 +111,7 @@ static int mem_set_u64(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_V static int mem_set_f32(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **o){ return mem_set(a[0], a+1, n-1, o, &vm->err, 4, 1); } static int mem_set_f64(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **o){ return mem_set(a[0], a+1, n-1, o, &vm->err, 8, 1); } -/* m:text(off) -- read a NUL-terminated string starting at off. */ +/* m.text(off) -- read a NUL-terminated string starting at off. */ static int mem_text(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **out) { @@ -126,7 +126,7 @@ static int mem_text(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, return 0; } -/* m:set_text(off, s) -- write s plus a terminating NUL. */ +/* m.set_text(off, s) -- write s plus a terminating NUL. */ static int mem_set_text(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **out) { @@ -144,7 +144,7 @@ static int mem_set_text(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, return 0; } -/* m:ptr() -- the address as an int (for an FFI call). */ +/* m.ptr() -- the address as an int (for an FFI call). */ static int mem_ptr(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **out) { @@ -154,7 +154,7 @@ static int mem_ptr(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, return 0; } -/* m:size() -- the buffer length. */ +/* m.size() -- the buffer length. */ static int mem_size_(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **out) { @@ -164,7 +164,7 @@ static int mem_size_(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, return 0; } -/* m:fill(byte [, off, count]) -- set bytes. */ +/* m.fill(byte [, off, count]) -- set bytes. */ static int mem_fill(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **out) { @@ -183,7 +183,7 @@ static int mem_fill(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, return 0; } -/* m:copy(dst_off, src_memory, src_off, count) -- bounded memcpy. */ +/* m.copy(dst_off, src_memory, src_off, count) -- bounded memcpy. */ static int mem_copy(CAT_VM_State *vm, CAT_VALUE_Value **a, int n, CAT_VALUE_Value **out) { diff --git a/src/cat/types/selector.c b/src/cat/types/selector.c index 622e517..2e685fc 100644 --- a/src/cat/types/selector.c +++ b/src/cat/types/selector.c @@ -4,7 +4,7 @@ * Naming rule: symbols here are cat_types_selector_* / CAT_TYPES_SELECTOR_*. * * Each selector is a bound default method. When a program sends - * `obj:_dot_(k)` and the object does not define `_dot_`, the attribute + * `obj._dot_(k)` and the object does not define `_dot_`, the attribute * dispatcher hands back one of these instead, and calling it performs the * raw built-in access. This is what lets the compiler drop the special * GETATTR/SETATTR/GETIDX/SETIDX/CALL cases: they are all just `:` sends. @@ -35,7 +35,7 @@ static void sel_key(CAT_VALUE_Value *v, char *buf, size_t n) buf[0] = '\0'; } -/* A selector is called as `receiver:_sel_(...)`, so args[0] is the +/* A selector is called as `receiver._sel_(...)`, so args[0] is the * receiver and args[1..] are the selector's own arguments. */ static int selector_call(CAT_VALUE_Value *self, CAT_VALUE_Value **args, int nargs, CAT_VALUE_Value **out, CAT_ERROR_Error *err) diff --git a/std/fs/fs.cat b/std/fs/fs.cat index 54bab3f..daf651d 100644 --- a/std/fs/fs.cat +++ b/std/fs/fs.cat @@ -9,8 +9,8 @@ function fs_read(path) if f == empty then return "" end - local data = f:read() - f:close() + local data = f.read() + f.close() return data end @@ -20,8 +20,8 @@ function fs_write(path, text) if f == empty then return false end - f:write(text) - f:close() + f.write(text) + f.close() return true end @@ -31,8 +31,8 @@ function fs_append(path, text) if f == empty then return false end - f:write(text) - f:close() + f.write(text) + f.close() return true end diff --git a/std/glfw/glfw.cat b/std/glfw/glfw.cat index 8a824d2..906719a 100644 --- a/std/glfw/glfw.cat +++ b/std/glfw/glfw.cat @@ -10,130 +10,130 @@ local _lib = ffi::load('libglfw.so.3') glfw = {} glfw.lib = _lib -glfw.init = _lib:func('glfwInit', 'int()') -glfw.terminate = _lib:func('glfwTerminate', 'void()') -glfw.init_hint = _lib:func('glfwInitHint', 'void(int,int)') -glfw.init_allocator = _lib:func('glfwInitAllocator', 'void(ptr)') -glfw.init_vulkan_loader = _lib:func('glfwInitVulkanLoader', 'void(int)') -glfw.get_version = _lib:func('glfwGetVersion', 'void(ptr,ptr,ptr)') -glfw.get_version_string = _lib:func('glfwGetVersionString', 'string()') -glfw.get_error = _lib:func('glfwGetError', 'int(ptr)') -glfw.set_error_callback = _lib:func('glfwSetErrorCallback', 'int(int)') -glfw.get_platform = _lib:func('glfwGetPlatform', 'int()') -glfw.platform_supported = _lib:func('glfwPlatformSupported', 'int(int)') -glfw.get_monitors = _lib:func('glfwGetMonitors', 'ptr(ptr)') -glfw.get_primary_monitor = _lib:func('glfwGetPrimaryMonitor', 'ptr()') -glfw.get_monitor_pos = _lib:func('glfwGetMonitorPos', 'void(ptr,ptr,ptr)') -glfw.get_monitor_workarea = _lib:func('glfwGetMonitorWorkarea', 'void(ptr,ptr,ptr,ptr,ptr)') -glfw.get_monitor_physical_size = _lib:func('glfwGetMonitorPhysicalSize', 'void(ptr,ptr,ptr)') -glfw.get_monitor_content_scale = _lib:func('glfwGetMonitorContentScale', 'void(ptr,ptr,ptr)') -glfw.get_monitor_name = _lib:func('glfwGetMonitorName', 'string(ptr)') -glfw.set_monitor_user_pointer = _lib:func('glfwSetMonitorUserPointer', 'void(ptr,ptr)') -glfw.get_monitor_user_pointer = _lib:func('glfwGetMonitorUserPointer', 'ptr(ptr)') -glfw.set_monitor_callback = _lib:func('glfwSetMonitorCallback', 'int(int)') -glfw.get_video_modes = _lib:func('glfwGetVideoModes', 'ptr(ptr,ptr)') -glfw.get_video_mode = _lib:func('glfwGetVideoMode', 'ptr(ptr)') -glfw.set_gamma = _lib:func('glfwSetGamma', 'void(ptr,float)') -glfw.get_gamma_ramp = _lib:func('glfwGetGammaRamp', 'ptr(ptr)') -glfw.set_gamma_ramp = _lib:func('glfwSetGammaRamp', 'void(ptr,ptr)') -glfw.default_window_hints = _lib:func('glfwDefaultWindowHints', 'void()') -glfw.window_hint = _lib:func('glfwWindowHint', 'void(int,int)') -glfw.window_hint_string = _lib:func('glfwWindowHintString', 'void(int,string)') -glfw.create_window = _lib:func('glfwCreateWindow', 'ptr(int,int,string,ptr,ptr)') -glfw.destroy_window = _lib:func('glfwDestroyWindow', 'void(ptr)') -glfw.window_should_close = _lib:func('glfwWindowShouldClose', 'int(ptr)') -glfw.set_window_should_close = _lib:func('glfwSetWindowShouldClose', 'void(ptr,int)') -glfw.get_window_title = _lib:func('glfwGetWindowTitle', 'string(ptr)') -glfw.set_window_title = _lib:func('glfwSetWindowTitle', 'void(ptr,string)') -glfw.set_window_icon = _lib:func('glfwSetWindowIcon', 'void(ptr,int,ptr)') -glfw.get_window_pos = _lib:func('glfwGetWindowPos', 'void(ptr,ptr,ptr)') -glfw.set_window_pos = _lib:func('glfwSetWindowPos', 'void(ptr,int,int)') -glfw.get_window_size = _lib:func('glfwGetWindowSize', 'void(ptr,ptr,ptr)') -glfw.set_window_size_limits = _lib:func('glfwSetWindowSizeLimits', 'void(ptr,int,int,int,int)') -glfw.set_window_aspect_ratio = _lib:func('glfwSetWindowAspectRatio', 'void(ptr,int,int)') -glfw.set_window_size = _lib:func('glfwSetWindowSize', 'void(ptr,int,int)') -glfw.get_framebuffer_size = _lib:func('glfwGetFramebufferSize', 'void(ptr,ptr,ptr)') -glfw.get_window_frame_size = _lib:func('glfwGetWindowFrameSize', 'void(ptr,ptr,ptr,ptr,ptr)') -glfw.get_window_content_scale = _lib:func('glfwGetWindowContentScale', 'void(ptr,ptr,ptr)') -glfw.get_window_opacity = _lib:func('glfwGetWindowOpacity', 'float(ptr)') -glfw.set_window_opacity = _lib:func('glfwSetWindowOpacity', 'void(ptr,float)') -glfw.iconify_window = _lib:func('glfwIconifyWindow', 'void(ptr)') -glfw.restore_window = _lib:func('glfwRestoreWindow', 'void(ptr)') -glfw.maximize_window = _lib:func('glfwMaximizeWindow', 'void(ptr)') -glfw.show_window = _lib:func('glfwShowWindow', 'void(ptr)') -glfw.hide_window = _lib:func('glfwHideWindow', 'void(ptr)') -glfw.focus_window = _lib:func('glfwFocusWindow', 'void(ptr)') -glfw.request_window_attention = _lib:func('glfwRequestWindowAttention', 'void(ptr)') -glfw.get_window_monitor = _lib:func('glfwGetWindowMonitor', 'ptr(ptr)') -glfw.set_window_monitor = _lib:func('glfwSetWindowMonitor', 'void(ptr,ptr,int,int,int,int,int)') -glfw.get_window_attrib = _lib:func('glfwGetWindowAttrib', 'int(ptr,int)') -glfw.set_window_attrib = _lib:func('glfwSetWindowAttrib', 'void(ptr,int,int)') -glfw.set_window_user_pointer = _lib:func('glfwSetWindowUserPointer', 'void(ptr,ptr)') -glfw.get_window_user_pointer = _lib:func('glfwGetWindowUserPointer', 'ptr(ptr)') -glfw.set_window_pos_callback = _lib:func('glfwSetWindowPosCallback', 'int(ptr,int)') -glfw.set_window_size_callback = _lib:func('glfwSetWindowSizeCallback', 'int(ptr,int)') -glfw.set_window_close_callback = _lib:func('glfwSetWindowCloseCallback', 'int(ptr,int)') -glfw.set_window_refresh_callback = _lib:func('glfwSetWindowRefreshCallback', 'int(ptr,int)') -glfw.set_window_focus_callback = _lib:func('glfwSetWindowFocusCallback', 'int(ptr,int)') -glfw.set_window_iconify_callback = _lib:func('glfwSetWindowIconifyCallback', 'int(ptr,int)') -glfw.set_window_maximize_callback = _lib:func('glfwSetWindowMaximizeCallback', 'int(ptr,int)') -glfw.set_framebuffer_size_callback = _lib:func('glfwSetFramebufferSizeCallback', 'int(ptr,int)') -glfw.set_window_content_scale_callback = _lib:func('glfwSetWindowContentScaleCallback', 'int(ptr,int)') -glfw.poll_events = _lib:func('glfwPollEvents', 'void()') -glfw.wait_events = _lib:func('glfwWaitEvents', 'void()') -glfw.wait_events_timeout = _lib:func('glfwWaitEventsTimeout', 'void(double)') -glfw.post_empty_event = _lib:func('glfwPostEmptyEvent', 'void()') -glfw.get_input_mode = _lib:func('glfwGetInputMode', 'int(ptr,int)') -glfw.set_input_mode = _lib:func('glfwSetInputMode', 'void(ptr,int,int)') -glfw.raw_mouse_motion_supported = _lib:func('glfwRawMouseMotionSupported', 'int()') -glfw.get_key_name = _lib:func('glfwGetKeyName', 'string(int,int)') -glfw.get_key_scancode = _lib:func('glfwGetKeyScancode', 'int(int)') -glfw.get_key = _lib:func('glfwGetKey', 'int(ptr,int)') -glfw.get_mouse_button = _lib:func('glfwGetMouseButton', 'int(ptr,int)') -glfw.get_cursor_pos = _lib:func('glfwGetCursorPos', 'void(ptr,ptr,ptr)') -glfw.set_cursor_pos = _lib:func('glfwSetCursorPos', 'void(ptr,double,double)') -glfw.create_cursor = _lib:func('glfwCreateCursor', 'ptr(ptr,int,int)') -glfw.create_standard_cursor = _lib:func('glfwCreateStandardCursor', 'ptr(int)') -glfw.destroy_cursor = _lib:func('glfwDestroyCursor', 'void(ptr)') -glfw.set_cursor = _lib:func('glfwSetCursor', 'void(ptr,ptr)') -glfw.set_key_callback = _lib:func('glfwSetKeyCallback', 'int(ptr,int)') -glfw.set_char_callback = _lib:func('glfwSetCharCallback', 'int(ptr,int)') -glfw.set_char_mods_callback = _lib:func('glfwSetCharModsCallback', 'int(ptr,int)') -glfw.set_mouse_button_callback = _lib:func('glfwSetMouseButtonCallback', 'int(ptr,int)') -glfw.set_cursor_pos_callback = _lib:func('glfwSetCursorPosCallback', 'int(ptr,int)') -glfw.set_cursor_enter_callback = _lib:func('glfwSetCursorEnterCallback', 'int(ptr,int)') -glfw.set_scroll_callback = _lib:func('glfwSetScrollCallback', 'int(ptr,int)') -glfw.set_drop_callback = _lib:func('glfwSetDropCallback', 'int(ptr,int)') -glfw.joystick_present = _lib:func('glfwJoystickPresent', 'int(int)') -glfw.get_joystick_axes = _lib:func('glfwGetJoystickAxes', 'ptr(int,ptr)') -glfw.get_joystick_buttons = _lib:func('glfwGetJoystickButtons', 'ptr(int,ptr)') -glfw.get_joystick_hats = _lib:func('glfwGetJoystickHats', 'ptr(int,ptr)') -glfw.get_joystick_name = _lib:func('glfwGetJoystickName', 'string(int)') -glfw.get_joystick_guid = _lib:func('glfwGetJoystickGUID', 'string(int)') -glfw.set_joystick_user_pointer = _lib:func('glfwSetJoystickUserPointer', 'void(int,ptr)') -glfw.get_joystick_user_pointer = _lib:func('glfwGetJoystickUserPointer', 'ptr(int)') -glfw.joystick_is_gamepad = _lib:func('glfwJoystickIsGamepad', 'int(int)') -glfw.set_joystick_callback = _lib:func('glfwSetJoystickCallback', 'int(int)') -glfw.update_gamepad_mappings = _lib:func('glfwUpdateGamepadMappings', 'int(string)') -glfw.get_gamepad_name = _lib:func('glfwGetGamepadName', 'string(int)') -glfw.get_gamepad_state = _lib:func('glfwGetGamepadState', 'int(int,ptr)') -glfw.set_clipboard_string = _lib:func('glfwSetClipboardString', 'void(ptr,string)') -glfw.get_clipboard_string = _lib:func('glfwGetClipboardString', 'string(ptr)') -glfw.get_time = _lib:func('glfwGetTime', 'double()') -glfw.set_time = _lib:func('glfwSetTime', 'void(double)') -glfw.get_timer_value = _lib:func('glfwGetTimerValue', 'uint64()') -glfw.get_timer_frequency = _lib:func('glfwGetTimerFrequency', 'uint64()') -glfw.make_context_current = _lib:func('glfwMakeContextCurrent', 'void(ptr)') -glfw.get_current_context = _lib:func('glfwGetCurrentContext', 'ptr()') -glfw.swap_buffers = _lib:func('glfwSwapBuffers', 'void(ptr)') -glfw.swap_interval = _lib:func('glfwSwapInterval', 'void(int)') -glfw.extension_supported = _lib:func('glfwExtensionSupported', 'int(string)') -glfw.get_proc_address = _lib:func('glfwGetProcAddress', 'int(string)') -glfw.vulkan_supported = _lib:func('glfwVulkanSupported', 'int()') -glfw.get_required_instance_extensions = _lib:func('glfwGetRequiredInstanceExtensions', 'ptr(ptr)') -glfw.get_instance_proc_address = _lib:func('glfwGetInstanceProcAddress', 'int(int,string)') -glfw.get_physical_device_presentation_support = _lib:func('glfwGetPhysicalDevicePresentationSupport', 'int(int,int,int)') -glfw.create_window_surface = _lib:func('glfwCreateWindowSurface', 'int(int,ptr,ptr,ptr)') +glfw.init = _lib.func('glfwInit', 'int()') +glfw.terminate = _lib.func('glfwTerminate', 'void()') +glfw.init_hint = _lib.func('glfwInitHint', 'void(int,int)') +glfw.init_allocator = _lib.func('glfwInitAllocator', 'void(ptr)') +glfw.init_vulkan_loader = _lib.func('glfwInitVulkanLoader', 'void(int)') +glfw.get_version = _lib.func('glfwGetVersion', 'void(ptr,ptr,ptr)') +glfw.get_version_string = _lib.func('glfwGetVersionString', 'string()') +glfw.get_error = _lib.func('glfwGetError', 'int(ptr)') +glfw.set_error_callback = _lib.func('glfwSetErrorCallback', 'int(int)') +glfw.get_platform = _lib.func('glfwGetPlatform', 'int()') +glfw.platform_supported = _lib.func('glfwPlatformSupported', 'int(int)') +glfw.get_monitors = _lib.func('glfwGetMonitors', 'ptr(ptr)') +glfw.get_primary_monitor = _lib.func('glfwGetPrimaryMonitor', 'ptr()') +glfw.get_monitor_pos = _lib.func('glfwGetMonitorPos', 'void(ptr,ptr,ptr)') +glfw.get_monitor_workarea = _lib.func('glfwGetMonitorWorkarea', 'void(ptr,ptr,ptr,ptr,ptr)') +glfw.get_monitor_physical_size = _lib.func('glfwGetMonitorPhysicalSize', 'void(ptr,ptr,ptr)') +glfw.get_monitor_content_scale = _lib.func('glfwGetMonitorContentScale', 'void(ptr,ptr,ptr)') +glfw.get_monitor_name = _lib.func('glfwGetMonitorName', 'string(ptr)') +glfw.set_monitor_user_pointer = _lib.func('glfwSetMonitorUserPointer', 'void(ptr,ptr)') +glfw.get_monitor_user_pointer = _lib.func('glfwGetMonitorUserPointer', 'ptr(ptr)') +glfw.set_monitor_callback = _lib.func('glfwSetMonitorCallback', 'int(int)') +glfw.get_video_modes = _lib.func('glfwGetVideoModes', 'ptr(ptr,ptr)') +glfw.get_video_mode = _lib.func('glfwGetVideoMode', 'ptr(ptr)') +glfw.set_gamma = _lib.func('glfwSetGamma', 'void(ptr,float)') +glfw.get_gamma_ramp = _lib.func('glfwGetGammaRamp', 'ptr(ptr)') +glfw.set_gamma_ramp = _lib.func('glfwSetGammaRamp', 'void(ptr,ptr)') +glfw.default_window_hints = _lib.func('glfwDefaultWindowHints', 'void()') +glfw.window_hint = _lib.func('glfwWindowHint', 'void(int,int)') +glfw.window_hint_string = _lib.func('glfwWindowHintString', 'void(int,string)') +glfw.create_window = _lib.func('glfwCreateWindow', 'ptr(int,int,string,ptr,ptr)') +glfw.destroy_window = _lib.func('glfwDestroyWindow', 'void(ptr)') +glfw.window_should_close = _lib.func('glfwWindowShouldClose', 'int(ptr)') +glfw.set_window_should_close = _lib.func('glfwSetWindowShouldClose', 'void(ptr,int)') +glfw.get_window_title = _lib.func('glfwGetWindowTitle', 'string(ptr)') +glfw.set_window_title = _lib.func('glfwSetWindowTitle', 'void(ptr,string)') +glfw.set_window_icon = _lib.func('glfwSetWindowIcon', 'void(ptr,int,ptr)') +glfw.get_window_pos = _lib.func('glfwGetWindowPos', 'void(ptr,ptr,ptr)') +glfw.set_window_pos = _lib.func('glfwSetWindowPos', 'void(ptr,int,int)') +glfw.get_window_size = _lib.func('glfwGetWindowSize', 'void(ptr,ptr,ptr)') +glfw.set_window_size_limits = _lib.func('glfwSetWindowSizeLimits', 'void(ptr,int,int,int,int)') +glfw.set_window_aspect_ratio = _lib.func('glfwSetWindowAspectRatio', 'void(ptr,int,int)') +glfw.set_window_size = _lib.func('glfwSetWindowSize', 'void(ptr,int,int)') +glfw.get_framebuffer_size = _lib.func('glfwGetFramebufferSize', 'void(ptr,ptr,ptr)') +glfw.get_window_frame_size = _lib.func('glfwGetWindowFrameSize', 'void(ptr,ptr,ptr,ptr,ptr)') +glfw.get_window_content_scale = _lib.func('glfwGetWindowContentScale', 'void(ptr,ptr,ptr)') +glfw.get_window_opacity = _lib.func('glfwGetWindowOpacity', 'float(ptr)') +glfw.set_window_opacity = _lib.func('glfwSetWindowOpacity', 'void(ptr,float)') +glfw.iconify_window = _lib.func('glfwIconifyWindow', 'void(ptr)') +glfw.restore_window = _lib.func('glfwRestoreWindow', 'void(ptr)') +glfw.maximize_window = _lib.func('glfwMaximizeWindow', 'void(ptr)') +glfw.show_window = _lib.func('glfwShowWindow', 'void(ptr)') +glfw.hide_window = _lib.func('glfwHideWindow', 'void(ptr)') +glfw.focus_window = _lib.func('glfwFocusWindow', 'void(ptr)') +glfw.request_window_attention = _lib.func('glfwRequestWindowAttention', 'void(ptr)') +glfw.get_window_monitor = _lib.func('glfwGetWindowMonitor', 'ptr(ptr)') +glfw.set_window_monitor = _lib.func('glfwSetWindowMonitor', 'void(ptr,ptr,int,int,int,int,int)') +glfw.get_window_attrib = _lib.func('glfwGetWindowAttrib', 'int(ptr,int)') +glfw.set_window_attrib = _lib.func('glfwSetWindowAttrib', 'void(ptr,int,int)') +glfw.set_window_user_pointer = _lib.func('glfwSetWindowUserPointer', 'void(ptr,ptr)') +glfw.get_window_user_pointer = _lib.func('glfwGetWindowUserPointer', 'ptr(ptr)') +glfw.set_window_pos_callback = _lib.func('glfwSetWindowPosCallback', 'int(ptr,int)') +glfw.set_window_size_callback = _lib.func('glfwSetWindowSizeCallback', 'int(ptr,int)') +glfw.set_window_close_callback = _lib.func('glfwSetWindowCloseCallback', 'int(ptr,int)') +glfw.set_window_refresh_callback = _lib.func('glfwSetWindowRefreshCallback', 'int(ptr,int)') +glfw.set_window_focus_callback = _lib.func('glfwSetWindowFocusCallback', 'int(ptr,int)') +glfw.set_window_iconify_callback = _lib.func('glfwSetWindowIconifyCallback', 'int(ptr,int)') +glfw.set_window_maximize_callback = _lib.func('glfwSetWindowMaximizeCallback', 'int(ptr,int)') +glfw.set_framebuffer_size_callback = _lib.func('glfwSetFramebufferSizeCallback', 'int(ptr,int)') +glfw.set_window_content_scale_callback = _lib.func('glfwSetWindowContentScaleCallback', 'int(ptr,int)') +glfw.poll_events = _lib.func('glfwPollEvents', 'void()') +glfw.wait_events = _lib.func('glfwWaitEvents', 'void()') +glfw.wait_events_timeout = _lib.func('glfwWaitEventsTimeout', 'void(double)') +glfw.post_empty_event = _lib.func('glfwPostEmptyEvent', 'void()') +glfw.get_input_mode = _lib.func('glfwGetInputMode', 'int(ptr,int)') +glfw.set_input_mode = _lib.func('glfwSetInputMode', 'void(ptr,int,int)') +glfw.raw_mouse_motion_supported = _lib.func('glfwRawMouseMotionSupported', 'int()') +glfw.get_key_name = _lib.func('glfwGetKeyName', 'string(int,int)') +glfw.get_key_scancode = _lib.func('glfwGetKeyScancode', 'int(int)') +glfw.get_key = _lib.func('glfwGetKey', 'int(ptr,int)') +glfw.get_mouse_button = _lib.func('glfwGetMouseButton', 'int(ptr,int)') +glfw.get_cursor_pos = _lib.func('glfwGetCursorPos', 'void(ptr,ptr,ptr)') +glfw.set_cursor_pos = _lib.func('glfwSetCursorPos', 'void(ptr,double,double)') +glfw.create_cursor = _lib.func('glfwCreateCursor', 'ptr(ptr,int,int)') +glfw.create_standard_cursor = _lib.func('glfwCreateStandardCursor', 'ptr(int)') +glfw.destroy_cursor = _lib.func('glfwDestroyCursor', 'void(ptr)') +glfw.set_cursor = _lib.func('glfwSetCursor', 'void(ptr,ptr)') +glfw.set_key_callback = _lib.func('glfwSetKeyCallback', 'int(ptr,int)') +glfw.set_char_callback = _lib.func('glfwSetCharCallback', 'int(ptr,int)') +glfw.set_char_mods_callback = _lib.func('glfwSetCharModsCallback', 'int(ptr,int)') +glfw.set_mouse_button_callback = _lib.func('glfwSetMouseButtonCallback', 'int(ptr,int)') +glfw.set_cursor_pos_callback = _lib.func('glfwSetCursorPosCallback', 'int(ptr,int)') +glfw.set_cursor_enter_callback = _lib.func('glfwSetCursorEnterCallback', 'int(ptr,int)') +glfw.set_scroll_callback = _lib.func('glfwSetScrollCallback', 'int(ptr,int)') +glfw.set_drop_callback = _lib.func('glfwSetDropCallback', 'int(ptr,int)') +glfw.joystick_present = _lib.func('glfwJoystickPresent', 'int(int)') +glfw.get_joystick_axes = _lib.func('glfwGetJoystickAxes', 'ptr(int,ptr)') +glfw.get_joystick_buttons = _lib.func('glfwGetJoystickButtons', 'ptr(int,ptr)') +glfw.get_joystick_hats = _lib.func('glfwGetJoystickHats', 'ptr(int,ptr)') +glfw.get_joystick_name = _lib.func('glfwGetJoystickName', 'string(int)') +glfw.get_joystick_guid = _lib.func('glfwGetJoystickGUID', 'string(int)') +glfw.set_joystick_user_pointer = _lib.func('glfwSetJoystickUserPointer', 'void(int,ptr)') +glfw.get_joystick_user_pointer = _lib.func('glfwGetJoystickUserPointer', 'ptr(int)') +glfw.joystick_is_gamepad = _lib.func('glfwJoystickIsGamepad', 'int(int)') +glfw.set_joystick_callback = _lib.func('glfwSetJoystickCallback', 'int(int)') +glfw.update_gamepad_mappings = _lib.func('glfwUpdateGamepadMappings', 'int(string)') +glfw.get_gamepad_name = _lib.func('glfwGetGamepadName', 'string(int)') +glfw.get_gamepad_state = _lib.func('glfwGetGamepadState', 'int(int,ptr)') +glfw.set_clipboard_string = _lib.func('glfwSetClipboardString', 'void(ptr,string)') +glfw.get_clipboard_string = _lib.func('glfwGetClipboardString', 'string(ptr)') +glfw.get_time = _lib.func('glfwGetTime', 'double()') +glfw.set_time = _lib.func('glfwSetTime', 'void(double)') +glfw.get_timer_value = _lib.func('glfwGetTimerValue', 'uint64()') +glfw.get_timer_frequency = _lib.func('glfwGetTimerFrequency', 'uint64()') +glfw.make_context_current = _lib.func('glfwMakeContextCurrent', 'void(ptr)') +glfw.get_current_context = _lib.func('glfwGetCurrentContext', 'ptr()') +glfw.swap_buffers = _lib.func('glfwSwapBuffers', 'void(ptr)') +glfw.swap_interval = _lib.func('glfwSwapInterval', 'void(int)') +glfw.extension_supported = _lib.func('glfwExtensionSupported', 'int(string)') +glfw.get_proc_address = _lib.func('glfwGetProcAddress', 'int(string)') +glfw.vulkan_supported = _lib.func('glfwVulkanSupported', 'int()') +glfw.get_required_instance_extensions = _lib.func('glfwGetRequiredInstanceExtensions', 'ptr(ptr)') +glfw.get_instance_proc_address = _lib.func('glfwGetInstanceProcAddress', 'int(int,string)') +glfw.get_physical_device_presentation_support = _lib.func('glfwGetPhysicalDevicePresentationSupport', 'int(int,int,int)') +glfw.create_window_surface = _lib.func('glfwCreateWindowSurface', 'int(int,ptr,ptr,ptr)') -- constants glfw.version_major = 3 diff --git a/std/lang/parser.cat b/std/lang/parser.cat index 0fb711e..3645405 100644 --- a/std/lang/parser.cat +++ b/std/lang/parser.cat @@ -151,17 +151,28 @@ function par_suffixes(e) if par_at(".") then par_advance() local nm = par_expect("NAME", "attribute name") - e = { t = "attr", obj = e, name = nm.text } + if par_at("(") then + -- obj.name(args): method call WITH self + local args = par_args() + e = { t = "method", obj = e, name = nm.text, args = args } + else + e = { t = "attr", obj = e, name = nm.text } + end + elseif par_at("::") then + par_advance() + local nm = par_expect("NAME", "static name") + if par_at("(") then + -- obj::name(args): call WITHOUT self + local target = { t = "attr", obj = e, name = nm.text } + e = { t = "call", f = target, args = par_args() } + else + e = { t = "attr", obj = e, name = nm.text } + end elseif par_at("[") then par_advance() local idx = par_expr() par_expect("]", "']'") e = { t = "index", obj = e, idx = idx } - elseif par_at(":") then - par_advance() - local nm = par_expect("NAME", "method name") - local args = par_args() - e = { t = "method", obj = e, name = nm.text, args = args } elseif par_at("(") then local args = par_args() e = { t = "call", f = e, args = args } diff --git a/std/vulkan/vulkan.cat b/std/vulkan/vulkan.cat index aecce16..c238f11 100644 --- a/std/vulkan/vulkan.cat +++ b/std/vulkan/vulkan.cat @@ -11,656 +11,656 @@ vulkan = {} vulkan.lib = _lib -- commands -vulkan.create_instance = _lib:func('vkCreateInstance', 'uint32(ptr,ptr,ptr)') -vulkan.destroy_instance = _lib:func('vkDestroyInstance', 'void(ptr,ptr)') -vulkan.enumerate_physical_devices = _lib:func('vkEnumeratePhysicalDevices', 'uint32(ptr,ptr,ptr)') -vulkan.get_device_proc_addr = _lib:func('vkGetDeviceProcAddr', 'ptr(ptr,ptr)') -vulkan.get_instance_proc_addr = _lib:func('vkGetInstanceProcAddr', 'ptr(ptr,ptr)') -vulkan.get_physical_device_properties = _lib:func('vkGetPhysicalDeviceProperties', 'void(ptr,ptr)') -vulkan.get_physical_device_queue_family_properties = _lib:func('vkGetPhysicalDeviceQueueFamilyProperties', 'void(ptr,ptr,ptr)') -vulkan.get_physical_device_memory_properties = _lib:func('vkGetPhysicalDeviceMemoryProperties', 'void(ptr,ptr)') -vulkan.get_physical_device_features = _lib:func('vkGetPhysicalDeviceFeatures', 'void(ptr,ptr)') -vulkan.get_physical_device_format_properties = _lib:func('vkGetPhysicalDeviceFormatProperties', 'void(ptr,uint32,ptr)') -vulkan.get_physical_device_image_format_properties = _lib:func('vkGetPhysicalDeviceImageFormatProperties', 'uint32(ptr,uint32,uint32,uint32,ptr,ptr,ptr)') -vulkan.create_device = _lib:func('vkCreateDevice', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_device = _lib:func('vkCreateDevice', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_device = _lib:func('vkDestroyDevice', 'void(ptr,ptr)') -vulkan.enumerate_instance_version = _lib:func('vkEnumerateInstanceVersion', 'uint32(ptr)') -vulkan.enumerate_instance_layer_properties = _lib:func('vkEnumerateInstanceLayerProperties', 'uint32(ptr,ptr)') -vulkan.enumerate_instance_extension_properties = _lib:func('vkEnumerateInstanceExtensionProperties', 'uint32(ptr,ptr,ptr)') -vulkan.enumerate_device_layer_properties = _lib:func('vkEnumerateDeviceLayerProperties', 'uint32(ptr,ptr,ptr)') -vulkan.enumerate_device_layer_properties = _lib:func('vkEnumerateDeviceLayerProperties', 'uint32(ptr,ptr,ptr)') -vulkan.enumerate_device_extension_properties = _lib:func('vkEnumerateDeviceExtensionProperties', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_device_queue = _lib:func('vkGetDeviceQueue', 'void(ptr,uint32,uint32,ptr)') -vulkan.queue_submit = _lib:func('vkQueueSubmit', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.queue_wait_idle = _lib:func('vkQueueWaitIdle', 'uint32(ptr)') -vulkan.device_wait_idle = _lib:func('vkDeviceWaitIdle', 'uint32(ptr)') -vulkan.allocate_memory = _lib:func('vkAllocateMemory', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.free_memory = _lib:func('vkFreeMemory', 'void(ptr,ptr,ptr)') -vulkan.map_memory = _lib:func('vkMapMemory', 'uint32(ptr,ptr,uint64,uint64,ptr,ptr)') -vulkan.unmap_memory = _lib:func('vkUnmapMemory', 'void(ptr,ptr)') -vulkan.flush_mapped_memory_ranges = _lib:func('vkFlushMappedMemoryRanges', 'uint32(ptr,uint32,ptr)') -vulkan.invalidate_mapped_memory_ranges = _lib:func('vkInvalidateMappedMemoryRanges', 'uint32(ptr,uint32,ptr)') -vulkan.get_device_memory_commitment = _lib:func('vkGetDeviceMemoryCommitment', 'void(ptr,ptr,ptr)') -vulkan.get_buffer_memory_requirements = _lib:func('vkGetBufferMemoryRequirements', 'void(ptr,ptr,ptr)') -vulkan.bind_buffer_memory = _lib:func('vkBindBufferMemory', 'uint32(ptr,ptr,ptr,uint64)') -vulkan.get_image_memory_requirements = _lib:func('vkGetImageMemoryRequirements', 'void(ptr,ptr,ptr)') -vulkan.bind_image_memory = _lib:func('vkBindImageMemory', 'uint32(ptr,ptr,ptr,uint64)') -vulkan.get_image_sparse_memory_requirements = _lib:func('vkGetImageSparseMemoryRequirements', 'void(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_sparse_image_format_properties = _lib:func('vkGetPhysicalDeviceSparseImageFormatProperties', 'void(ptr,uint32,uint32,uint32,ptr,uint32,ptr,ptr)') -vulkan.queue_bind_sparse = _lib:func('vkQueueBindSparse', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.create_fence = _lib:func('vkCreateFence', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_fence = _lib:func('vkDestroyFence', 'void(ptr,ptr,ptr)') -vulkan.reset_fences = _lib:func('vkResetFences', 'uint32(ptr,uint32,ptr)') -vulkan.get_fence_status = _lib:func('vkGetFenceStatus', 'uint32(ptr,ptr)') -vulkan.wait_for_fences = _lib:func('vkWaitForFences', 'uint32(ptr,uint32,ptr,uint32,uint64)') -vulkan.create_semaphore = _lib:func('vkCreateSemaphore', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_semaphore = _lib:func('vkDestroySemaphore', 'void(ptr,ptr,ptr)') -vulkan.create_event = _lib:func('vkCreateEvent', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_event = _lib:func('vkDestroyEvent', 'void(ptr,ptr,ptr)') -vulkan.get_event_status = _lib:func('vkGetEventStatus', 'uint32(ptr,ptr)') -vulkan.set_event = _lib:func('vkSetEvent', 'uint32(ptr,ptr)') -vulkan.reset_event = _lib:func('vkResetEvent', 'uint32(ptr,ptr)') -vulkan.create_query_pool = _lib:func('vkCreateQueryPool', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_query_pool = _lib:func('vkDestroyQueryPool', 'void(ptr,ptr,ptr)') -vulkan.get_query_pool_results = _lib:func('vkGetQueryPoolResults', 'uint32(ptr,ptr,uint32,uint32,uint64,ptr,uint64,ptr)') -vulkan.reset_query_pool = _lib:func('vkResetQueryPool', 'void(ptr,ptr,uint32,uint32)') -vulkan.create_buffer = _lib:func('vkCreateBuffer', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_buffer = _lib:func('vkDestroyBuffer', 'void(ptr,ptr,ptr)') -vulkan.create_buffer_view = _lib:func('vkCreateBufferView', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_buffer_view = _lib:func('vkDestroyBufferView', 'void(ptr,ptr,ptr)') -vulkan.create_image = _lib:func('vkCreateImage', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_image = _lib:func('vkDestroyImage', 'void(ptr,ptr,ptr)') -vulkan.get_image_subresource_layout = _lib:func('vkGetImageSubresourceLayout', 'void(ptr,ptr,ptr,ptr)') -vulkan.create_image_view = _lib:func('vkCreateImageView', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_image_view = _lib:func('vkDestroyImageView', 'void(ptr,ptr,ptr)') -vulkan.create_shader_module = _lib:func('vkCreateShaderModule', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_shader_module = _lib:func('vkDestroyShaderModule', 'void(ptr,ptr,ptr)') -vulkan.create_pipeline_cache = _lib:func('vkCreatePipelineCache', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_pipeline_cache = _lib:func('vkCreatePipelineCache', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_pipeline_cache = _lib:func('vkDestroyPipelineCache', 'void(ptr,ptr,ptr)') -vulkan.get_pipeline_cache_data = _lib:func('vkGetPipelineCacheData', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.merge_pipeline_caches = _lib:func('vkMergePipelineCaches', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.create_pipeline_binaries_khr = _lib:func('vkCreatePipelineBinariesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_pipeline_binary_khr = _lib:func('vkDestroyPipelineBinaryKHR', 'void(ptr,ptr,ptr)') -vulkan.get_pipeline_key_khr = _lib:func('vkGetPipelineKeyKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_pipeline_binary_data_khr = _lib:func('vkGetPipelineBinaryDataKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') -vulkan.release_captured_pipeline_data_khr = _lib:func('vkReleaseCapturedPipelineDataKHR', 'uint32(ptr,ptr,ptr)') -vulkan.create_graphics_pipelines = _lib:func('vkCreateGraphicsPipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.create_graphics_pipelines = _lib:func('vkCreateGraphicsPipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.create_compute_pipelines = _lib:func('vkCreateComputePipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.create_compute_pipelines = _lib:func('vkCreateComputePipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.get_device_subpass_shading_max_workgroup_size_huawei = _lib:func('vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI', 'uint32(ptr,ptr,ptr)') -vulkan.destroy_pipeline = _lib:func('vkDestroyPipeline', 'void(ptr,ptr,ptr)') -vulkan.create_pipeline_layout = _lib:func('vkCreatePipelineLayout', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_pipeline_layout = _lib:func('vkDestroyPipelineLayout', 'void(ptr,ptr,ptr)') -vulkan.create_sampler = _lib:func('vkCreateSampler', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_sampler = _lib:func('vkDestroySampler', 'void(ptr,ptr,ptr)') -vulkan.create_descriptor_set_layout = _lib:func('vkCreateDescriptorSetLayout', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_descriptor_set_layout = _lib:func('vkDestroyDescriptorSetLayout', 'void(ptr,ptr,ptr)') -vulkan.create_descriptor_pool = _lib:func('vkCreateDescriptorPool', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_descriptor_pool = _lib:func('vkDestroyDescriptorPool', 'void(ptr,ptr,ptr)') -vulkan.reset_descriptor_pool = _lib:func('vkResetDescriptorPool', 'uint32(ptr,ptr,ptr)') -vulkan.allocate_descriptor_sets = _lib:func('vkAllocateDescriptorSets', 'uint32(ptr,ptr,ptr)') -vulkan.free_descriptor_sets = _lib:func('vkFreeDescriptorSets', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.update_descriptor_sets = _lib:func('vkUpdateDescriptorSets', 'void(ptr,uint32,ptr,uint32,ptr)') -vulkan.create_framebuffer = _lib:func('vkCreateFramebuffer', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_framebuffer = _lib:func('vkDestroyFramebuffer', 'void(ptr,ptr,ptr)') -vulkan.create_render_pass = _lib:func('vkCreateRenderPass', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_render_pass = _lib:func('vkDestroyRenderPass', 'void(ptr,ptr,ptr)') -vulkan.get_render_area_granularity = _lib:func('vkGetRenderAreaGranularity', 'void(ptr,ptr,ptr)') -vulkan.get_rendering_area_granularity = _lib:func('vkGetRenderingAreaGranularity', 'void(ptr,ptr,ptr)') -vulkan.create_command_pool = _lib:func('vkCreateCommandPool', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_command_pool = _lib:func('vkDestroyCommandPool', 'void(ptr,ptr,ptr)') -vulkan.reset_command_pool = _lib:func('vkResetCommandPool', 'uint32(ptr,ptr,ptr)') -vulkan.allocate_command_buffers = _lib:func('vkAllocateCommandBuffers', 'uint32(ptr,ptr,ptr)') -vulkan.free_command_buffers = _lib:func('vkFreeCommandBuffers', 'void(ptr,ptr,uint32,ptr)') -vulkan.begin_command_buffer = _lib:func('vkBeginCommandBuffer', 'uint32(ptr,ptr)') -vulkan.end_command_buffer = _lib:func('vkEndCommandBuffer', 'uint32(ptr)') -vulkan.reset_command_buffer = _lib:func('vkResetCommandBuffer', 'uint32(ptr,ptr)') -vulkan.cmd_bind_pipeline = _lib:func('vkCmdBindPipeline', 'void(ptr,uint32,ptr)') -vulkan.cmd_set_attachment_feedback_loop_enable_ext = _lib:func('vkCmdSetAttachmentFeedbackLoopEnableEXT', 'void(ptr,ptr)') -vulkan.cmd_set_viewport = _lib:func('vkCmdSetViewport', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_scissor = _lib:func('vkCmdSetScissor', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_line_width = _lib:func('vkCmdSetLineWidth', 'void(ptr,float)') -vulkan.cmd_set_depth_bias = _lib:func('vkCmdSetDepthBias', 'void(ptr,float,float,float)') -vulkan.cmd_set_blend_constants = _lib:func('vkCmdSetBlendConstants', 'void(ptr,int)') -vulkan.cmd_set_depth_bounds = _lib:func('vkCmdSetDepthBounds', 'void(ptr,float,float)') -vulkan.cmd_set_stencil_compare_mask = _lib:func('vkCmdSetStencilCompareMask', 'void(ptr,ptr,uint32)') -vulkan.cmd_set_stencil_write_mask = _lib:func('vkCmdSetStencilWriteMask', 'void(ptr,ptr,uint32)') -vulkan.cmd_set_stencil_reference = _lib:func('vkCmdSetStencilReference', 'void(ptr,ptr,uint32)') -vulkan.cmd_bind_descriptor_sets = _lib:func('vkCmdBindDescriptorSets', 'void(ptr,uint32,ptr,uint32,uint32,ptr,uint32,ptr)') -vulkan.cmd_bind_index_buffer = _lib:func('vkCmdBindIndexBuffer', 'void(ptr,ptr,uint64,uint32)') -vulkan.cmd_bind_vertex_buffers = _lib:func('vkCmdBindVertexBuffers', 'void(ptr,uint32,uint32,ptr,ptr)') -vulkan.cmd_draw = _lib:func('vkCmdDraw', 'void(ptr,uint32,uint32,uint32,uint32)') -vulkan.cmd_draw_indexed = _lib:func('vkCmdDrawIndexed', 'void(ptr,uint32,uint32,uint32,int,uint32)') -vulkan.cmd_draw_multi_ext = _lib:func('vkCmdDrawMultiEXT', 'void(ptr,uint32,ptr,uint32,uint32,uint32)') -vulkan.cmd_draw_multi_indexed_ext = _lib:func('vkCmdDrawMultiIndexedEXT', 'void(ptr,uint32,ptr,uint32,uint32,uint32,ptr)') -vulkan.cmd_draw_indirect = _lib:func('vkCmdDrawIndirect', 'void(ptr,ptr,uint64,uint32,uint32)') -vulkan.cmd_draw_indexed_indirect = _lib:func('vkCmdDrawIndexedIndirect', 'void(ptr,ptr,uint64,uint32,uint32)') -vulkan.cmd_dispatch = _lib:func('vkCmdDispatch', 'void(ptr,uint32,uint32,uint32)') -vulkan.cmd_dispatch_indirect = _lib:func('vkCmdDispatchIndirect', 'void(ptr,ptr,uint64)') -vulkan.cmd_subpass_shading_huawei = _lib:func('vkCmdSubpassShadingHUAWEI', 'void(ptr)') -vulkan.cmd_draw_cluster_huawei = _lib:func('vkCmdDrawClusterHUAWEI', 'void(ptr,uint32,uint32,uint32)') -vulkan.cmd_draw_cluster_indirect_huawei = _lib:func('vkCmdDrawClusterIndirectHUAWEI', 'void(ptr,ptr,uint64)') -vulkan.cmd_update_pipeline_indirect_buffer_nv = _lib:func('vkCmdUpdatePipelineIndirectBufferNV', 'void(ptr,uint32,ptr)') -vulkan.cmd_copy_buffer = _lib:func('vkCmdCopyBuffer', 'void(ptr,ptr,ptr,uint32,ptr)') -vulkan.cmd_copy_image = _lib:func('vkCmdCopyImage', 'void(ptr,ptr,uint32,ptr,uint32,uint32,ptr)') -vulkan.cmd_blit_image = _lib:func('vkCmdBlitImage', 'void(ptr,ptr,uint32,ptr,uint32,uint32,ptr,uint32)') -vulkan.cmd_copy_buffer_to_image = _lib:func('vkCmdCopyBufferToImage', 'void(ptr,ptr,ptr,uint32,uint32,ptr)') -vulkan.cmd_copy_image_to_buffer = _lib:func('vkCmdCopyImageToBuffer', 'void(ptr,ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_copy_memory_indirect_nv = _lib:func('vkCmdCopyMemoryIndirectNV', 'void(ptr,ptr,uint32,uint32)') -vulkan.cmd_copy_memory_to_image_indirect_nv = _lib:func('vkCmdCopyMemoryToImageIndirectNV', 'void(ptr,ptr,uint32,uint32,ptr,uint32,ptr)') -vulkan.cmd_update_buffer = _lib:func('vkCmdUpdateBuffer', 'void(ptr,ptr,uint64,uint64,ptr)') -vulkan.cmd_fill_buffer = _lib:func('vkCmdFillBuffer', 'void(ptr,ptr,uint64,uint64,uint32)') -vulkan.cmd_clear_color_image = _lib:func('vkCmdClearColorImage', 'void(ptr,ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_clear_depth_stencil_image = _lib:func('vkCmdClearDepthStencilImage', 'void(ptr,ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_clear_attachments = _lib:func('vkCmdClearAttachments', 'void(ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_resolve_image = _lib:func('vkCmdResolveImage', 'void(ptr,ptr,uint32,ptr,uint32,uint32,ptr)') -vulkan.cmd_set_event = _lib:func('vkCmdSetEvent', 'void(ptr,ptr,ptr)') -vulkan.cmd_reset_event = _lib:func('vkCmdResetEvent', 'void(ptr,ptr,ptr)') -vulkan.cmd_wait_events = _lib:func('vkCmdWaitEvents', 'void(ptr,uint32,ptr,ptr,ptr,uint32,ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_pipeline_barrier = _lib:func('vkCmdPipelineBarrier', 'void(ptr,ptr,ptr,ptr,uint32,ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_begin_query = _lib:func('vkCmdBeginQuery', 'void(ptr,ptr,uint32,ptr)') -vulkan.cmd_end_query = _lib:func('vkCmdEndQuery', 'void(ptr,ptr,uint32)') -vulkan.cmd_begin_conditional_rendering_ext = _lib:func('vkCmdBeginConditionalRenderingEXT', 'void(ptr,ptr)') -vulkan.cmd_end_conditional_rendering_ext = _lib:func('vkCmdEndConditionalRenderingEXT', 'void(ptr)') -vulkan.cmd_reset_query_pool = _lib:func('vkCmdResetQueryPool', 'void(ptr,ptr,uint32,uint32)') -vulkan.cmd_write_timestamp = _lib:func('vkCmdWriteTimestamp', 'void(ptr,uint32,ptr,uint32)') -vulkan.cmd_copy_query_pool_results = _lib:func('vkCmdCopyQueryPoolResults', 'void(ptr,ptr,uint32,uint32,ptr,uint64,uint64,ptr)') -vulkan.cmd_push_constants = _lib:func('vkCmdPushConstants', 'void(ptr,ptr,ptr,uint32,uint32,ptr)') -vulkan.cmd_begin_render_pass = _lib:func('vkCmdBeginRenderPass', 'void(ptr,ptr,uint32)') -vulkan.cmd_next_subpass = _lib:func('vkCmdNextSubpass', 'void(ptr,uint32)') -vulkan.cmd_end_render_pass = _lib:func('vkCmdEndRenderPass', 'void(ptr)') -vulkan.cmd_execute_commands = _lib:func('vkCmdExecuteCommands', 'void(ptr,uint32,ptr)') -vulkan.create_android_surface_khr = _lib:func('vkCreateAndroidSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_display_properties_khr = _lib:func('vkGetPhysicalDeviceDisplayPropertiesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_display_plane_properties_khr = _lib:func('vkGetPhysicalDeviceDisplayPlanePropertiesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_display_plane_supported_displays_khr = _lib:func('vkGetDisplayPlaneSupportedDisplaysKHR', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.get_display_mode_properties_khr = _lib:func('vkGetDisplayModePropertiesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_display_mode_khr = _lib:func('vkCreateDisplayModeKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') -vulkan.get_display_plane_capabilities_khr = _lib:func('vkGetDisplayPlaneCapabilitiesKHR', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.create_display_plane_surface_khr = _lib:func('vkCreateDisplayPlaneSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_shared_swapchains_khr = _lib:func('vkCreateSharedSwapchainsKHR', 'uint32(ptr,uint32,ptr,ptr,ptr,ptr)') -vulkan.destroy_surface_khr = _lib:func('vkDestroySurfaceKHR', 'void(ptr,ptr,ptr)') -vulkan.get_physical_device_surface_support_khr = _lib:func('vkGetPhysicalDeviceSurfaceSupportKHR', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.get_physical_device_surface_capabilities_khr = _lib:func('vkGetPhysicalDeviceSurfaceCapabilitiesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_surface_formats_khr = _lib:func('vkGetPhysicalDeviceSurfaceFormatsKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_surface_present_modes_khr = _lib:func('vkGetPhysicalDeviceSurfacePresentModesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_swapchain_khr = _lib:func('vkCreateSwapchainKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') -vulkan.destroy_swapchain_khr = _lib:func('vkDestroySwapchainKHR', 'void(ptr,ptr,ptr)') -vulkan.get_swapchain_images_khr = _lib:func('vkGetSwapchainImagesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.acquire_next_image_khr = _lib:func('vkAcquireNextImageKHR', 'uint32(ptr,ptr,uint64,ptr,ptr,ptr)') -vulkan.queue_present_khr = _lib:func('vkQueuePresentKHR', 'uint32(ptr,ptr)') -vulkan.create_vi_surface_nn = _lib:func('vkCreateViSurfaceNN', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_wayland_surface_khr = _lib:func('vkCreateWaylandSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_wayland_presentation_support_khr = _lib:func('vkGetPhysicalDeviceWaylandPresentationSupportKHR', 'uint32(ptr,uint32,ptr)') -vulkan.create_win32_surface_khr = _lib:func('vkCreateWin32SurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_win32_presentation_support_khr = _lib:func('vkGetPhysicalDeviceWin32PresentationSupportKHR', 'uint32(ptr,uint32)') -vulkan.create_xlib_surface_khr = _lib:func('vkCreateXlibSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_xlib_presentation_support_khr = _lib:func('vkGetPhysicalDeviceXlibPresentationSupportKHR', 'uint32(ptr,uint32,ptr,int)') -vulkan.create_xcb_surface_khr = _lib:func('vkCreateXcbSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_xcb_presentation_support_khr = _lib:func('vkGetPhysicalDeviceXcbPresentationSupportKHR', 'uint32(ptr,uint32,ptr,int)') -vulkan.create_direct_fb_surface_ext = _lib:func('vkCreateDirectFBSurfaceEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_direct_fb_presentation_support_ext = _lib:func('vkGetPhysicalDeviceDirectFBPresentationSupportEXT', 'uint32(ptr,uint32,ptr)') -vulkan.create_image_pipe_surface_fuchsia = _lib:func('vkCreateImagePipeSurfaceFUCHSIA', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_stream_descriptor_surface_ggp = _lib:func('vkCreateStreamDescriptorSurfaceGGP', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_screen_surface_qnx = _lib:func('vkCreateScreenSurfaceQNX', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_screen_presentation_support_qnx = _lib:func('vkGetPhysicalDeviceScreenPresentationSupportQNX', 'uint32(ptr,uint32,ptr)') -vulkan.create_debug_report_callback_ext = _lib:func('vkCreateDebugReportCallbackEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_debug_report_callback_ext = _lib:func('vkDestroyDebugReportCallbackEXT', 'void(ptr,ptr,ptr)') -vulkan.debug_report_message_ext = _lib:func('vkDebugReportMessageEXT', 'void(ptr,ptr,uint32,uint64,uint64,int,ptr,ptr)') -vulkan.debug_marker_set_object_name_ext = _lib:func('vkDebugMarkerSetObjectNameEXT', 'uint32(ptr,ptr)') -vulkan.debug_marker_set_object_tag_ext = _lib:func('vkDebugMarkerSetObjectTagEXT', 'uint32(ptr,ptr)') -vulkan.cmd_debug_marker_begin_ext = _lib:func('vkCmdDebugMarkerBeginEXT', 'void(ptr,ptr)') -vulkan.cmd_debug_marker_end_ext = _lib:func('vkCmdDebugMarkerEndEXT', 'void(ptr)') -vulkan.cmd_debug_marker_insert_ext = _lib:func('vkCmdDebugMarkerInsertEXT', 'void(ptr,ptr)') -vulkan.get_physical_device_external_image_format_properties_nv = _lib:func('vkGetPhysicalDeviceExternalImageFormatPropertiesNV', 'uint32(ptr,uint32,uint32,uint32,ptr,ptr,ptr,ptr)') -vulkan.get_memory_win32_handle_nv = _lib:func('vkGetMemoryWin32HandleNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_execute_generated_commands_nv = _lib:func('vkCmdExecuteGeneratedCommandsNV', 'void(ptr,uint32,ptr)') -vulkan.cmd_preprocess_generated_commands_nv = _lib:func('vkCmdPreprocessGeneratedCommandsNV', 'void(ptr,ptr)') -vulkan.cmd_bind_pipeline_shader_group_nv = _lib:func('vkCmdBindPipelineShaderGroupNV', 'void(ptr,uint32,ptr,uint32)') -vulkan.get_generated_commands_memory_requirements_nv = _lib:func('vkGetGeneratedCommandsMemoryRequirementsNV', 'void(ptr,ptr,ptr)') -vulkan.create_indirect_commands_layout_nv = _lib:func('vkCreateIndirectCommandsLayoutNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_indirect_commands_layout_nv = _lib:func('vkDestroyIndirectCommandsLayoutNV', 'void(ptr,ptr,ptr)') -vulkan.cmd_execute_generated_commands_ext = _lib:func('vkCmdExecuteGeneratedCommandsEXT', 'void(ptr,uint32,ptr)') -vulkan.cmd_preprocess_generated_commands_ext = _lib:func('vkCmdPreprocessGeneratedCommandsEXT', 'void(ptr,ptr,ptr)') -vulkan.get_generated_commands_memory_requirements_ext = _lib:func('vkGetGeneratedCommandsMemoryRequirementsEXT', 'void(ptr,ptr,ptr)') -vulkan.create_indirect_commands_layout_ext = _lib:func('vkCreateIndirectCommandsLayoutEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_indirect_commands_layout_ext = _lib:func('vkDestroyIndirectCommandsLayoutEXT', 'void(ptr,ptr,ptr)') -vulkan.create_indirect_execution_set_ext = _lib:func('vkCreateIndirectExecutionSetEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_indirect_execution_set_ext = _lib:func('vkDestroyIndirectExecutionSetEXT', 'void(ptr,ptr,ptr)') -vulkan.update_indirect_execution_set_pipeline_ext = _lib:func('vkUpdateIndirectExecutionSetPipelineEXT', 'void(ptr,ptr,uint32,ptr)') -vulkan.update_indirect_execution_set_shader_ext = _lib:func('vkUpdateIndirectExecutionSetShaderEXT', 'void(ptr,ptr,uint32,ptr)') -vulkan.get_physical_device_features2 = _lib:func('vkGetPhysicalDeviceFeatures2', 'void(ptr,ptr)') -vulkan.get_physical_device_properties2 = _lib:func('vkGetPhysicalDeviceProperties2', 'void(ptr,ptr)') -vulkan.get_physical_device_format_properties2 = _lib:func('vkGetPhysicalDeviceFormatProperties2', 'void(ptr,uint32,ptr)') -vulkan.get_physical_device_image_format_properties2 = _lib:func('vkGetPhysicalDeviceImageFormatProperties2', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_queue_family_properties2 = _lib:func('vkGetPhysicalDeviceQueueFamilyProperties2', 'void(ptr,ptr,ptr)') -vulkan.get_physical_device_memory_properties2 = _lib:func('vkGetPhysicalDeviceMemoryProperties2', 'void(ptr,ptr)') -vulkan.get_physical_device_sparse_image_format_properties2 = _lib:func('vkGetPhysicalDeviceSparseImageFormatProperties2', 'void(ptr,ptr,ptr,ptr)') -vulkan.cmd_push_descriptor_set = _lib:func('vkCmdPushDescriptorSet', 'void(ptr,uint32,ptr,uint32,uint32,ptr)') -vulkan.trim_command_pool = _lib:func('vkTrimCommandPool', 'void(ptr,ptr,ptr)') -vulkan.get_physical_device_external_buffer_properties = _lib:func('vkGetPhysicalDeviceExternalBufferProperties', 'void(ptr,ptr,ptr)') -vulkan.get_memory_win32_handle_khr = _lib:func('vkGetMemoryWin32HandleKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_win32_handle_properties_khr = _lib:func('vkGetMemoryWin32HandlePropertiesKHR', 'uint32(ptr,uint32,int,ptr)') -vulkan.get_memory_fd_khr = _lib:func('vkGetMemoryFdKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_fd_properties_khr = _lib:func('vkGetMemoryFdPropertiesKHR', 'uint32(ptr,uint32,int,ptr)') -vulkan.get_memory_zircon_handle_fuchsia = _lib:func('vkGetMemoryZirconHandleFUCHSIA', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_zircon_handle_properties_fuchsia = _lib:func('vkGetMemoryZirconHandlePropertiesFUCHSIA', 'uint32(ptr,uint32,int,ptr)') -vulkan.get_memory_remote_address_nv = _lib:func('vkGetMemoryRemoteAddressNV', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_sci_buf_nv = _lib:func('vkGetMemorySciBufNV', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_external_memory_sci_buf_properties_nv = _lib:func('vkGetPhysicalDeviceExternalMemorySciBufPropertiesNV', 'uint32(ptr,uint32,int,ptr)') -vulkan.get_physical_device_sci_buf_attributes_nv = _lib:func('vkGetPhysicalDeviceSciBufAttributesNV', 'uint32(ptr,int)') -vulkan.get_physical_device_external_semaphore_properties = _lib:func('vkGetPhysicalDeviceExternalSemaphoreProperties', 'void(ptr,ptr,ptr)') -vulkan.get_semaphore_win32_handle_khr = _lib:func('vkGetSemaphoreWin32HandleKHR', 'uint32(ptr,ptr,ptr)') -vulkan.import_semaphore_win32_handle_khr = _lib:func('vkImportSemaphoreWin32HandleKHR', 'uint32(ptr,ptr)') -vulkan.get_semaphore_fd_khr = _lib:func('vkGetSemaphoreFdKHR', 'uint32(ptr,ptr,ptr)') -vulkan.import_semaphore_fd_khr = _lib:func('vkImportSemaphoreFdKHR', 'uint32(ptr,ptr)') -vulkan.get_semaphore_zircon_handle_fuchsia = _lib:func('vkGetSemaphoreZirconHandleFUCHSIA', 'uint32(ptr,ptr,ptr)') -vulkan.import_semaphore_zircon_handle_fuchsia = _lib:func('vkImportSemaphoreZirconHandleFUCHSIA', 'uint32(ptr,ptr)') -vulkan.get_physical_device_external_fence_properties = _lib:func('vkGetPhysicalDeviceExternalFenceProperties', 'void(ptr,ptr,ptr)') -vulkan.get_fence_win32_handle_khr = _lib:func('vkGetFenceWin32HandleKHR', 'uint32(ptr,ptr,ptr)') -vulkan.import_fence_win32_handle_khr = _lib:func('vkImportFenceWin32HandleKHR', 'uint32(ptr,ptr)') -vulkan.get_fence_fd_khr = _lib:func('vkGetFenceFdKHR', 'uint32(ptr,ptr,ptr)') -vulkan.import_fence_fd_khr = _lib:func('vkImportFenceFdKHR', 'uint32(ptr,ptr)') -vulkan.get_fence_sci_sync_fence_nv = _lib:func('vkGetFenceSciSyncFenceNV', 'uint32(ptr,ptr,ptr)') -vulkan.get_fence_sci_sync_obj_nv = _lib:func('vkGetFenceSciSyncObjNV', 'uint32(ptr,ptr,ptr)') -vulkan.import_fence_sci_sync_fence_nv = _lib:func('vkImportFenceSciSyncFenceNV', 'uint32(ptr,ptr)') -vulkan.import_fence_sci_sync_obj_nv = _lib:func('vkImportFenceSciSyncObjNV', 'uint32(ptr,ptr)') -vulkan.get_semaphore_sci_sync_obj_nv = _lib:func('vkGetSemaphoreSciSyncObjNV', 'uint32(ptr,ptr,ptr)') -vulkan.import_semaphore_sci_sync_obj_nv = _lib:func('vkImportSemaphoreSciSyncObjNV', 'uint32(ptr,ptr)') -vulkan.get_physical_device_sci_sync_attributes_nv = _lib:func('vkGetPhysicalDeviceSciSyncAttributesNV', 'uint32(ptr,ptr,int)') -vulkan.create_semaphore_sci_sync_pool_nv = _lib:func('vkCreateSemaphoreSciSyncPoolNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_semaphore_sci_sync_pool_nv = _lib:func('vkDestroySemaphoreSciSyncPoolNV', 'void(ptr,ptr,ptr)') -vulkan.release_display_ext = _lib:func('vkReleaseDisplayEXT', 'uint32(ptr,ptr)') -vulkan.acquire_xlib_display_ext = _lib:func('vkAcquireXlibDisplayEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_rand_r_output_display_ext = _lib:func('vkGetRandROutputDisplayEXT', 'uint32(ptr,ptr,int,ptr)') -vulkan.acquire_winrt_display_nv = _lib:func('vkAcquireWinrtDisplayNV', 'uint32(ptr,ptr)') -vulkan.get_winrt_display_nv = _lib:func('vkGetWinrtDisplayNV', 'uint32(ptr,uint32,ptr)') -vulkan.display_power_control_ext = _lib:func('vkDisplayPowerControlEXT', 'uint32(ptr,ptr,ptr)') -vulkan.register_device_event_ext = _lib:func('vkRegisterDeviceEventEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.register_display_event_ext = _lib:func('vkRegisterDisplayEventEXT', 'uint32(ptr,ptr,ptr,ptr,ptr)') -vulkan.get_swapchain_counter_ext = _lib:func('vkGetSwapchainCounterEXT', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.get_physical_device_surface_capabilities2_ext = _lib:func('vkGetPhysicalDeviceSurfaceCapabilities2EXT', 'uint32(ptr,ptr,ptr)') -vulkan.enumerate_physical_device_groups = _lib:func('vkEnumeratePhysicalDeviceGroups', 'uint32(ptr,ptr,ptr)') -vulkan.get_device_group_peer_memory_features = _lib:func('vkGetDeviceGroupPeerMemoryFeatures', 'void(ptr,uint32,uint32,uint32,ptr)') -vulkan.bind_buffer_memory2 = _lib:func('vkBindBufferMemory2', 'uint32(ptr,uint32,ptr)') -vulkan.bind_image_memory2 = _lib:func('vkBindImageMemory2', 'uint32(ptr,uint32,ptr)') -vulkan.cmd_set_device_mask = _lib:func('vkCmdSetDeviceMask', 'void(ptr,uint32)') -vulkan.get_device_group_present_capabilities_khr = _lib:func('vkGetDeviceGroupPresentCapabilitiesKHR', 'uint32(ptr,ptr)') -vulkan.get_device_group_surface_present_modes_khr = _lib:func('vkGetDeviceGroupSurfacePresentModesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.acquire_next_image2_khr = _lib:func('vkAcquireNextImage2KHR', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_dispatch_base = _lib:func('vkCmdDispatchBase', 'void(ptr,uint32,uint32,uint32,uint32,uint32,uint32)') -vulkan.get_physical_device_present_rectangles_khr = _lib:func('vkGetPhysicalDevicePresentRectanglesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_descriptor_update_template = _lib:func('vkCreateDescriptorUpdateTemplate', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_descriptor_update_template = _lib:func('vkDestroyDescriptorUpdateTemplate', 'void(ptr,ptr,ptr)') -vulkan.update_descriptor_set_with_template = _lib:func('vkUpdateDescriptorSetWithTemplate', 'void(ptr,ptr,ptr,ptr)') -vulkan.cmd_push_descriptor_set_with_template = _lib:func('vkCmdPushDescriptorSetWithTemplate', 'void(ptr,ptr,ptr,uint32,ptr)') -vulkan.set_hdr_metadata_ext = _lib:func('vkSetHdrMetadataEXT', 'void(ptr,uint32,ptr,ptr)') -vulkan.get_swapchain_status_khr = _lib:func('vkGetSwapchainStatusKHR', 'uint32(ptr,ptr)') -vulkan.get_refresh_cycle_duration_google = _lib:func('vkGetRefreshCycleDurationGOOGLE', 'uint32(ptr,ptr,ptr)') -vulkan.get_past_presentation_timing_google = _lib:func('vkGetPastPresentationTimingGOOGLE', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_ios_surface_mvk = _lib:func('vkCreateIOSSurfaceMVK', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_mac_os_surface_mvk = _lib:func('vkCreateMacOSSurfaceMVK', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_metal_surface_ext = _lib:func('vkCreateMetalSurfaceEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_set_viewport_w_scaling_nv = _lib:func('vkCmdSetViewportWScalingNV', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_discard_rectangle_ext = _lib:func('vkCmdSetDiscardRectangleEXT', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_discard_rectangle_enable_ext = _lib:func('vkCmdSetDiscardRectangleEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_discard_rectangle_mode_ext = _lib:func('vkCmdSetDiscardRectangleModeEXT', 'void(ptr,uint32)') -vulkan.cmd_set_sample_locations_ext = _lib:func('vkCmdSetSampleLocationsEXT', 'void(ptr,ptr)') -vulkan.get_physical_device_multisample_properties_ext = _lib:func('vkGetPhysicalDeviceMultisamplePropertiesEXT', 'void(ptr,uint32,ptr)') -vulkan.get_physical_device_surface_capabilities2_khr = _lib:func('vkGetPhysicalDeviceSurfaceCapabilities2KHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_surface_formats2_khr = _lib:func('vkGetPhysicalDeviceSurfaceFormats2KHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_display_properties2_khr = _lib:func('vkGetPhysicalDeviceDisplayProperties2KHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_display_plane_properties2_khr = _lib:func('vkGetPhysicalDeviceDisplayPlaneProperties2KHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_display_mode_properties2_khr = _lib:func('vkGetDisplayModeProperties2KHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_display_plane_capabilities2_khr = _lib:func('vkGetDisplayPlaneCapabilities2KHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_buffer_memory_requirements2 = _lib:func('vkGetBufferMemoryRequirements2', 'void(ptr,ptr,ptr)') -vulkan.get_image_memory_requirements2 = _lib:func('vkGetImageMemoryRequirements2', 'void(ptr,ptr,ptr)') -vulkan.get_image_sparse_memory_requirements2 = _lib:func('vkGetImageSparseMemoryRequirements2', 'void(ptr,ptr,ptr,ptr)') -vulkan.get_device_buffer_memory_requirements = _lib:func('vkGetDeviceBufferMemoryRequirements', 'void(ptr,ptr,ptr)') -vulkan.get_device_image_memory_requirements = _lib:func('vkGetDeviceImageMemoryRequirements', 'void(ptr,ptr,ptr)') -vulkan.get_device_image_sparse_memory_requirements = _lib:func('vkGetDeviceImageSparseMemoryRequirements', 'void(ptr,ptr,ptr,ptr)') -vulkan.create_sampler_ycbcr_conversion = _lib:func('vkCreateSamplerYcbcrConversion', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_sampler_ycbcr_conversion = _lib:func('vkDestroySamplerYcbcrConversion', 'void(ptr,ptr,ptr)') -vulkan.get_device_queue2 = _lib:func('vkGetDeviceQueue2', 'void(ptr,ptr,ptr)') -vulkan.create_validation_cache_ext = _lib:func('vkCreateValidationCacheEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_validation_cache_ext = _lib:func('vkDestroyValidationCacheEXT', 'void(ptr,ptr,ptr)') -vulkan.get_validation_cache_data_ext = _lib:func('vkGetValidationCacheDataEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.merge_validation_caches_ext = _lib:func('vkMergeValidationCachesEXT', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.get_descriptor_set_layout_support = _lib:func('vkGetDescriptorSetLayoutSupport', 'void(ptr,ptr,ptr)') -vulkan.get_swapchain_gralloc_usage_android = _lib:func('vkGetSwapchainGrallocUsageANDROID', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.get_swapchain_gralloc_usage2_android = _lib:func('vkGetSwapchainGrallocUsage2ANDROID', 'uint32(ptr,uint32,ptr,ptr,ptr,ptr)') -vulkan.acquire_image_android = _lib:func('vkAcquireImageANDROID', 'uint32(ptr,ptr,int,ptr,ptr)') -vulkan.queue_signal_release_image_android = _lib:func('vkQueueSignalReleaseImageANDROID', 'uint32(ptr,uint32,ptr,ptr,ptr)') -vulkan.get_shader_info_amd = _lib:func('vkGetShaderInfoAMD', 'uint32(ptr,ptr,uint32,uint32,ptr,ptr)') -vulkan.set_local_dimming_amd = _lib:func('vkSetLocalDimmingAMD', 'void(ptr,ptr,uint32)') -vulkan.get_physical_device_calibrateable_time_domains_khr = _lib:func('vkGetPhysicalDeviceCalibrateableTimeDomainsKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_calibrated_timestamps_khr = _lib:func('vkGetCalibratedTimestampsKHR', 'uint32(ptr,uint32,ptr,ptr,ptr)') -vulkan.set_debug_utils_object_name_ext = _lib:func('vkSetDebugUtilsObjectNameEXT', 'uint32(ptr,ptr)') -vulkan.set_debug_utils_object_tag_ext = _lib:func('vkSetDebugUtilsObjectTagEXT', 'uint32(ptr,ptr)') -vulkan.queue_begin_debug_utils_label_ext = _lib:func('vkQueueBeginDebugUtilsLabelEXT', 'void(ptr,ptr)') -vulkan.queue_end_debug_utils_label_ext = _lib:func('vkQueueEndDebugUtilsLabelEXT', 'void(ptr)') -vulkan.queue_insert_debug_utils_label_ext = _lib:func('vkQueueInsertDebugUtilsLabelEXT', 'void(ptr,ptr)') -vulkan.cmd_begin_debug_utils_label_ext = _lib:func('vkCmdBeginDebugUtilsLabelEXT', 'void(ptr,ptr)') -vulkan.cmd_end_debug_utils_label_ext = _lib:func('vkCmdEndDebugUtilsLabelEXT', 'void(ptr)') -vulkan.cmd_insert_debug_utils_label_ext = _lib:func('vkCmdInsertDebugUtilsLabelEXT', 'void(ptr,ptr)') -vulkan.create_debug_utils_messenger_ext = _lib:func('vkCreateDebugUtilsMessengerEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_debug_utils_messenger_ext = _lib:func('vkDestroyDebugUtilsMessengerEXT', 'void(ptr,ptr,ptr)') -vulkan.submit_debug_utils_message_ext = _lib:func('vkSubmitDebugUtilsMessageEXT', 'void(ptr,uint32,ptr,ptr)') -vulkan.get_memory_host_pointer_properties_ext = _lib:func('vkGetMemoryHostPointerPropertiesEXT', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.cmd_write_buffer_marker_amd = _lib:func('vkCmdWriteBufferMarkerAMD', 'void(ptr,uint32,ptr,uint64,uint32)') -vulkan.create_render_pass2 = _lib:func('vkCreateRenderPass2', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_begin_render_pass2 = _lib:func('vkCmdBeginRenderPass2', 'void(ptr,ptr,ptr)') -vulkan.cmd_next_subpass2 = _lib:func('vkCmdNextSubpass2', 'void(ptr,ptr,ptr)') -vulkan.cmd_end_render_pass2 = _lib:func('vkCmdEndRenderPass2', 'void(ptr,ptr)') -vulkan.get_semaphore_counter_value = _lib:func('vkGetSemaphoreCounterValue', 'uint32(ptr,ptr,ptr)') -vulkan.wait_semaphores = _lib:func('vkWaitSemaphores', 'uint32(ptr,ptr,uint64)') -vulkan.signal_semaphore = _lib:func('vkSignalSemaphore', 'uint32(ptr,ptr)') -vulkan.get_android_hardware_buffer_properties_android = _lib:func('vkGetAndroidHardwareBufferPropertiesANDROID', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_android_hardware_buffer_android = _lib:func('vkGetMemoryAndroidHardwareBufferANDROID', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_draw_indirect_count = _lib:func('vkCmdDrawIndirectCount', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') -vulkan.cmd_draw_indexed_indirect_count = _lib:func('vkCmdDrawIndexedIndirectCount', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') -vulkan.cmd_set_checkpoint_nv = _lib:func('vkCmdSetCheckpointNV', 'void(ptr,ptr)') -vulkan.get_queue_checkpoint_data_nv = _lib:func('vkGetQueueCheckpointDataNV', 'void(ptr,ptr,ptr)') -vulkan.cmd_bind_transform_feedback_buffers_ext = _lib:func('vkCmdBindTransformFeedbackBuffersEXT', 'void(ptr,uint32,uint32,ptr,ptr,ptr)') -vulkan.cmd_begin_transform_feedback_ext = _lib:func('vkCmdBeginTransformFeedbackEXT', 'void(ptr,uint32,uint32,ptr,ptr)') -vulkan.cmd_end_transform_feedback_ext = _lib:func('vkCmdEndTransformFeedbackEXT', 'void(ptr,uint32,uint32,ptr,ptr)') -vulkan.cmd_begin_query_indexed_ext = _lib:func('vkCmdBeginQueryIndexedEXT', 'void(ptr,ptr,uint32,ptr,uint32)') -vulkan.cmd_end_query_indexed_ext = _lib:func('vkCmdEndQueryIndexedEXT', 'void(ptr,ptr,uint32,uint32)') -vulkan.cmd_draw_indirect_byte_count_ext = _lib:func('vkCmdDrawIndirectByteCountEXT', 'void(ptr,uint32,uint32,ptr,uint64,uint32,uint32)') -vulkan.cmd_set_exclusive_scissor_nv = _lib:func('vkCmdSetExclusiveScissorNV', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_exclusive_scissor_enable_nv = _lib:func('vkCmdSetExclusiveScissorEnableNV', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_bind_shading_rate_image_nv = _lib:func('vkCmdBindShadingRateImageNV', 'void(ptr,ptr,uint32)') -vulkan.cmd_set_viewport_shading_rate_palette_nv = _lib:func('vkCmdSetViewportShadingRatePaletteNV', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_coarse_sample_order_nv = _lib:func('vkCmdSetCoarseSampleOrderNV', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_draw_mesh_tasks_nv = _lib:func('vkCmdDrawMeshTasksNV', 'void(ptr,uint32,uint32)') -vulkan.cmd_draw_mesh_tasks_indirect_nv = _lib:func('vkCmdDrawMeshTasksIndirectNV', 'void(ptr,ptr,uint64,uint32,uint32)') -vulkan.cmd_draw_mesh_tasks_indirect_count_nv = _lib:func('vkCmdDrawMeshTasksIndirectCountNV', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') -vulkan.cmd_draw_mesh_tasks_ext = _lib:func('vkCmdDrawMeshTasksEXT', 'void(ptr,uint32,uint32,uint32)') -vulkan.cmd_draw_mesh_tasks_indirect_ext = _lib:func('vkCmdDrawMeshTasksIndirectEXT', 'void(ptr,ptr,uint64,uint32,uint32)') -vulkan.cmd_draw_mesh_tasks_indirect_count_ext = _lib:func('vkCmdDrawMeshTasksIndirectCountEXT', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') -vulkan.compile_deferred_nv = _lib:func('vkCompileDeferredNV', 'uint32(ptr,ptr,uint32)') -vulkan.create_acceleration_structure_nv = _lib:func('vkCreateAccelerationStructureNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_bind_invocation_mask_huawei = _lib:func('vkCmdBindInvocationMaskHUAWEI', 'void(ptr,ptr,uint32)') -vulkan.destroy_acceleration_structure_khr = _lib:func('vkDestroyAccelerationStructureKHR', 'void(ptr,ptr,ptr)') -vulkan.destroy_acceleration_structure_nv = _lib:func('vkDestroyAccelerationStructureNV', 'void(ptr,ptr,ptr)') -vulkan.get_acceleration_structure_memory_requirements_nv = _lib:func('vkGetAccelerationStructureMemoryRequirementsNV', 'void(ptr,ptr,ptr)') -vulkan.bind_acceleration_structure_memory_nv = _lib:func('vkBindAccelerationStructureMemoryNV', 'uint32(ptr,uint32,ptr)') -vulkan.cmd_copy_acceleration_structure_nv = _lib:func('vkCmdCopyAccelerationStructureNV', 'void(ptr,ptr,ptr,uint32)') -vulkan.cmd_copy_acceleration_structure_khr = _lib:func('vkCmdCopyAccelerationStructureKHR', 'void(ptr,ptr)') -vulkan.copy_acceleration_structure_khr = _lib:func('vkCopyAccelerationStructureKHR', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_copy_acceleration_structure_to_memory_khr = _lib:func('vkCmdCopyAccelerationStructureToMemoryKHR', 'void(ptr,ptr)') -vulkan.copy_acceleration_structure_to_memory_khr = _lib:func('vkCopyAccelerationStructureToMemoryKHR', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_copy_memory_to_acceleration_structure_khr = _lib:func('vkCmdCopyMemoryToAccelerationStructureKHR', 'void(ptr,ptr)') -vulkan.copy_memory_to_acceleration_structure_khr = _lib:func('vkCopyMemoryToAccelerationStructureKHR', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_write_acceleration_structures_properties_khr = _lib:func('vkCmdWriteAccelerationStructuresPropertiesKHR', 'void(ptr,uint32,ptr,uint32,ptr,uint32)') -vulkan.cmd_write_acceleration_structures_properties_nv = _lib:func('vkCmdWriteAccelerationStructuresPropertiesNV', 'void(ptr,uint32,ptr,uint32,ptr,uint32)') -vulkan.cmd_build_acceleration_structure_nv = _lib:func('vkCmdBuildAccelerationStructureNV', 'void(ptr,ptr,ptr,uint64,uint32,ptr,ptr,ptr,uint64)') -vulkan.write_acceleration_structures_properties_khr = _lib:func('vkWriteAccelerationStructuresPropertiesKHR', 'uint32(ptr,uint32,ptr,uint32,uint64,ptr,uint64)') -vulkan.cmd_trace_rays_khr = _lib:func('vkCmdTraceRaysKHR', 'void(ptr,ptr,ptr,ptr,ptr,uint32,uint32,uint32)') -vulkan.cmd_trace_rays_nv = _lib:func('vkCmdTraceRaysNV', 'void(ptr,ptr,uint64,ptr,uint64,uint64,ptr,uint64,uint64,ptr,uint64,uint64,uint32,uint32,uint32)') -vulkan.get_ray_tracing_shader_group_handles_khr = _lib:func('vkGetRayTracingShaderGroupHandlesKHR', 'uint32(ptr,ptr,uint32,uint32,uint64,ptr)') -vulkan.get_ray_tracing_capture_replay_shader_group_handles_khr = _lib:func('vkGetRayTracingCaptureReplayShaderGroupHandlesKHR', 'uint32(ptr,ptr,uint32,uint32,uint64,ptr)') -vulkan.get_acceleration_structure_handle_nv = _lib:func('vkGetAccelerationStructureHandleNV', 'uint32(ptr,ptr,uint64,ptr)') -vulkan.create_ray_tracing_pipelines_nv = _lib:func('vkCreateRayTracingPipelinesNV', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.create_ray_tracing_pipelines_nv = _lib:func('vkCreateRayTracingPipelinesNV', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.create_ray_tracing_pipelines_khr = _lib:func('vkCreateRayTracingPipelinesKHR', 'uint32(ptr,ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.create_ray_tracing_pipelines_khr = _lib:func('vkCreateRayTracingPipelinesKHR', 'uint32(ptr,ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.get_physical_device_cooperative_matrix_properties_nv = _lib:func('vkGetPhysicalDeviceCooperativeMatrixPropertiesNV', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_trace_rays_indirect_khr = _lib:func('vkCmdTraceRaysIndirectKHR', 'void(ptr,ptr,ptr,ptr,ptr,ptr)') -vulkan.cmd_trace_rays_indirect2_khr = _lib:func('vkCmdTraceRaysIndirect2KHR', 'void(ptr,ptr)') -vulkan.get_cluster_acceleration_structure_build_sizes_nv = _lib:func('vkGetClusterAccelerationStructureBuildSizesNV', 'void(ptr,ptr,ptr)') -vulkan.cmd_build_cluster_acceleration_structure_indirect_nv = _lib:func('vkCmdBuildClusterAccelerationStructureIndirectNV', 'void(ptr,ptr)') -vulkan.get_device_acceleration_structure_compatibility_khr = _lib:func('vkGetDeviceAccelerationStructureCompatibilityKHR', 'void(ptr,ptr,ptr)') -vulkan.get_ray_tracing_shader_group_stack_size_khr = _lib:func('vkGetRayTracingShaderGroupStackSizeKHR', 'uint64(ptr,ptr,uint32,uint32)') -vulkan.cmd_set_ray_tracing_pipeline_stack_size_khr = _lib:func('vkCmdSetRayTracingPipelineStackSizeKHR', 'void(ptr,uint32)') -vulkan.get_image_view_handle_nvx = _lib:func('vkGetImageViewHandleNVX', 'uint32(ptr,ptr)') -vulkan.get_image_view_handle64_nvx = _lib:func('vkGetImageViewHandle64NVX', 'uint64(ptr,ptr)') -vulkan.get_image_view_address_nvx = _lib:func('vkGetImageViewAddressNVX', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_surface_present_modes2_ext = _lib:func('vkGetPhysicalDeviceSurfacePresentModes2EXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_device_group_surface_present_modes2_ext = _lib:func('vkGetDeviceGroupSurfacePresentModes2EXT', 'uint32(ptr,ptr,ptr)') -vulkan.acquire_full_screen_exclusive_mode_ext = _lib:func('vkAcquireFullScreenExclusiveModeEXT', 'uint32(ptr,ptr)') -vulkan.release_full_screen_exclusive_mode_ext = _lib:func('vkReleaseFullScreenExclusiveModeEXT', 'uint32(ptr,ptr)') -vulkan.enumerate_physical_device_queue_family_performance_query_counters_khr = _lib:func('vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR', 'uint32(ptr,uint32,ptr,ptr,ptr)') -vulkan.get_physical_device_queue_family_performance_query_passes_khr = _lib:func('vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR', 'void(ptr,ptr,ptr)') -vulkan.acquire_profiling_lock_khr = _lib:func('vkAcquireProfilingLockKHR', 'uint32(ptr,ptr)') -vulkan.release_profiling_lock_khr = _lib:func('vkReleaseProfilingLockKHR', 'void(ptr)') -vulkan.get_image_drm_format_modifier_properties_ext = _lib:func('vkGetImageDrmFormatModifierPropertiesEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_buffer_opaque_capture_address = _lib:func('vkGetBufferOpaqueCaptureAddress', 'uint64(ptr,ptr)') -vulkan.get_buffer_device_address = _lib:func('vkGetBufferDeviceAddress', 'ptr(ptr,ptr)') -vulkan.create_headless_surface_ext = _lib:func('vkCreateHeadlessSurfaceEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_supported_framebuffer_mixed_samples_combinations_nv = _lib:func('vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV', 'uint32(ptr,ptr,ptr)') -vulkan.initialize_performance_api_intel = _lib:func('vkInitializePerformanceApiINTEL', 'uint32(ptr,ptr)') -vulkan.uninitialize_performance_api_intel = _lib:func('vkUninitializePerformanceApiINTEL', 'void(ptr)') -vulkan.cmd_set_performance_marker_intel = _lib:func('vkCmdSetPerformanceMarkerINTEL', 'uint32(ptr,ptr)') -vulkan.cmd_set_performance_stream_marker_intel = _lib:func('vkCmdSetPerformanceStreamMarkerINTEL', 'uint32(ptr,ptr)') -vulkan.cmd_set_performance_override_intel = _lib:func('vkCmdSetPerformanceOverrideINTEL', 'uint32(ptr,ptr)') -vulkan.acquire_performance_configuration_intel = _lib:func('vkAcquirePerformanceConfigurationINTEL', 'uint32(ptr,ptr,ptr)') -vulkan.release_performance_configuration_intel = _lib:func('vkReleasePerformanceConfigurationINTEL', 'uint32(ptr,ptr)') -vulkan.queue_set_performance_configuration_intel = _lib:func('vkQueueSetPerformanceConfigurationINTEL', 'uint32(ptr,ptr)') -vulkan.get_performance_parameter_intel = _lib:func('vkGetPerformanceParameterINTEL', 'uint32(ptr,uint32,ptr)') -vulkan.get_device_memory_opaque_capture_address = _lib:func('vkGetDeviceMemoryOpaqueCaptureAddress', 'uint64(ptr,ptr)') -vulkan.get_pipeline_executable_properties_khr = _lib:func('vkGetPipelineExecutablePropertiesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_pipeline_executable_statistics_khr = _lib:func('vkGetPipelineExecutableStatisticsKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_pipeline_executable_internal_representations_khr = _lib:func('vkGetPipelineExecutableInternalRepresentationsKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_set_line_stipple = _lib:func('vkCmdSetLineStipple', 'void(ptr,uint32,uint16)') -vulkan.get_fault_data = _lib:func('vkGetFaultData', 'uint32(ptr,uint32,ptr,ptr,ptr)') -vulkan.get_physical_device_tool_properties = _lib:func('vkGetPhysicalDeviceToolProperties', 'uint32(ptr,ptr,ptr)') -vulkan.create_acceleration_structure_khr = _lib:func('vkCreateAccelerationStructureKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_build_acceleration_structures_khr = _lib:func('vkCmdBuildAccelerationStructuresKHR', 'void(ptr,uint32,ptr,ptr)') -vulkan.cmd_build_acceleration_structures_indirect_khr = _lib:func('vkCmdBuildAccelerationStructuresIndirectKHR', 'void(ptr,uint32,ptr,ptr,ptr,ptr)') -vulkan.build_acceleration_structures_khr = _lib:func('vkBuildAccelerationStructuresKHR', 'uint32(ptr,ptr,uint32,ptr,ptr)') -vulkan.get_acceleration_structure_device_address_khr = _lib:func('vkGetAccelerationStructureDeviceAddressKHR', 'ptr(ptr,ptr)') -vulkan.create_deferred_operation_khr = _lib:func('vkCreateDeferredOperationKHR', 'uint32(ptr,ptr,ptr)') -vulkan.destroy_deferred_operation_khr = _lib:func('vkDestroyDeferredOperationKHR', 'void(ptr,ptr,ptr)') -vulkan.get_deferred_operation_max_concurrency_khr = _lib:func('vkGetDeferredOperationMaxConcurrencyKHR', 'uint32(ptr,ptr)') -vulkan.get_deferred_operation_result_khr = _lib:func('vkGetDeferredOperationResultKHR', 'uint32(ptr,ptr)') -vulkan.deferred_operation_join_khr = _lib:func('vkDeferredOperationJoinKHR', 'uint32(ptr,ptr)') -vulkan.get_pipeline_indirect_memory_requirements_nv = _lib:func('vkGetPipelineIndirectMemoryRequirementsNV', 'void(ptr,ptr,ptr)') -vulkan.get_pipeline_indirect_device_address_nv = _lib:func('vkGetPipelineIndirectDeviceAddressNV', 'ptr(ptr,ptr)') -vulkan.anti_lag_update_amd = _lib:func('vkAntiLagUpdateAMD', 'void(ptr,ptr)') -vulkan.cmd_set_cull_mode = _lib:func('vkCmdSetCullMode', 'void(ptr,ptr)') -vulkan.cmd_set_front_face = _lib:func('vkCmdSetFrontFace', 'void(ptr,uint32)') -vulkan.cmd_set_primitive_topology = _lib:func('vkCmdSetPrimitiveTopology', 'void(ptr,uint32)') -vulkan.cmd_set_viewport_with_count = _lib:func('vkCmdSetViewportWithCount', 'void(ptr,uint32,ptr)') -vulkan.cmd_set_scissor_with_count = _lib:func('vkCmdSetScissorWithCount', 'void(ptr,uint32,ptr)') -vulkan.cmd_bind_index_buffer2 = _lib:func('vkCmdBindIndexBuffer2', 'void(ptr,ptr,uint64,uint64,uint32)') -vulkan.cmd_bind_vertex_buffers2 = _lib:func('vkCmdBindVertexBuffers2', 'void(ptr,uint32,uint32,ptr,ptr,ptr,ptr)') -vulkan.cmd_set_depth_test_enable = _lib:func('vkCmdSetDepthTestEnable', 'void(ptr,uint32)') -vulkan.cmd_set_depth_write_enable = _lib:func('vkCmdSetDepthWriteEnable', 'void(ptr,uint32)') -vulkan.cmd_set_depth_compare_op = _lib:func('vkCmdSetDepthCompareOp', 'void(ptr,uint32)') -vulkan.cmd_set_depth_bounds_test_enable = _lib:func('vkCmdSetDepthBoundsTestEnable', 'void(ptr,uint32)') -vulkan.cmd_set_stencil_test_enable = _lib:func('vkCmdSetStencilTestEnable', 'void(ptr,uint32)') -vulkan.cmd_set_stencil_op = _lib:func('vkCmdSetStencilOp', 'void(ptr,ptr,uint32,uint32,uint32,uint32)') -vulkan.cmd_set_patch_control_points_ext = _lib:func('vkCmdSetPatchControlPointsEXT', 'void(ptr,uint32)') -vulkan.cmd_set_rasterizer_discard_enable = _lib:func('vkCmdSetRasterizerDiscardEnable', 'void(ptr,uint32)') -vulkan.cmd_set_depth_bias_enable = _lib:func('vkCmdSetDepthBiasEnable', 'void(ptr,uint32)') -vulkan.cmd_set_logic_op_ext = _lib:func('vkCmdSetLogicOpEXT', 'void(ptr,uint32)') -vulkan.cmd_set_primitive_restart_enable = _lib:func('vkCmdSetPrimitiveRestartEnable', 'void(ptr,uint32)') -vulkan.cmd_set_tessellation_domain_origin_ext = _lib:func('vkCmdSetTessellationDomainOriginEXT', 'void(ptr,uint32)') -vulkan.cmd_set_depth_clamp_enable_ext = _lib:func('vkCmdSetDepthClampEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_polygon_mode_ext = _lib:func('vkCmdSetPolygonModeEXT', 'void(ptr,uint32)') -vulkan.cmd_set_rasterization_samples_ext = _lib:func('vkCmdSetRasterizationSamplesEXT', 'void(ptr,uint32)') -vulkan.cmd_set_sample_mask_ext = _lib:func('vkCmdSetSampleMaskEXT', 'void(ptr,uint32,ptr)') -vulkan.cmd_set_alpha_to_coverage_enable_ext = _lib:func('vkCmdSetAlphaToCoverageEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_alpha_to_one_enable_ext = _lib:func('vkCmdSetAlphaToOneEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_logic_op_enable_ext = _lib:func('vkCmdSetLogicOpEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_color_blend_enable_ext = _lib:func('vkCmdSetColorBlendEnableEXT', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_color_blend_equation_ext = _lib:func('vkCmdSetColorBlendEquationEXT', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_color_write_mask_ext = _lib:func('vkCmdSetColorWriteMaskEXT', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_rasterization_stream_ext = _lib:func('vkCmdSetRasterizationStreamEXT', 'void(ptr,uint32)') -vulkan.cmd_set_conservative_rasterization_mode_ext = _lib:func('vkCmdSetConservativeRasterizationModeEXT', 'void(ptr,uint32)') -vulkan.cmd_set_extra_primitive_overestimation_size_ext = _lib:func('vkCmdSetExtraPrimitiveOverestimationSizeEXT', 'void(ptr,float)') -vulkan.cmd_set_depth_clip_enable_ext = _lib:func('vkCmdSetDepthClipEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_sample_locations_enable_ext = _lib:func('vkCmdSetSampleLocationsEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_color_blend_advanced_ext = _lib:func('vkCmdSetColorBlendAdvancedEXT', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_provoking_vertex_mode_ext = _lib:func('vkCmdSetProvokingVertexModeEXT', 'void(ptr,uint32)') -vulkan.cmd_set_line_rasterization_mode_ext = _lib:func('vkCmdSetLineRasterizationModeEXT', 'void(ptr,uint32)') -vulkan.cmd_set_line_stipple_enable_ext = _lib:func('vkCmdSetLineStippleEnableEXT', 'void(ptr,uint32)') -vulkan.cmd_set_depth_clip_negative_one_to_one_ext = _lib:func('vkCmdSetDepthClipNegativeOneToOneEXT', 'void(ptr,uint32)') -vulkan.cmd_set_viewport_w_scaling_enable_nv = _lib:func('vkCmdSetViewportWScalingEnableNV', 'void(ptr,uint32)') -vulkan.cmd_set_viewport_swizzle_nv = _lib:func('vkCmdSetViewportSwizzleNV', 'void(ptr,uint32,uint32,ptr)') -vulkan.cmd_set_coverage_to_color_enable_nv = _lib:func('vkCmdSetCoverageToColorEnableNV', 'void(ptr,uint32)') -vulkan.cmd_set_coverage_to_color_location_nv = _lib:func('vkCmdSetCoverageToColorLocationNV', 'void(ptr,uint32)') -vulkan.cmd_set_coverage_modulation_mode_nv = _lib:func('vkCmdSetCoverageModulationModeNV', 'void(ptr,uint32)') -vulkan.cmd_set_coverage_modulation_table_enable_nv = _lib:func('vkCmdSetCoverageModulationTableEnableNV', 'void(ptr,uint32)') -vulkan.cmd_set_coverage_modulation_table_nv = _lib:func('vkCmdSetCoverageModulationTableNV', 'void(ptr,uint32,ptr)') -vulkan.cmd_set_shading_rate_image_enable_nv = _lib:func('vkCmdSetShadingRateImageEnableNV', 'void(ptr,uint32)') -vulkan.cmd_set_coverage_reduction_mode_nv = _lib:func('vkCmdSetCoverageReductionModeNV', 'void(ptr,uint32)') -vulkan.cmd_set_representative_fragment_test_enable_nv = _lib:func('vkCmdSetRepresentativeFragmentTestEnableNV', 'void(ptr,uint32)') -vulkan.create_private_data_slot = _lib:func('vkCreatePrivateDataSlot', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_private_data_slot = _lib:func('vkDestroyPrivateDataSlot', 'void(ptr,ptr,ptr)') -vulkan.set_private_data = _lib:func('vkSetPrivateData', 'uint32(ptr,uint32,uint64,ptr,uint64)') -vulkan.get_private_data = _lib:func('vkGetPrivateData', 'void(ptr,uint32,uint64,ptr,ptr)') -vulkan.cmd_copy_buffer2 = _lib:func('vkCmdCopyBuffer2', 'void(ptr,ptr)') -vulkan.cmd_copy_image2 = _lib:func('vkCmdCopyImage2', 'void(ptr,ptr)') -vulkan.cmd_blit_image2 = _lib:func('vkCmdBlitImage2', 'void(ptr,ptr)') -vulkan.cmd_copy_buffer_to_image2 = _lib:func('vkCmdCopyBufferToImage2', 'void(ptr,ptr)') -vulkan.cmd_copy_image_to_buffer2 = _lib:func('vkCmdCopyImageToBuffer2', 'void(ptr,ptr)') -vulkan.cmd_resolve_image2 = _lib:func('vkCmdResolveImage2', 'void(ptr,ptr)') -vulkan.cmd_refresh_objects_khr = _lib:func('vkCmdRefreshObjectsKHR', 'void(ptr,ptr)') -vulkan.get_physical_device_refreshable_object_types_khr = _lib:func('vkGetPhysicalDeviceRefreshableObjectTypesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_set_fragment_shading_rate_khr = _lib:func('vkCmdSetFragmentShadingRateKHR', 'void(ptr,ptr,uint32)') -vulkan.get_physical_device_fragment_shading_rates_khr = _lib:func('vkGetPhysicalDeviceFragmentShadingRatesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_set_fragment_shading_rate_enum_nv = _lib:func('vkCmdSetFragmentShadingRateEnumNV', 'void(ptr,uint32,uint32)') -vulkan.get_acceleration_structure_build_sizes_khr = _lib:func('vkGetAccelerationStructureBuildSizesKHR', 'void(ptr,uint32,ptr,ptr,ptr)') -vulkan.cmd_set_vertex_input_ext = _lib:func('vkCmdSetVertexInputEXT', 'void(ptr,uint32,ptr,uint32,ptr)') -vulkan.cmd_set_color_write_enable_ext = _lib:func('vkCmdSetColorWriteEnableEXT', 'void(ptr,uint32,ptr)') -vulkan.cmd_set_event2 = _lib:func('vkCmdSetEvent2', 'void(ptr,ptr,ptr)') -vulkan.cmd_reset_event2 = _lib:func('vkCmdResetEvent2', 'void(ptr,ptr,ptr)') -vulkan.cmd_wait_events2 = _lib:func('vkCmdWaitEvents2', 'void(ptr,uint32,ptr,ptr)') -vulkan.cmd_pipeline_barrier2 = _lib:func('vkCmdPipelineBarrier2', 'void(ptr,ptr)') -vulkan.queue_submit2 = _lib:func('vkQueueSubmit2', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.cmd_write_timestamp2 = _lib:func('vkCmdWriteTimestamp2', 'void(ptr,ptr,ptr,uint32)') -vulkan.cmd_write_buffer_marker2_amd = _lib:func('vkCmdWriteBufferMarker2AMD', 'void(ptr,ptr,ptr,uint64,uint32)') -vulkan.get_queue_checkpoint_data2_nv = _lib:func('vkGetQueueCheckpointData2NV', 'void(ptr,ptr,ptr)') -vulkan.copy_memory_to_image = _lib:func('vkCopyMemoryToImage', 'uint32(ptr,ptr)') -vulkan.copy_image_to_memory = _lib:func('vkCopyImageToMemory', 'uint32(ptr,ptr)') -vulkan.copy_image_to_image = _lib:func('vkCopyImageToImage', 'uint32(ptr,ptr)') -vulkan.transition_image_layout = _lib:func('vkTransitionImageLayout', 'uint32(ptr,uint32,ptr)') -vulkan.get_command_pool_memory_consumption = _lib:func('vkGetCommandPoolMemoryConsumption', 'void(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_video_capabilities_khr = _lib:func('vkGetPhysicalDeviceVideoCapabilitiesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_video_format_properties_khr = _lib:func('vkGetPhysicalDeviceVideoFormatPropertiesKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_physical_device_video_encode_quality_level_properties_khr = _lib:func('vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.create_video_session_khr = _lib:func('vkCreateVideoSessionKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_video_session_khr = _lib:func('vkDestroyVideoSessionKHR', 'void(ptr,ptr,ptr)') -vulkan.create_video_session_parameters_khr = _lib:func('vkCreateVideoSessionParametersKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.update_video_session_parameters_khr = _lib:func('vkUpdateVideoSessionParametersKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_encoded_video_session_parameters_khr = _lib:func('vkGetEncodedVideoSessionParametersKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') -vulkan.destroy_video_session_parameters_khr = _lib:func('vkDestroyVideoSessionParametersKHR', 'void(ptr,ptr,ptr)') -vulkan.get_video_session_memory_requirements_khr = _lib:func('vkGetVideoSessionMemoryRequirementsKHR', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.bind_video_session_memory_khr = _lib:func('vkBindVideoSessionMemoryKHR', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.cmd_decode_video_khr = _lib:func('vkCmdDecodeVideoKHR', 'void(ptr,ptr)') -vulkan.cmd_begin_video_coding_khr = _lib:func('vkCmdBeginVideoCodingKHR', 'void(ptr,ptr)') -vulkan.cmd_control_video_coding_khr = _lib:func('vkCmdControlVideoCodingKHR', 'void(ptr,ptr)') -vulkan.cmd_end_video_coding_khr = _lib:func('vkCmdEndVideoCodingKHR', 'void(ptr,ptr)') -vulkan.cmd_encode_video_khr = _lib:func('vkCmdEncodeVideoKHR', 'void(ptr,ptr)') -vulkan.cmd_decompress_memory_nv = _lib:func('vkCmdDecompressMemoryNV', 'void(ptr,uint32,ptr)') -vulkan.cmd_decompress_memory_indirect_count_nv = _lib:func('vkCmdDecompressMemoryIndirectCountNV', 'void(ptr,ptr,ptr,uint32)') -vulkan.get_partitioned_acceleration_structures_build_sizes_nv = _lib:func('vkGetPartitionedAccelerationStructuresBuildSizesNV', 'void(ptr,ptr,ptr)') -vulkan.cmd_build_partitioned_acceleration_structures_nv = _lib:func('vkCmdBuildPartitionedAccelerationStructuresNV', 'void(ptr,ptr)') -vulkan.create_cu_module_nvx = _lib:func('vkCreateCuModuleNVX', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_cu_function_nvx = _lib:func('vkCreateCuFunctionNVX', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_cu_module_nvx = _lib:func('vkDestroyCuModuleNVX', 'void(ptr,ptr,ptr)') -vulkan.destroy_cu_function_nvx = _lib:func('vkDestroyCuFunctionNVX', 'void(ptr,ptr,ptr)') -vulkan.cmd_cu_launch_kernel_nvx = _lib:func('vkCmdCuLaunchKernelNVX', 'void(ptr,ptr)') -vulkan.get_descriptor_set_layout_size_ext = _lib:func('vkGetDescriptorSetLayoutSizeEXT', 'void(ptr,ptr,ptr)') -vulkan.get_descriptor_set_layout_binding_offset_ext = _lib:func('vkGetDescriptorSetLayoutBindingOffsetEXT', 'void(ptr,ptr,uint32,ptr)') -vulkan.get_descriptor_ext = _lib:func('vkGetDescriptorEXT', 'void(ptr,ptr,uint64,ptr)') -vulkan.cmd_bind_descriptor_buffers_ext = _lib:func('vkCmdBindDescriptorBuffersEXT', 'void(ptr,uint32,ptr)') -vulkan.cmd_set_descriptor_buffer_offsets_ext = _lib:func('vkCmdSetDescriptorBufferOffsetsEXT', 'void(ptr,uint32,ptr,uint32,uint32,ptr,ptr)') -vulkan.cmd_bind_descriptor_buffer_embedded_samplers_ext = _lib:func('vkCmdBindDescriptorBufferEmbeddedSamplersEXT', 'void(ptr,uint32,ptr,uint32)') -vulkan.get_buffer_opaque_capture_descriptor_data_ext = _lib:func('vkGetBufferOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_image_opaque_capture_descriptor_data_ext = _lib:func('vkGetImageOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_image_view_opaque_capture_descriptor_data_ext = _lib:func('vkGetImageViewOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_sampler_opaque_capture_descriptor_data_ext = _lib:func('vkGetSamplerOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_acceleration_structure_opaque_capture_descriptor_data_ext = _lib:func('vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') -vulkan.set_device_memory_priority_ext = _lib:func('vkSetDeviceMemoryPriorityEXT', 'void(ptr,ptr,float)') -vulkan.acquire_drm_display_ext = _lib:func('vkAcquireDrmDisplayEXT', 'uint32(ptr,int,ptr)') -vulkan.get_drm_display_ext = _lib:func('vkGetDrmDisplayEXT', 'uint32(ptr,int,uint32,ptr)') -vulkan.wait_for_present_khr = _lib:func('vkWaitForPresentKHR', 'uint32(ptr,ptr,uint64,uint64)') -vulkan.create_buffer_collection_fuchsia = _lib:func('vkCreateBufferCollectionFUCHSIA', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.set_buffer_collection_buffer_constraints_fuchsia = _lib:func('vkSetBufferCollectionBufferConstraintsFUCHSIA', 'uint32(ptr,ptr,ptr)') -vulkan.set_buffer_collection_image_constraints_fuchsia = _lib:func('vkSetBufferCollectionImageConstraintsFUCHSIA', 'uint32(ptr,ptr,ptr)') -vulkan.destroy_buffer_collection_fuchsia = _lib:func('vkDestroyBufferCollectionFUCHSIA', 'void(ptr,ptr,ptr)') -vulkan.get_buffer_collection_properties_fuchsia = _lib:func('vkGetBufferCollectionPropertiesFUCHSIA', 'uint32(ptr,ptr,ptr)') -vulkan.create_cuda_module_nv = _lib:func('vkCreateCudaModuleNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_cuda_module_cache_nv = _lib:func('vkGetCudaModuleCacheNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_cuda_function_nv = _lib:func('vkCreateCudaFunctionNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_cuda_module_nv = _lib:func('vkDestroyCudaModuleNV', 'void(ptr,ptr,ptr)') -vulkan.destroy_cuda_function_nv = _lib:func('vkDestroyCudaFunctionNV', 'void(ptr,ptr,ptr)') -vulkan.cmd_cuda_launch_kernel_nv = _lib:func('vkCmdCudaLaunchKernelNV', 'void(ptr,ptr)') -vulkan.cmd_begin_rendering = _lib:func('vkCmdBeginRendering', 'void(ptr,ptr)') -vulkan.cmd_end_rendering = _lib:func('vkCmdEndRendering', 'void(ptr)') -vulkan.get_descriptor_set_layout_host_mapping_info_valve = _lib:func('vkGetDescriptorSetLayoutHostMappingInfoVALVE', 'void(ptr,ptr,ptr)') -vulkan.get_descriptor_set_host_mapping_valve = _lib:func('vkGetDescriptorSetHostMappingVALVE', 'void(ptr,ptr,ptr)') -vulkan.create_micromap_ext = _lib:func('vkCreateMicromapEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_build_micromaps_ext = _lib:func('vkCmdBuildMicromapsEXT', 'void(ptr,uint32,ptr)') -vulkan.build_micromaps_ext = _lib:func('vkBuildMicromapsEXT', 'uint32(ptr,ptr,uint32,ptr)') -vulkan.destroy_micromap_ext = _lib:func('vkDestroyMicromapEXT', 'void(ptr,ptr,ptr)') -vulkan.cmd_copy_micromap_ext = _lib:func('vkCmdCopyMicromapEXT', 'void(ptr,ptr)') -vulkan.copy_micromap_ext = _lib:func('vkCopyMicromapEXT', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_copy_micromap_to_memory_ext = _lib:func('vkCmdCopyMicromapToMemoryEXT', 'void(ptr,ptr)') -vulkan.copy_micromap_to_memory_ext = _lib:func('vkCopyMicromapToMemoryEXT', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_copy_memory_to_micromap_ext = _lib:func('vkCmdCopyMemoryToMicromapEXT', 'void(ptr,ptr)') -vulkan.copy_memory_to_micromap_ext = _lib:func('vkCopyMemoryToMicromapEXT', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_write_micromaps_properties_ext = _lib:func('vkCmdWriteMicromapsPropertiesEXT', 'void(ptr,uint32,ptr,uint32,ptr,uint32)') -vulkan.write_micromaps_properties_ext = _lib:func('vkWriteMicromapsPropertiesEXT', 'uint32(ptr,uint32,ptr,uint32,uint64,ptr,uint64)') -vulkan.get_device_micromap_compatibility_ext = _lib:func('vkGetDeviceMicromapCompatibilityEXT', 'void(ptr,ptr,ptr)') -vulkan.get_micromap_build_sizes_ext = _lib:func('vkGetMicromapBuildSizesEXT', 'void(ptr,uint32,ptr,ptr)') -vulkan.get_shader_module_identifier_ext = _lib:func('vkGetShaderModuleIdentifierEXT', 'void(ptr,ptr,ptr)') -vulkan.get_shader_module_create_info_identifier_ext = _lib:func('vkGetShaderModuleCreateInfoIdentifierEXT', 'void(ptr,ptr,ptr)') -vulkan.get_image_subresource_layout2 = _lib:func('vkGetImageSubresourceLayout2', 'void(ptr,ptr,ptr,ptr)') -vulkan.get_pipeline_properties_ext = _lib:func('vkGetPipelinePropertiesEXT', 'uint32(ptr,ptr,ptr)') -vulkan.export_metal_objects_ext = _lib:func('vkExportMetalObjectsEXT', 'void(ptr,ptr)') -vulkan.get_framebuffer_tile_properties_qcom = _lib:func('vkGetFramebufferTilePropertiesQCOM', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.get_dynamic_rendering_tile_properties_qcom = _lib:func('vkGetDynamicRenderingTilePropertiesQCOM', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_optical_flow_image_formats_nv = _lib:func('vkGetPhysicalDeviceOpticalFlowImageFormatsNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_optical_flow_session_nv = _lib:func('vkCreateOpticalFlowSessionNV', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.destroy_optical_flow_session_nv = _lib:func('vkDestroyOpticalFlowSessionNV', 'void(ptr,ptr,ptr)') -vulkan.bind_optical_flow_session_image_nv = _lib:func('vkBindOpticalFlowSessionImageNV', 'uint32(ptr,ptr,uint32,ptr,uint32)') -vulkan.cmd_optical_flow_execute_nv = _lib:func('vkCmdOpticalFlowExecuteNV', 'void(ptr,ptr,ptr)') -vulkan.get_device_fault_info_ext = _lib:func('vkGetDeviceFaultInfoEXT', 'uint32(ptr,ptr,ptr)') -vulkan.cmd_set_depth_bias2_ext = _lib:func('vkCmdSetDepthBias2EXT', 'void(ptr,ptr)') -vulkan.release_swapchain_images_ext = _lib:func('vkReleaseSwapchainImagesEXT', 'uint32(ptr,ptr)') -vulkan.get_device_image_subresource_layout = _lib:func('vkGetDeviceImageSubresourceLayout', 'void(ptr,ptr,ptr)') -vulkan.map_memory2 = _lib:func('vkMapMemory2', 'uint32(ptr,ptr,ptr)') -vulkan.unmap_memory2 = _lib:func('vkUnmapMemory2', 'uint32(ptr,ptr)') -vulkan.create_shaders_ext = _lib:func('vkCreateShadersEXT', 'uint32(ptr,uint32,ptr,ptr,ptr)') -vulkan.destroy_shader_ext = _lib:func('vkDestroyShaderEXT', 'void(ptr,ptr,ptr)') -vulkan.get_shader_binary_data_ext = _lib:func('vkGetShaderBinaryDataEXT', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.cmd_bind_shaders_ext = _lib:func('vkCmdBindShadersEXT', 'void(ptr,uint32,ptr,ptr)') -vulkan.get_screen_buffer_properties_qnx = _lib:func('vkGetScreenBufferPropertiesQNX', 'uint32(ptr,ptr,ptr)') -vulkan.get_physical_device_cooperative_matrix_properties_khr = _lib:func('vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR', 'uint32(ptr,ptr,ptr)') -vulkan.get_execution_graph_pipeline_scratch_size_amdx = _lib:func('vkGetExecutionGraphPipelineScratchSizeAMDX', 'uint32(ptr,ptr,ptr)') -vulkan.get_execution_graph_pipeline_node_index_amdx = _lib:func('vkGetExecutionGraphPipelineNodeIndexAMDX', 'uint32(ptr,ptr,ptr,ptr)') -vulkan.create_execution_graph_pipelines_amdx = _lib:func('vkCreateExecutionGraphPipelinesAMDX', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') -vulkan.cmd_initialize_graph_scratch_memory_amdx = _lib:func('vkCmdInitializeGraphScratchMemoryAMDX', 'void(ptr,ptr,ptr,uint64)') -vulkan.cmd_dispatch_graph_amdx = _lib:func('vkCmdDispatchGraphAMDX', 'void(ptr,ptr,uint64,ptr)') -vulkan.cmd_dispatch_graph_indirect_amdx = _lib:func('vkCmdDispatchGraphIndirectAMDX', 'void(ptr,ptr,uint64,ptr)') -vulkan.cmd_dispatch_graph_indirect_count_amdx = _lib:func('vkCmdDispatchGraphIndirectCountAMDX', 'void(ptr,ptr,uint64,ptr)') -vulkan.cmd_bind_descriptor_sets2 = _lib:func('vkCmdBindDescriptorSets2', 'void(ptr,ptr)') -vulkan.cmd_push_constants2 = _lib:func('vkCmdPushConstants2', 'void(ptr,ptr)') -vulkan.cmd_push_descriptor_set2 = _lib:func('vkCmdPushDescriptorSet2', 'void(ptr,ptr)') -vulkan.cmd_push_descriptor_set_with_template2 = _lib:func('vkCmdPushDescriptorSetWithTemplate2', 'void(ptr,ptr)') -vulkan.cmd_set_descriptor_buffer_offsets2_ext = _lib:func('vkCmdSetDescriptorBufferOffsets2EXT', 'void(ptr,ptr)') -vulkan.cmd_bind_descriptor_buffer_embedded_samplers2_ext = _lib:func('vkCmdBindDescriptorBufferEmbeddedSamplers2EXT', 'void(ptr,ptr)') -vulkan.set_latency_sleep_mode_nv = _lib:func('vkSetLatencySleepModeNV', 'uint32(ptr,ptr,ptr)') -vulkan.latency_sleep_nv = _lib:func('vkLatencySleepNV', 'uint32(ptr,ptr,ptr)') -vulkan.set_latency_marker_nv = _lib:func('vkSetLatencyMarkerNV', 'void(ptr,ptr,ptr)') -vulkan.get_latency_timings_nv = _lib:func('vkGetLatencyTimingsNV', 'void(ptr,ptr,ptr)') -vulkan.queue_notify_out_of_band_nv = _lib:func('vkQueueNotifyOutOfBandNV', 'void(ptr,ptr)') -vulkan.cmd_set_rendering_attachment_locations = _lib:func('vkCmdSetRenderingAttachmentLocations', 'void(ptr,ptr)') -vulkan.cmd_set_rendering_input_attachment_indices = _lib:func('vkCmdSetRenderingInputAttachmentIndices', 'void(ptr,ptr)') -vulkan.cmd_set_depth_clamp_range_ext = _lib:func('vkCmdSetDepthClampRangeEXT', 'void(ptr,uint32,ptr)') -vulkan.get_physical_device_cooperative_matrix_flexible_dimensions_properties_nv = _lib:func('vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_metal_handle_ext = _lib:func('vkGetMemoryMetalHandleEXT', 'uint32(ptr,ptr,ptr)') -vulkan.get_memory_metal_handle_properties_ext = _lib:func('vkGetMemoryMetalHandlePropertiesEXT', 'uint32(ptr,uint32,ptr,ptr)') -vulkan.get_physical_device_cooperative_vector_properties_nv = _lib:func('vkGetPhysicalDeviceCooperativeVectorPropertiesNV', 'uint32(ptr,ptr,ptr)') -vulkan.convert_cooperative_vector_matrix_nv = _lib:func('vkConvertCooperativeVectorMatrixNV', 'uint32(ptr,ptr)') -vulkan.cmd_convert_cooperative_vector_matrix_nv = _lib:func('vkCmdConvertCooperativeVectorMatrixNV', 'void(ptr,uint32,ptr)') +vulkan.create_instance = _lib.func('vkCreateInstance', 'uint32(ptr,ptr,ptr)') +vulkan.destroy_instance = _lib.func('vkDestroyInstance', 'void(ptr,ptr)') +vulkan.enumerate_physical_devices = _lib.func('vkEnumeratePhysicalDevices', 'uint32(ptr,ptr,ptr)') +vulkan.get_device_proc_addr = _lib.func('vkGetDeviceProcAddr', 'ptr(ptr,ptr)') +vulkan.get_instance_proc_addr = _lib.func('vkGetInstanceProcAddr', 'ptr(ptr,ptr)') +vulkan.get_physical_device_properties = _lib.func('vkGetPhysicalDeviceProperties', 'void(ptr,ptr)') +vulkan.get_physical_device_queue_family_properties = _lib.func('vkGetPhysicalDeviceQueueFamilyProperties', 'void(ptr,ptr,ptr)') +vulkan.get_physical_device_memory_properties = _lib.func('vkGetPhysicalDeviceMemoryProperties', 'void(ptr,ptr)') +vulkan.get_physical_device_features = _lib.func('vkGetPhysicalDeviceFeatures', 'void(ptr,ptr)') +vulkan.get_physical_device_format_properties = _lib.func('vkGetPhysicalDeviceFormatProperties', 'void(ptr,uint32,ptr)') +vulkan.get_physical_device_image_format_properties = _lib.func('vkGetPhysicalDeviceImageFormatProperties', 'uint32(ptr,uint32,uint32,uint32,ptr,ptr,ptr)') +vulkan.create_device = _lib.func('vkCreateDevice', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_device = _lib.func('vkCreateDevice', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_device = _lib.func('vkDestroyDevice', 'void(ptr,ptr)') +vulkan.enumerate_instance_version = _lib.func('vkEnumerateInstanceVersion', 'uint32(ptr)') +vulkan.enumerate_instance_layer_properties = _lib.func('vkEnumerateInstanceLayerProperties', 'uint32(ptr,ptr)') +vulkan.enumerate_instance_extension_properties = _lib.func('vkEnumerateInstanceExtensionProperties', 'uint32(ptr,ptr,ptr)') +vulkan.enumerate_device_layer_properties = _lib.func('vkEnumerateDeviceLayerProperties', 'uint32(ptr,ptr,ptr)') +vulkan.enumerate_device_layer_properties = _lib.func('vkEnumerateDeviceLayerProperties', 'uint32(ptr,ptr,ptr)') +vulkan.enumerate_device_extension_properties = _lib.func('vkEnumerateDeviceExtensionProperties', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_device_queue = _lib.func('vkGetDeviceQueue', 'void(ptr,uint32,uint32,ptr)') +vulkan.queue_submit = _lib.func('vkQueueSubmit', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.queue_wait_idle = _lib.func('vkQueueWaitIdle', 'uint32(ptr)') +vulkan.device_wait_idle = _lib.func('vkDeviceWaitIdle', 'uint32(ptr)') +vulkan.allocate_memory = _lib.func('vkAllocateMemory', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.free_memory = _lib.func('vkFreeMemory', 'void(ptr,ptr,ptr)') +vulkan.map_memory = _lib.func('vkMapMemory', 'uint32(ptr,ptr,uint64,uint64,ptr,ptr)') +vulkan.unmap_memory = _lib.func('vkUnmapMemory', 'void(ptr,ptr)') +vulkan.flush_mapped_memory_ranges = _lib.func('vkFlushMappedMemoryRanges', 'uint32(ptr,uint32,ptr)') +vulkan.invalidate_mapped_memory_ranges = _lib.func('vkInvalidateMappedMemoryRanges', 'uint32(ptr,uint32,ptr)') +vulkan.get_device_memory_commitment = _lib.func('vkGetDeviceMemoryCommitment', 'void(ptr,ptr,ptr)') +vulkan.get_buffer_memory_requirements = _lib.func('vkGetBufferMemoryRequirements', 'void(ptr,ptr,ptr)') +vulkan.bind_buffer_memory = _lib.func('vkBindBufferMemory', 'uint32(ptr,ptr,ptr,uint64)') +vulkan.get_image_memory_requirements = _lib.func('vkGetImageMemoryRequirements', 'void(ptr,ptr,ptr)') +vulkan.bind_image_memory = _lib.func('vkBindImageMemory', 'uint32(ptr,ptr,ptr,uint64)') +vulkan.get_image_sparse_memory_requirements = _lib.func('vkGetImageSparseMemoryRequirements', 'void(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_sparse_image_format_properties = _lib.func('vkGetPhysicalDeviceSparseImageFormatProperties', 'void(ptr,uint32,uint32,uint32,ptr,uint32,ptr,ptr)') +vulkan.queue_bind_sparse = _lib.func('vkQueueBindSparse', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.create_fence = _lib.func('vkCreateFence', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_fence = _lib.func('vkDestroyFence', 'void(ptr,ptr,ptr)') +vulkan.reset_fences = _lib.func('vkResetFences', 'uint32(ptr,uint32,ptr)') +vulkan.get_fence_status = _lib.func('vkGetFenceStatus', 'uint32(ptr,ptr)') +vulkan.wait_for_fences = _lib.func('vkWaitForFences', 'uint32(ptr,uint32,ptr,uint32,uint64)') +vulkan.create_semaphore = _lib.func('vkCreateSemaphore', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_semaphore = _lib.func('vkDestroySemaphore', 'void(ptr,ptr,ptr)') +vulkan.create_event = _lib.func('vkCreateEvent', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_event = _lib.func('vkDestroyEvent', 'void(ptr,ptr,ptr)') +vulkan.get_event_status = _lib.func('vkGetEventStatus', 'uint32(ptr,ptr)') +vulkan.set_event = _lib.func('vkSetEvent', 'uint32(ptr,ptr)') +vulkan.reset_event = _lib.func('vkResetEvent', 'uint32(ptr,ptr)') +vulkan.create_query_pool = _lib.func('vkCreateQueryPool', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_query_pool = _lib.func('vkDestroyQueryPool', 'void(ptr,ptr,ptr)') +vulkan.get_query_pool_results = _lib.func('vkGetQueryPoolResults', 'uint32(ptr,ptr,uint32,uint32,uint64,ptr,uint64,ptr)') +vulkan.reset_query_pool = _lib.func('vkResetQueryPool', 'void(ptr,ptr,uint32,uint32)') +vulkan.create_buffer = _lib.func('vkCreateBuffer', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_buffer = _lib.func('vkDestroyBuffer', 'void(ptr,ptr,ptr)') +vulkan.create_buffer_view = _lib.func('vkCreateBufferView', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_buffer_view = _lib.func('vkDestroyBufferView', 'void(ptr,ptr,ptr)') +vulkan.create_image = _lib.func('vkCreateImage', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_image = _lib.func('vkDestroyImage', 'void(ptr,ptr,ptr)') +vulkan.get_image_subresource_layout = _lib.func('vkGetImageSubresourceLayout', 'void(ptr,ptr,ptr,ptr)') +vulkan.create_image_view = _lib.func('vkCreateImageView', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_image_view = _lib.func('vkDestroyImageView', 'void(ptr,ptr,ptr)') +vulkan.create_shader_module = _lib.func('vkCreateShaderModule', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_shader_module = _lib.func('vkDestroyShaderModule', 'void(ptr,ptr,ptr)') +vulkan.create_pipeline_cache = _lib.func('vkCreatePipelineCache', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_pipeline_cache = _lib.func('vkCreatePipelineCache', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_pipeline_cache = _lib.func('vkDestroyPipelineCache', 'void(ptr,ptr,ptr)') +vulkan.get_pipeline_cache_data = _lib.func('vkGetPipelineCacheData', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.merge_pipeline_caches = _lib.func('vkMergePipelineCaches', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.create_pipeline_binaries_khr = _lib.func('vkCreatePipelineBinariesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_pipeline_binary_khr = _lib.func('vkDestroyPipelineBinaryKHR', 'void(ptr,ptr,ptr)') +vulkan.get_pipeline_key_khr = _lib.func('vkGetPipelineKeyKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_pipeline_binary_data_khr = _lib.func('vkGetPipelineBinaryDataKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') +vulkan.release_captured_pipeline_data_khr = _lib.func('vkReleaseCapturedPipelineDataKHR', 'uint32(ptr,ptr,ptr)') +vulkan.create_graphics_pipelines = _lib.func('vkCreateGraphicsPipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.create_graphics_pipelines = _lib.func('vkCreateGraphicsPipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.create_compute_pipelines = _lib.func('vkCreateComputePipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.create_compute_pipelines = _lib.func('vkCreateComputePipelines', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.get_device_subpass_shading_max_workgroup_size_huawei = _lib.func('vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI', 'uint32(ptr,ptr,ptr)') +vulkan.destroy_pipeline = _lib.func('vkDestroyPipeline', 'void(ptr,ptr,ptr)') +vulkan.create_pipeline_layout = _lib.func('vkCreatePipelineLayout', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_pipeline_layout = _lib.func('vkDestroyPipelineLayout', 'void(ptr,ptr,ptr)') +vulkan.create_sampler = _lib.func('vkCreateSampler', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_sampler = _lib.func('vkDestroySampler', 'void(ptr,ptr,ptr)') +vulkan.create_descriptor_set_layout = _lib.func('vkCreateDescriptorSetLayout', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_descriptor_set_layout = _lib.func('vkDestroyDescriptorSetLayout', 'void(ptr,ptr,ptr)') +vulkan.create_descriptor_pool = _lib.func('vkCreateDescriptorPool', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_descriptor_pool = _lib.func('vkDestroyDescriptorPool', 'void(ptr,ptr,ptr)') +vulkan.reset_descriptor_pool = _lib.func('vkResetDescriptorPool', 'uint32(ptr,ptr,ptr)') +vulkan.allocate_descriptor_sets = _lib.func('vkAllocateDescriptorSets', 'uint32(ptr,ptr,ptr)') +vulkan.free_descriptor_sets = _lib.func('vkFreeDescriptorSets', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.update_descriptor_sets = _lib.func('vkUpdateDescriptorSets', 'void(ptr,uint32,ptr,uint32,ptr)') +vulkan.create_framebuffer = _lib.func('vkCreateFramebuffer', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_framebuffer = _lib.func('vkDestroyFramebuffer', 'void(ptr,ptr,ptr)') +vulkan.create_render_pass = _lib.func('vkCreateRenderPass', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_render_pass = _lib.func('vkDestroyRenderPass', 'void(ptr,ptr,ptr)') +vulkan.get_render_area_granularity = _lib.func('vkGetRenderAreaGranularity', 'void(ptr,ptr,ptr)') +vulkan.get_rendering_area_granularity = _lib.func('vkGetRenderingAreaGranularity', 'void(ptr,ptr,ptr)') +vulkan.create_command_pool = _lib.func('vkCreateCommandPool', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_command_pool = _lib.func('vkDestroyCommandPool', 'void(ptr,ptr,ptr)') +vulkan.reset_command_pool = _lib.func('vkResetCommandPool', 'uint32(ptr,ptr,ptr)') +vulkan.allocate_command_buffers = _lib.func('vkAllocateCommandBuffers', 'uint32(ptr,ptr,ptr)') +vulkan.free_command_buffers = _lib.func('vkFreeCommandBuffers', 'void(ptr,ptr,uint32,ptr)') +vulkan.begin_command_buffer = _lib.func('vkBeginCommandBuffer', 'uint32(ptr,ptr)') +vulkan.end_command_buffer = _lib.func('vkEndCommandBuffer', 'uint32(ptr)') +vulkan.reset_command_buffer = _lib.func('vkResetCommandBuffer', 'uint32(ptr,ptr)') +vulkan.cmd_bind_pipeline = _lib.func('vkCmdBindPipeline', 'void(ptr,uint32,ptr)') +vulkan.cmd_set_attachment_feedback_loop_enable_ext = _lib.func('vkCmdSetAttachmentFeedbackLoopEnableEXT', 'void(ptr,ptr)') +vulkan.cmd_set_viewport = _lib.func('vkCmdSetViewport', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_scissor = _lib.func('vkCmdSetScissor', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_line_width = _lib.func('vkCmdSetLineWidth', 'void(ptr,float)') +vulkan.cmd_set_depth_bias = _lib.func('vkCmdSetDepthBias', 'void(ptr,float,float,float)') +vulkan.cmd_set_blend_constants = _lib.func('vkCmdSetBlendConstants', 'void(ptr,int)') +vulkan.cmd_set_depth_bounds = _lib.func('vkCmdSetDepthBounds', 'void(ptr,float,float)') +vulkan.cmd_set_stencil_compare_mask = _lib.func('vkCmdSetStencilCompareMask', 'void(ptr,ptr,uint32)') +vulkan.cmd_set_stencil_write_mask = _lib.func('vkCmdSetStencilWriteMask', 'void(ptr,ptr,uint32)') +vulkan.cmd_set_stencil_reference = _lib.func('vkCmdSetStencilReference', 'void(ptr,ptr,uint32)') +vulkan.cmd_bind_descriptor_sets = _lib.func('vkCmdBindDescriptorSets', 'void(ptr,uint32,ptr,uint32,uint32,ptr,uint32,ptr)') +vulkan.cmd_bind_index_buffer = _lib.func('vkCmdBindIndexBuffer', 'void(ptr,ptr,uint64,uint32)') +vulkan.cmd_bind_vertex_buffers = _lib.func('vkCmdBindVertexBuffers', 'void(ptr,uint32,uint32,ptr,ptr)') +vulkan.cmd_draw = _lib.func('vkCmdDraw', 'void(ptr,uint32,uint32,uint32,uint32)') +vulkan.cmd_draw_indexed = _lib.func('vkCmdDrawIndexed', 'void(ptr,uint32,uint32,uint32,int,uint32)') +vulkan.cmd_draw_multi_ext = _lib.func('vkCmdDrawMultiEXT', 'void(ptr,uint32,ptr,uint32,uint32,uint32)') +vulkan.cmd_draw_multi_indexed_ext = _lib.func('vkCmdDrawMultiIndexedEXT', 'void(ptr,uint32,ptr,uint32,uint32,uint32,ptr)') +vulkan.cmd_draw_indirect = _lib.func('vkCmdDrawIndirect', 'void(ptr,ptr,uint64,uint32,uint32)') +vulkan.cmd_draw_indexed_indirect = _lib.func('vkCmdDrawIndexedIndirect', 'void(ptr,ptr,uint64,uint32,uint32)') +vulkan.cmd_dispatch = _lib.func('vkCmdDispatch', 'void(ptr,uint32,uint32,uint32)') +vulkan.cmd_dispatch_indirect = _lib.func('vkCmdDispatchIndirect', 'void(ptr,ptr,uint64)') +vulkan.cmd_subpass_shading_huawei = _lib.func('vkCmdSubpassShadingHUAWEI', 'void(ptr)') +vulkan.cmd_draw_cluster_huawei = _lib.func('vkCmdDrawClusterHUAWEI', 'void(ptr,uint32,uint32,uint32)') +vulkan.cmd_draw_cluster_indirect_huawei = _lib.func('vkCmdDrawClusterIndirectHUAWEI', 'void(ptr,ptr,uint64)') +vulkan.cmd_update_pipeline_indirect_buffer_nv = _lib.func('vkCmdUpdatePipelineIndirectBufferNV', 'void(ptr,uint32,ptr)') +vulkan.cmd_copy_buffer = _lib.func('vkCmdCopyBuffer', 'void(ptr,ptr,ptr,uint32,ptr)') +vulkan.cmd_copy_image = _lib.func('vkCmdCopyImage', 'void(ptr,ptr,uint32,ptr,uint32,uint32,ptr)') +vulkan.cmd_blit_image = _lib.func('vkCmdBlitImage', 'void(ptr,ptr,uint32,ptr,uint32,uint32,ptr,uint32)') +vulkan.cmd_copy_buffer_to_image = _lib.func('vkCmdCopyBufferToImage', 'void(ptr,ptr,ptr,uint32,uint32,ptr)') +vulkan.cmd_copy_image_to_buffer = _lib.func('vkCmdCopyImageToBuffer', 'void(ptr,ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_copy_memory_indirect_nv = _lib.func('vkCmdCopyMemoryIndirectNV', 'void(ptr,ptr,uint32,uint32)') +vulkan.cmd_copy_memory_to_image_indirect_nv = _lib.func('vkCmdCopyMemoryToImageIndirectNV', 'void(ptr,ptr,uint32,uint32,ptr,uint32,ptr)') +vulkan.cmd_update_buffer = _lib.func('vkCmdUpdateBuffer', 'void(ptr,ptr,uint64,uint64,ptr)') +vulkan.cmd_fill_buffer = _lib.func('vkCmdFillBuffer', 'void(ptr,ptr,uint64,uint64,uint32)') +vulkan.cmd_clear_color_image = _lib.func('vkCmdClearColorImage', 'void(ptr,ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_clear_depth_stencil_image = _lib.func('vkCmdClearDepthStencilImage', 'void(ptr,ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_clear_attachments = _lib.func('vkCmdClearAttachments', 'void(ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_resolve_image = _lib.func('vkCmdResolveImage', 'void(ptr,ptr,uint32,ptr,uint32,uint32,ptr)') +vulkan.cmd_set_event = _lib.func('vkCmdSetEvent', 'void(ptr,ptr,ptr)') +vulkan.cmd_reset_event = _lib.func('vkCmdResetEvent', 'void(ptr,ptr,ptr)') +vulkan.cmd_wait_events = _lib.func('vkCmdWaitEvents', 'void(ptr,uint32,ptr,ptr,ptr,uint32,ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_pipeline_barrier = _lib.func('vkCmdPipelineBarrier', 'void(ptr,ptr,ptr,ptr,uint32,ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_begin_query = _lib.func('vkCmdBeginQuery', 'void(ptr,ptr,uint32,ptr)') +vulkan.cmd_end_query = _lib.func('vkCmdEndQuery', 'void(ptr,ptr,uint32)') +vulkan.cmd_begin_conditional_rendering_ext = _lib.func('vkCmdBeginConditionalRenderingEXT', 'void(ptr,ptr)') +vulkan.cmd_end_conditional_rendering_ext = _lib.func('vkCmdEndConditionalRenderingEXT', 'void(ptr)') +vulkan.cmd_reset_query_pool = _lib.func('vkCmdResetQueryPool', 'void(ptr,ptr,uint32,uint32)') +vulkan.cmd_write_timestamp = _lib.func('vkCmdWriteTimestamp', 'void(ptr,uint32,ptr,uint32)') +vulkan.cmd_copy_query_pool_results = _lib.func('vkCmdCopyQueryPoolResults', 'void(ptr,ptr,uint32,uint32,ptr,uint64,uint64,ptr)') +vulkan.cmd_push_constants = _lib.func('vkCmdPushConstants', 'void(ptr,ptr,ptr,uint32,uint32,ptr)') +vulkan.cmd_begin_render_pass = _lib.func('vkCmdBeginRenderPass', 'void(ptr,ptr,uint32)') +vulkan.cmd_next_subpass = _lib.func('vkCmdNextSubpass', 'void(ptr,uint32)') +vulkan.cmd_end_render_pass = _lib.func('vkCmdEndRenderPass', 'void(ptr)') +vulkan.cmd_execute_commands = _lib.func('vkCmdExecuteCommands', 'void(ptr,uint32,ptr)') +vulkan.create_android_surface_khr = _lib.func('vkCreateAndroidSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_display_properties_khr = _lib.func('vkGetPhysicalDeviceDisplayPropertiesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_display_plane_properties_khr = _lib.func('vkGetPhysicalDeviceDisplayPlanePropertiesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_display_plane_supported_displays_khr = _lib.func('vkGetDisplayPlaneSupportedDisplaysKHR', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.get_display_mode_properties_khr = _lib.func('vkGetDisplayModePropertiesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_display_mode_khr = _lib.func('vkCreateDisplayModeKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') +vulkan.get_display_plane_capabilities_khr = _lib.func('vkGetDisplayPlaneCapabilitiesKHR', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.create_display_plane_surface_khr = _lib.func('vkCreateDisplayPlaneSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_shared_swapchains_khr = _lib.func('vkCreateSharedSwapchainsKHR', 'uint32(ptr,uint32,ptr,ptr,ptr,ptr)') +vulkan.destroy_surface_khr = _lib.func('vkDestroySurfaceKHR', 'void(ptr,ptr,ptr)') +vulkan.get_physical_device_surface_support_khr = _lib.func('vkGetPhysicalDeviceSurfaceSupportKHR', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.get_physical_device_surface_capabilities_khr = _lib.func('vkGetPhysicalDeviceSurfaceCapabilitiesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_surface_formats_khr = _lib.func('vkGetPhysicalDeviceSurfaceFormatsKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_surface_present_modes_khr = _lib.func('vkGetPhysicalDeviceSurfacePresentModesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_swapchain_khr = _lib.func('vkCreateSwapchainKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') +vulkan.destroy_swapchain_khr = _lib.func('vkDestroySwapchainKHR', 'void(ptr,ptr,ptr)') +vulkan.get_swapchain_images_khr = _lib.func('vkGetSwapchainImagesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.acquire_next_image_khr = _lib.func('vkAcquireNextImageKHR', 'uint32(ptr,ptr,uint64,ptr,ptr,ptr)') +vulkan.queue_present_khr = _lib.func('vkQueuePresentKHR', 'uint32(ptr,ptr)') +vulkan.create_vi_surface_nn = _lib.func('vkCreateViSurfaceNN', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_wayland_surface_khr = _lib.func('vkCreateWaylandSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_wayland_presentation_support_khr = _lib.func('vkGetPhysicalDeviceWaylandPresentationSupportKHR', 'uint32(ptr,uint32,ptr)') +vulkan.create_win32_surface_khr = _lib.func('vkCreateWin32SurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_win32_presentation_support_khr = _lib.func('vkGetPhysicalDeviceWin32PresentationSupportKHR', 'uint32(ptr,uint32)') +vulkan.create_xlib_surface_khr = _lib.func('vkCreateXlibSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_xlib_presentation_support_khr = _lib.func('vkGetPhysicalDeviceXlibPresentationSupportKHR', 'uint32(ptr,uint32,ptr,int)') +vulkan.create_xcb_surface_khr = _lib.func('vkCreateXcbSurfaceKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_xcb_presentation_support_khr = _lib.func('vkGetPhysicalDeviceXcbPresentationSupportKHR', 'uint32(ptr,uint32,ptr,int)') +vulkan.create_direct_fb_surface_ext = _lib.func('vkCreateDirectFBSurfaceEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_direct_fb_presentation_support_ext = _lib.func('vkGetPhysicalDeviceDirectFBPresentationSupportEXT', 'uint32(ptr,uint32,ptr)') +vulkan.create_image_pipe_surface_fuchsia = _lib.func('vkCreateImagePipeSurfaceFUCHSIA', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_stream_descriptor_surface_ggp = _lib.func('vkCreateStreamDescriptorSurfaceGGP', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_screen_surface_qnx = _lib.func('vkCreateScreenSurfaceQNX', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_screen_presentation_support_qnx = _lib.func('vkGetPhysicalDeviceScreenPresentationSupportQNX', 'uint32(ptr,uint32,ptr)') +vulkan.create_debug_report_callback_ext = _lib.func('vkCreateDebugReportCallbackEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_debug_report_callback_ext = _lib.func('vkDestroyDebugReportCallbackEXT', 'void(ptr,ptr,ptr)') +vulkan.debug_report_message_ext = _lib.func('vkDebugReportMessageEXT', 'void(ptr,ptr,uint32,uint64,uint64,int,ptr,ptr)') +vulkan.debug_marker_set_object_name_ext = _lib.func('vkDebugMarkerSetObjectNameEXT', 'uint32(ptr,ptr)') +vulkan.debug_marker_set_object_tag_ext = _lib.func('vkDebugMarkerSetObjectTagEXT', 'uint32(ptr,ptr)') +vulkan.cmd_debug_marker_begin_ext = _lib.func('vkCmdDebugMarkerBeginEXT', 'void(ptr,ptr)') +vulkan.cmd_debug_marker_end_ext = _lib.func('vkCmdDebugMarkerEndEXT', 'void(ptr)') +vulkan.cmd_debug_marker_insert_ext = _lib.func('vkCmdDebugMarkerInsertEXT', 'void(ptr,ptr)') +vulkan.get_physical_device_external_image_format_properties_nv = _lib.func('vkGetPhysicalDeviceExternalImageFormatPropertiesNV', 'uint32(ptr,uint32,uint32,uint32,ptr,ptr,ptr,ptr)') +vulkan.get_memory_win32_handle_nv = _lib.func('vkGetMemoryWin32HandleNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_execute_generated_commands_nv = _lib.func('vkCmdExecuteGeneratedCommandsNV', 'void(ptr,uint32,ptr)') +vulkan.cmd_preprocess_generated_commands_nv = _lib.func('vkCmdPreprocessGeneratedCommandsNV', 'void(ptr,ptr)') +vulkan.cmd_bind_pipeline_shader_group_nv = _lib.func('vkCmdBindPipelineShaderGroupNV', 'void(ptr,uint32,ptr,uint32)') +vulkan.get_generated_commands_memory_requirements_nv = _lib.func('vkGetGeneratedCommandsMemoryRequirementsNV', 'void(ptr,ptr,ptr)') +vulkan.create_indirect_commands_layout_nv = _lib.func('vkCreateIndirectCommandsLayoutNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_indirect_commands_layout_nv = _lib.func('vkDestroyIndirectCommandsLayoutNV', 'void(ptr,ptr,ptr)') +vulkan.cmd_execute_generated_commands_ext = _lib.func('vkCmdExecuteGeneratedCommandsEXT', 'void(ptr,uint32,ptr)') +vulkan.cmd_preprocess_generated_commands_ext = _lib.func('vkCmdPreprocessGeneratedCommandsEXT', 'void(ptr,ptr,ptr)') +vulkan.get_generated_commands_memory_requirements_ext = _lib.func('vkGetGeneratedCommandsMemoryRequirementsEXT', 'void(ptr,ptr,ptr)') +vulkan.create_indirect_commands_layout_ext = _lib.func('vkCreateIndirectCommandsLayoutEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_indirect_commands_layout_ext = _lib.func('vkDestroyIndirectCommandsLayoutEXT', 'void(ptr,ptr,ptr)') +vulkan.create_indirect_execution_set_ext = _lib.func('vkCreateIndirectExecutionSetEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_indirect_execution_set_ext = _lib.func('vkDestroyIndirectExecutionSetEXT', 'void(ptr,ptr,ptr)') +vulkan.update_indirect_execution_set_pipeline_ext = _lib.func('vkUpdateIndirectExecutionSetPipelineEXT', 'void(ptr,ptr,uint32,ptr)') +vulkan.update_indirect_execution_set_shader_ext = _lib.func('vkUpdateIndirectExecutionSetShaderEXT', 'void(ptr,ptr,uint32,ptr)') +vulkan.get_physical_device_features2 = _lib.func('vkGetPhysicalDeviceFeatures2', 'void(ptr,ptr)') +vulkan.get_physical_device_properties2 = _lib.func('vkGetPhysicalDeviceProperties2', 'void(ptr,ptr)') +vulkan.get_physical_device_format_properties2 = _lib.func('vkGetPhysicalDeviceFormatProperties2', 'void(ptr,uint32,ptr)') +vulkan.get_physical_device_image_format_properties2 = _lib.func('vkGetPhysicalDeviceImageFormatProperties2', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_queue_family_properties2 = _lib.func('vkGetPhysicalDeviceQueueFamilyProperties2', 'void(ptr,ptr,ptr)') +vulkan.get_physical_device_memory_properties2 = _lib.func('vkGetPhysicalDeviceMemoryProperties2', 'void(ptr,ptr)') +vulkan.get_physical_device_sparse_image_format_properties2 = _lib.func('vkGetPhysicalDeviceSparseImageFormatProperties2', 'void(ptr,ptr,ptr,ptr)') +vulkan.cmd_push_descriptor_set = _lib.func('vkCmdPushDescriptorSet', 'void(ptr,uint32,ptr,uint32,uint32,ptr)') +vulkan.trim_command_pool = _lib.func('vkTrimCommandPool', 'void(ptr,ptr,ptr)') +vulkan.get_physical_device_external_buffer_properties = _lib.func('vkGetPhysicalDeviceExternalBufferProperties', 'void(ptr,ptr,ptr)') +vulkan.get_memory_win32_handle_khr = _lib.func('vkGetMemoryWin32HandleKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_win32_handle_properties_khr = _lib.func('vkGetMemoryWin32HandlePropertiesKHR', 'uint32(ptr,uint32,int,ptr)') +vulkan.get_memory_fd_khr = _lib.func('vkGetMemoryFdKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_fd_properties_khr = _lib.func('vkGetMemoryFdPropertiesKHR', 'uint32(ptr,uint32,int,ptr)') +vulkan.get_memory_zircon_handle_fuchsia = _lib.func('vkGetMemoryZirconHandleFUCHSIA', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_zircon_handle_properties_fuchsia = _lib.func('vkGetMemoryZirconHandlePropertiesFUCHSIA', 'uint32(ptr,uint32,int,ptr)') +vulkan.get_memory_remote_address_nv = _lib.func('vkGetMemoryRemoteAddressNV', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_sci_buf_nv = _lib.func('vkGetMemorySciBufNV', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_external_memory_sci_buf_properties_nv = _lib.func('vkGetPhysicalDeviceExternalMemorySciBufPropertiesNV', 'uint32(ptr,uint32,int,ptr)') +vulkan.get_physical_device_sci_buf_attributes_nv = _lib.func('vkGetPhysicalDeviceSciBufAttributesNV', 'uint32(ptr,int)') +vulkan.get_physical_device_external_semaphore_properties = _lib.func('vkGetPhysicalDeviceExternalSemaphoreProperties', 'void(ptr,ptr,ptr)') +vulkan.get_semaphore_win32_handle_khr = _lib.func('vkGetSemaphoreWin32HandleKHR', 'uint32(ptr,ptr,ptr)') +vulkan.import_semaphore_win32_handle_khr = _lib.func('vkImportSemaphoreWin32HandleKHR', 'uint32(ptr,ptr)') +vulkan.get_semaphore_fd_khr = _lib.func('vkGetSemaphoreFdKHR', 'uint32(ptr,ptr,ptr)') +vulkan.import_semaphore_fd_khr = _lib.func('vkImportSemaphoreFdKHR', 'uint32(ptr,ptr)') +vulkan.get_semaphore_zircon_handle_fuchsia = _lib.func('vkGetSemaphoreZirconHandleFUCHSIA', 'uint32(ptr,ptr,ptr)') +vulkan.import_semaphore_zircon_handle_fuchsia = _lib.func('vkImportSemaphoreZirconHandleFUCHSIA', 'uint32(ptr,ptr)') +vulkan.get_physical_device_external_fence_properties = _lib.func('vkGetPhysicalDeviceExternalFenceProperties', 'void(ptr,ptr,ptr)') +vulkan.get_fence_win32_handle_khr = _lib.func('vkGetFenceWin32HandleKHR', 'uint32(ptr,ptr,ptr)') +vulkan.import_fence_win32_handle_khr = _lib.func('vkImportFenceWin32HandleKHR', 'uint32(ptr,ptr)') +vulkan.get_fence_fd_khr = _lib.func('vkGetFenceFdKHR', 'uint32(ptr,ptr,ptr)') +vulkan.import_fence_fd_khr = _lib.func('vkImportFenceFdKHR', 'uint32(ptr,ptr)') +vulkan.get_fence_sci_sync_fence_nv = _lib.func('vkGetFenceSciSyncFenceNV', 'uint32(ptr,ptr,ptr)') +vulkan.get_fence_sci_sync_obj_nv = _lib.func('vkGetFenceSciSyncObjNV', 'uint32(ptr,ptr,ptr)') +vulkan.import_fence_sci_sync_fence_nv = _lib.func('vkImportFenceSciSyncFenceNV', 'uint32(ptr,ptr)') +vulkan.import_fence_sci_sync_obj_nv = _lib.func('vkImportFenceSciSyncObjNV', 'uint32(ptr,ptr)') +vulkan.get_semaphore_sci_sync_obj_nv = _lib.func('vkGetSemaphoreSciSyncObjNV', 'uint32(ptr,ptr,ptr)') +vulkan.import_semaphore_sci_sync_obj_nv = _lib.func('vkImportSemaphoreSciSyncObjNV', 'uint32(ptr,ptr)') +vulkan.get_physical_device_sci_sync_attributes_nv = _lib.func('vkGetPhysicalDeviceSciSyncAttributesNV', 'uint32(ptr,ptr,int)') +vulkan.create_semaphore_sci_sync_pool_nv = _lib.func('vkCreateSemaphoreSciSyncPoolNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_semaphore_sci_sync_pool_nv = _lib.func('vkDestroySemaphoreSciSyncPoolNV', 'void(ptr,ptr,ptr)') +vulkan.release_display_ext = _lib.func('vkReleaseDisplayEXT', 'uint32(ptr,ptr)') +vulkan.acquire_xlib_display_ext = _lib.func('vkAcquireXlibDisplayEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_rand_r_output_display_ext = _lib.func('vkGetRandROutputDisplayEXT', 'uint32(ptr,ptr,int,ptr)') +vulkan.acquire_winrt_display_nv = _lib.func('vkAcquireWinrtDisplayNV', 'uint32(ptr,ptr)') +vulkan.get_winrt_display_nv = _lib.func('vkGetWinrtDisplayNV', 'uint32(ptr,uint32,ptr)') +vulkan.display_power_control_ext = _lib.func('vkDisplayPowerControlEXT', 'uint32(ptr,ptr,ptr)') +vulkan.register_device_event_ext = _lib.func('vkRegisterDeviceEventEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.register_display_event_ext = _lib.func('vkRegisterDisplayEventEXT', 'uint32(ptr,ptr,ptr,ptr,ptr)') +vulkan.get_swapchain_counter_ext = _lib.func('vkGetSwapchainCounterEXT', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.get_physical_device_surface_capabilities2_ext = _lib.func('vkGetPhysicalDeviceSurfaceCapabilities2EXT', 'uint32(ptr,ptr,ptr)') +vulkan.enumerate_physical_device_groups = _lib.func('vkEnumeratePhysicalDeviceGroups', 'uint32(ptr,ptr,ptr)') +vulkan.get_device_group_peer_memory_features = _lib.func('vkGetDeviceGroupPeerMemoryFeatures', 'void(ptr,uint32,uint32,uint32,ptr)') +vulkan.bind_buffer_memory2 = _lib.func('vkBindBufferMemory2', 'uint32(ptr,uint32,ptr)') +vulkan.bind_image_memory2 = _lib.func('vkBindImageMemory2', 'uint32(ptr,uint32,ptr)') +vulkan.cmd_set_device_mask = _lib.func('vkCmdSetDeviceMask', 'void(ptr,uint32)') +vulkan.get_device_group_present_capabilities_khr = _lib.func('vkGetDeviceGroupPresentCapabilitiesKHR', 'uint32(ptr,ptr)') +vulkan.get_device_group_surface_present_modes_khr = _lib.func('vkGetDeviceGroupSurfacePresentModesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.acquire_next_image2_khr = _lib.func('vkAcquireNextImage2KHR', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_dispatch_base = _lib.func('vkCmdDispatchBase', 'void(ptr,uint32,uint32,uint32,uint32,uint32,uint32)') +vulkan.get_physical_device_present_rectangles_khr = _lib.func('vkGetPhysicalDevicePresentRectanglesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_descriptor_update_template = _lib.func('vkCreateDescriptorUpdateTemplate', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_descriptor_update_template = _lib.func('vkDestroyDescriptorUpdateTemplate', 'void(ptr,ptr,ptr)') +vulkan.update_descriptor_set_with_template = _lib.func('vkUpdateDescriptorSetWithTemplate', 'void(ptr,ptr,ptr,ptr)') +vulkan.cmd_push_descriptor_set_with_template = _lib.func('vkCmdPushDescriptorSetWithTemplate', 'void(ptr,ptr,ptr,uint32,ptr)') +vulkan.set_hdr_metadata_ext = _lib.func('vkSetHdrMetadataEXT', 'void(ptr,uint32,ptr,ptr)') +vulkan.get_swapchain_status_khr = _lib.func('vkGetSwapchainStatusKHR', 'uint32(ptr,ptr)') +vulkan.get_refresh_cycle_duration_google = _lib.func('vkGetRefreshCycleDurationGOOGLE', 'uint32(ptr,ptr,ptr)') +vulkan.get_past_presentation_timing_google = _lib.func('vkGetPastPresentationTimingGOOGLE', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_ios_surface_mvk = _lib.func('vkCreateIOSSurfaceMVK', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_mac_os_surface_mvk = _lib.func('vkCreateMacOSSurfaceMVK', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_metal_surface_ext = _lib.func('vkCreateMetalSurfaceEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_set_viewport_w_scaling_nv = _lib.func('vkCmdSetViewportWScalingNV', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_discard_rectangle_ext = _lib.func('vkCmdSetDiscardRectangleEXT', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_discard_rectangle_enable_ext = _lib.func('vkCmdSetDiscardRectangleEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_discard_rectangle_mode_ext = _lib.func('vkCmdSetDiscardRectangleModeEXT', 'void(ptr,uint32)') +vulkan.cmd_set_sample_locations_ext = _lib.func('vkCmdSetSampleLocationsEXT', 'void(ptr,ptr)') +vulkan.get_physical_device_multisample_properties_ext = _lib.func('vkGetPhysicalDeviceMultisamplePropertiesEXT', 'void(ptr,uint32,ptr)') +vulkan.get_physical_device_surface_capabilities2_khr = _lib.func('vkGetPhysicalDeviceSurfaceCapabilities2KHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_surface_formats2_khr = _lib.func('vkGetPhysicalDeviceSurfaceFormats2KHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_display_properties2_khr = _lib.func('vkGetPhysicalDeviceDisplayProperties2KHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_display_plane_properties2_khr = _lib.func('vkGetPhysicalDeviceDisplayPlaneProperties2KHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_display_mode_properties2_khr = _lib.func('vkGetDisplayModeProperties2KHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_display_plane_capabilities2_khr = _lib.func('vkGetDisplayPlaneCapabilities2KHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_buffer_memory_requirements2 = _lib.func('vkGetBufferMemoryRequirements2', 'void(ptr,ptr,ptr)') +vulkan.get_image_memory_requirements2 = _lib.func('vkGetImageMemoryRequirements2', 'void(ptr,ptr,ptr)') +vulkan.get_image_sparse_memory_requirements2 = _lib.func('vkGetImageSparseMemoryRequirements2', 'void(ptr,ptr,ptr,ptr)') +vulkan.get_device_buffer_memory_requirements = _lib.func('vkGetDeviceBufferMemoryRequirements', 'void(ptr,ptr,ptr)') +vulkan.get_device_image_memory_requirements = _lib.func('vkGetDeviceImageMemoryRequirements', 'void(ptr,ptr,ptr)') +vulkan.get_device_image_sparse_memory_requirements = _lib.func('vkGetDeviceImageSparseMemoryRequirements', 'void(ptr,ptr,ptr,ptr)') +vulkan.create_sampler_ycbcr_conversion = _lib.func('vkCreateSamplerYcbcrConversion', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_sampler_ycbcr_conversion = _lib.func('vkDestroySamplerYcbcrConversion', 'void(ptr,ptr,ptr)') +vulkan.get_device_queue2 = _lib.func('vkGetDeviceQueue2', 'void(ptr,ptr,ptr)') +vulkan.create_validation_cache_ext = _lib.func('vkCreateValidationCacheEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_validation_cache_ext = _lib.func('vkDestroyValidationCacheEXT', 'void(ptr,ptr,ptr)') +vulkan.get_validation_cache_data_ext = _lib.func('vkGetValidationCacheDataEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.merge_validation_caches_ext = _lib.func('vkMergeValidationCachesEXT', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.get_descriptor_set_layout_support = _lib.func('vkGetDescriptorSetLayoutSupport', 'void(ptr,ptr,ptr)') +vulkan.get_swapchain_gralloc_usage_android = _lib.func('vkGetSwapchainGrallocUsageANDROID', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.get_swapchain_gralloc_usage2_android = _lib.func('vkGetSwapchainGrallocUsage2ANDROID', 'uint32(ptr,uint32,ptr,ptr,ptr,ptr)') +vulkan.acquire_image_android = _lib.func('vkAcquireImageANDROID', 'uint32(ptr,ptr,int,ptr,ptr)') +vulkan.queue_signal_release_image_android = _lib.func('vkQueueSignalReleaseImageANDROID', 'uint32(ptr,uint32,ptr,ptr,ptr)') +vulkan.get_shader_info_amd = _lib.func('vkGetShaderInfoAMD', 'uint32(ptr,ptr,uint32,uint32,ptr,ptr)') +vulkan.set_local_dimming_amd = _lib.func('vkSetLocalDimmingAMD', 'void(ptr,ptr,uint32)') +vulkan.get_physical_device_calibrateable_time_domains_khr = _lib.func('vkGetPhysicalDeviceCalibrateableTimeDomainsKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_calibrated_timestamps_khr = _lib.func('vkGetCalibratedTimestampsKHR', 'uint32(ptr,uint32,ptr,ptr,ptr)') +vulkan.set_debug_utils_object_name_ext = _lib.func('vkSetDebugUtilsObjectNameEXT', 'uint32(ptr,ptr)') +vulkan.set_debug_utils_object_tag_ext = _lib.func('vkSetDebugUtilsObjectTagEXT', 'uint32(ptr,ptr)') +vulkan.queue_begin_debug_utils_label_ext = _lib.func('vkQueueBeginDebugUtilsLabelEXT', 'void(ptr,ptr)') +vulkan.queue_end_debug_utils_label_ext = _lib.func('vkQueueEndDebugUtilsLabelEXT', 'void(ptr)') +vulkan.queue_insert_debug_utils_label_ext = _lib.func('vkQueueInsertDebugUtilsLabelEXT', 'void(ptr,ptr)') +vulkan.cmd_begin_debug_utils_label_ext = _lib.func('vkCmdBeginDebugUtilsLabelEXT', 'void(ptr,ptr)') +vulkan.cmd_end_debug_utils_label_ext = _lib.func('vkCmdEndDebugUtilsLabelEXT', 'void(ptr)') +vulkan.cmd_insert_debug_utils_label_ext = _lib.func('vkCmdInsertDebugUtilsLabelEXT', 'void(ptr,ptr)') +vulkan.create_debug_utils_messenger_ext = _lib.func('vkCreateDebugUtilsMessengerEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_debug_utils_messenger_ext = _lib.func('vkDestroyDebugUtilsMessengerEXT', 'void(ptr,ptr,ptr)') +vulkan.submit_debug_utils_message_ext = _lib.func('vkSubmitDebugUtilsMessageEXT', 'void(ptr,uint32,ptr,ptr)') +vulkan.get_memory_host_pointer_properties_ext = _lib.func('vkGetMemoryHostPointerPropertiesEXT', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.cmd_write_buffer_marker_amd = _lib.func('vkCmdWriteBufferMarkerAMD', 'void(ptr,uint32,ptr,uint64,uint32)') +vulkan.create_render_pass2 = _lib.func('vkCreateRenderPass2', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_begin_render_pass2 = _lib.func('vkCmdBeginRenderPass2', 'void(ptr,ptr,ptr)') +vulkan.cmd_next_subpass2 = _lib.func('vkCmdNextSubpass2', 'void(ptr,ptr,ptr)') +vulkan.cmd_end_render_pass2 = _lib.func('vkCmdEndRenderPass2', 'void(ptr,ptr)') +vulkan.get_semaphore_counter_value = _lib.func('vkGetSemaphoreCounterValue', 'uint32(ptr,ptr,ptr)') +vulkan.wait_semaphores = _lib.func('vkWaitSemaphores', 'uint32(ptr,ptr,uint64)') +vulkan.signal_semaphore = _lib.func('vkSignalSemaphore', 'uint32(ptr,ptr)') +vulkan.get_android_hardware_buffer_properties_android = _lib.func('vkGetAndroidHardwareBufferPropertiesANDROID', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_android_hardware_buffer_android = _lib.func('vkGetMemoryAndroidHardwareBufferANDROID', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_draw_indirect_count = _lib.func('vkCmdDrawIndirectCount', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') +vulkan.cmd_draw_indexed_indirect_count = _lib.func('vkCmdDrawIndexedIndirectCount', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') +vulkan.cmd_set_checkpoint_nv = _lib.func('vkCmdSetCheckpointNV', 'void(ptr,ptr)') +vulkan.get_queue_checkpoint_data_nv = _lib.func('vkGetQueueCheckpointDataNV', 'void(ptr,ptr,ptr)') +vulkan.cmd_bind_transform_feedback_buffers_ext = _lib.func('vkCmdBindTransformFeedbackBuffersEXT', 'void(ptr,uint32,uint32,ptr,ptr,ptr)') +vulkan.cmd_begin_transform_feedback_ext = _lib.func('vkCmdBeginTransformFeedbackEXT', 'void(ptr,uint32,uint32,ptr,ptr)') +vulkan.cmd_end_transform_feedback_ext = _lib.func('vkCmdEndTransformFeedbackEXT', 'void(ptr,uint32,uint32,ptr,ptr)') +vulkan.cmd_begin_query_indexed_ext = _lib.func('vkCmdBeginQueryIndexedEXT', 'void(ptr,ptr,uint32,ptr,uint32)') +vulkan.cmd_end_query_indexed_ext = _lib.func('vkCmdEndQueryIndexedEXT', 'void(ptr,ptr,uint32,uint32)') +vulkan.cmd_draw_indirect_byte_count_ext = _lib.func('vkCmdDrawIndirectByteCountEXT', 'void(ptr,uint32,uint32,ptr,uint64,uint32,uint32)') +vulkan.cmd_set_exclusive_scissor_nv = _lib.func('vkCmdSetExclusiveScissorNV', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_exclusive_scissor_enable_nv = _lib.func('vkCmdSetExclusiveScissorEnableNV', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_bind_shading_rate_image_nv = _lib.func('vkCmdBindShadingRateImageNV', 'void(ptr,ptr,uint32)') +vulkan.cmd_set_viewport_shading_rate_palette_nv = _lib.func('vkCmdSetViewportShadingRatePaletteNV', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_coarse_sample_order_nv = _lib.func('vkCmdSetCoarseSampleOrderNV', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_draw_mesh_tasks_nv = _lib.func('vkCmdDrawMeshTasksNV', 'void(ptr,uint32,uint32)') +vulkan.cmd_draw_mesh_tasks_indirect_nv = _lib.func('vkCmdDrawMeshTasksIndirectNV', 'void(ptr,ptr,uint64,uint32,uint32)') +vulkan.cmd_draw_mesh_tasks_indirect_count_nv = _lib.func('vkCmdDrawMeshTasksIndirectCountNV', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') +vulkan.cmd_draw_mesh_tasks_ext = _lib.func('vkCmdDrawMeshTasksEXT', 'void(ptr,uint32,uint32,uint32)') +vulkan.cmd_draw_mesh_tasks_indirect_ext = _lib.func('vkCmdDrawMeshTasksIndirectEXT', 'void(ptr,ptr,uint64,uint32,uint32)') +vulkan.cmd_draw_mesh_tasks_indirect_count_ext = _lib.func('vkCmdDrawMeshTasksIndirectCountEXT', 'void(ptr,ptr,uint64,ptr,uint64,uint32,uint32)') +vulkan.compile_deferred_nv = _lib.func('vkCompileDeferredNV', 'uint32(ptr,ptr,uint32)') +vulkan.create_acceleration_structure_nv = _lib.func('vkCreateAccelerationStructureNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_bind_invocation_mask_huawei = _lib.func('vkCmdBindInvocationMaskHUAWEI', 'void(ptr,ptr,uint32)') +vulkan.destroy_acceleration_structure_khr = _lib.func('vkDestroyAccelerationStructureKHR', 'void(ptr,ptr,ptr)') +vulkan.destroy_acceleration_structure_nv = _lib.func('vkDestroyAccelerationStructureNV', 'void(ptr,ptr,ptr)') +vulkan.get_acceleration_structure_memory_requirements_nv = _lib.func('vkGetAccelerationStructureMemoryRequirementsNV', 'void(ptr,ptr,ptr)') +vulkan.bind_acceleration_structure_memory_nv = _lib.func('vkBindAccelerationStructureMemoryNV', 'uint32(ptr,uint32,ptr)') +vulkan.cmd_copy_acceleration_structure_nv = _lib.func('vkCmdCopyAccelerationStructureNV', 'void(ptr,ptr,ptr,uint32)') +vulkan.cmd_copy_acceleration_structure_khr = _lib.func('vkCmdCopyAccelerationStructureKHR', 'void(ptr,ptr)') +vulkan.copy_acceleration_structure_khr = _lib.func('vkCopyAccelerationStructureKHR', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_copy_acceleration_structure_to_memory_khr = _lib.func('vkCmdCopyAccelerationStructureToMemoryKHR', 'void(ptr,ptr)') +vulkan.copy_acceleration_structure_to_memory_khr = _lib.func('vkCopyAccelerationStructureToMemoryKHR', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_copy_memory_to_acceleration_structure_khr = _lib.func('vkCmdCopyMemoryToAccelerationStructureKHR', 'void(ptr,ptr)') +vulkan.copy_memory_to_acceleration_structure_khr = _lib.func('vkCopyMemoryToAccelerationStructureKHR', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_write_acceleration_structures_properties_khr = _lib.func('vkCmdWriteAccelerationStructuresPropertiesKHR', 'void(ptr,uint32,ptr,uint32,ptr,uint32)') +vulkan.cmd_write_acceleration_structures_properties_nv = _lib.func('vkCmdWriteAccelerationStructuresPropertiesNV', 'void(ptr,uint32,ptr,uint32,ptr,uint32)') +vulkan.cmd_build_acceleration_structure_nv = _lib.func('vkCmdBuildAccelerationStructureNV', 'void(ptr,ptr,ptr,uint64,uint32,ptr,ptr,ptr,uint64)') +vulkan.write_acceleration_structures_properties_khr = _lib.func('vkWriteAccelerationStructuresPropertiesKHR', 'uint32(ptr,uint32,ptr,uint32,uint64,ptr,uint64)') +vulkan.cmd_trace_rays_khr = _lib.func('vkCmdTraceRaysKHR', 'void(ptr,ptr,ptr,ptr,ptr,uint32,uint32,uint32)') +vulkan.cmd_trace_rays_nv = _lib.func('vkCmdTraceRaysNV', 'void(ptr,ptr,uint64,ptr,uint64,uint64,ptr,uint64,uint64,ptr,uint64,uint64,uint32,uint32,uint32)') +vulkan.get_ray_tracing_shader_group_handles_khr = _lib.func('vkGetRayTracingShaderGroupHandlesKHR', 'uint32(ptr,ptr,uint32,uint32,uint64,ptr)') +vulkan.get_ray_tracing_capture_replay_shader_group_handles_khr = _lib.func('vkGetRayTracingCaptureReplayShaderGroupHandlesKHR', 'uint32(ptr,ptr,uint32,uint32,uint64,ptr)') +vulkan.get_acceleration_structure_handle_nv = _lib.func('vkGetAccelerationStructureHandleNV', 'uint32(ptr,ptr,uint64,ptr)') +vulkan.create_ray_tracing_pipelines_nv = _lib.func('vkCreateRayTracingPipelinesNV', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.create_ray_tracing_pipelines_nv = _lib.func('vkCreateRayTracingPipelinesNV', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.create_ray_tracing_pipelines_khr = _lib.func('vkCreateRayTracingPipelinesKHR', 'uint32(ptr,ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.create_ray_tracing_pipelines_khr = _lib.func('vkCreateRayTracingPipelinesKHR', 'uint32(ptr,ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.get_physical_device_cooperative_matrix_properties_nv = _lib.func('vkGetPhysicalDeviceCooperativeMatrixPropertiesNV', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_trace_rays_indirect_khr = _lib.func('vkCmdTraceRaysIndirectKHR', 'void(ptr,ptr,ptr,ptr,ptr,ptr)') +vulkan.cmd_trace_rays_indirect2_khr = _lib.func('vkCmdTraceRaysIndirect2KHR', 'void(ptr,ptr)') +vulkan.get_cluster_acceleration_structure_build_sizes_nv = _lib.func('vkGetClusterAccelerationStructureBuildSizesNV', 'void(ptr,ptr,ptr)') +vulkan.cmd_build_cluster_acceleration_structure_indirect_nv = _lib.func('vkCmdBuildClusterAccelerationStructureIndirectNV', 'void(ptr,ptr)') +vulkan.get_device_acceleration_structure_compatibility_khr = _lib.func('vkGetDeviceAccelerationStructureCompatibilityKHR', 'void(ptr,ptr,ptr)') +vulkan.get_ray_tracing_shader_group_stack_size_khr = _lib.func('vkGetRayTracingShaderGroupStackSizeKHR', 'uint64(ptr,ptr,uint32,uint32)') +vulkan.cmd_set_ray_tracing_pipeline_stack_size_khr = _lib.func('vkCmdSetRayTracingPipelineStackSizeKHR', 'void(ptr,uint32)') +vulkan.get_image_view_handle_nvx = _lib.func('vkGetImageViewHandleNVX', 'uint32(ptr,ptr)') +vulkan.get_image_view_handle64_nvx = _lib.func('vkGetImageViewHandle64NVX', 'uint64(ptr,ptr)') +vulkan.get_image_view_address_nvx = _lib.func('vkGetImageViewAddressNVX', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_surface_present_modes2_ext = _lib.func('vkGetPhysicalDeviceSurfacePresentModes2EXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_device_group_surface_present_modes2_ext = _lib.func('vkGetDeviceGroupSurfacePresentModes2EXT', 'uint32(ptr,ptr,ptr)') +vulkan.acquire_full_screen_exclusive_mode_ext = _lib.func('vkAcquireFullScreenExclusiveModeEXT', 'uint32(ptr,ptr)') +vulkan.release_full_screen_exclusive_mode_ext = _lib.func('vkReleaseFullScreenExclusiveModeEXT', 'uint32(ptr,ptr)') +vulkan.enumerate_physical_device_queue_family_performance_query_counters_khr = _lib.func('vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR', 'uint32(ptr,uint32,ptr,ptr,ptr)') +vulkan.get_physical_device_queue_family_performance_query_passes_khr = _lib.func('vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR', 'void(ptr,ptr,ptr)') +vulkan.acquire_profiling_lock_khr = _lib.func('vkAcquireProfilingLockKHR', 'uint32(ptr,ptr)') +vulkan.release_profiling_lock_khr = _lib.func('vkReleaseProfilingLockKHR', 'void(ptr)') +vulkan.get_image_drm_format_modifier_properties_ext = _lib.func('vkGetImageDrmFormatModifierPropertiesEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_buffer_opaque_capture_address = _lib.func('vkGetBufferOpaqueCaptureAddress', 'uint64(ptr,ptr)') +vulkan.get_buffer_device_address = _lib.func('vkGetBufferDeviceAddress', 'ptr(ptr,ptr)') +vulkan.create_headless_surface_ext = _lib.func('vkCreateHeadlessSurfaceEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_supported_framebuffer_mixed_samples_combinations_nv = _lib.func('vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV', 'uint32(ptr,ptr,ptr)') +vulkan.initialize_performance_api_intel = _lib.func('vkInitializePerformanceApiINTEL', 'uint32(ptr,ptr)') +vulkan.uninitialize_performance_api_intel = _lib.func('vkUninitializePerformanceApiINTEL', 'void(ptr)') +vulkan.cmd_set_performance_marker_intel = _lib.func('vkCmdSetPerformanceMarkerINTEL', 'uint32(ptr,ptr)') +vulkan.cmd_set_performance_stream_marker_intel = _lib.func('vkCmdSetPerformanceStreamMarkerINTEL', 'uint32(ptr,ptr)') +vulkan.cmd_set_performance_override_intel = _lib.func('vkCmdSetPerformanceOverrideINTEL', 'uint32(ptr,ptr)') +vulkan.acquire_performance_configuration_intel = _lib.func('vkAcquirePerformanceConfigurationINTEL', 'uint32(ptr,ptr,ptr)') +vulkan.release_performance_configuration_intel = _lib.func('vkReleasePerformanceConfigurationINTEL', 'uint32(ptr,ptr)') +vulkan.queue_set_performance_configuration_intel = _lib.func('vkQueueSetPerformanceConfigurationINTEL', 'uint32(ptr,ptr)') +vulkan.get_performance_parameter_intel = _lib.func('vkGetPerformanceParameterINTEL', 'uint32(ptr,uint32,ptr)') +vulkan.get_device_memory_opaque_capture_address = _lib.func('vkGetDeviceMemoryOpaqueCaptureAddress', 'uint64(ptr,ptr)') +vulkan.get_pipeline_executable_properties_khr = _lib.func('vkGetPipelineExecutablePropertiesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_pipeline_executable_statistics_khr = _lib.func('vkGetPipelineExecutableStatisticsKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_pipeline_executable_internal_representations_khr = _lib.func('vkGetPipelineExecutableInternalRepresentationsKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_set_line_stipple = _lib.func('vkCmdSetLineStipple', 'void(ptr,uint32,uint16)') +vulkan.get_fault_data = _lib.func('vkGetFaultData', 'uint32(ptr,uint32,ptr,ptr,ptr)') +vulkan.get_physical_device_tool_properties = _lib.func('vkGetPhysicalDeviceToolProperties', 'uint32(ptr,ptr,ptr)') +vulkan.create_acceleration_structure_khr = _lib.func('vkCreateAccelerationStructureKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_build_acceleration_structures_khr = _lib.func('vkCmdBuildAccelerationStructuresKHR', 'void(ptr,uint32,ptr,ptr)') +vulkan.cmd_build_acceleration_structures_indirect_khr = _lib.func('vkCmdBuildAccelerationStructuresIndirectKHR', 'void(ptr,uint32,ptr,ptr,ptr,ptr)') +vulkan.build_acceleration_structures_khr = _lib.func('vkBuildAccelerationStructuresKHR', 'uint32(ptr,ptr,uint32,ptr,ptr)') +vulkan.get_acceleration_structure_device_address_khr = _lib.func('vkGetAccelerationStructureDeviceAddressKHR', 'ptr(ptr,ptr)') +vulkan.create_deferred_operation_khr = _lib.func('vkCreateDeferredOperationKHR', 'uint32(ptr,ptr,ptr)') +vulkan.destroy_deferred_operation_khr = _lib.func('vkDestroyDeferredOperationKHR', 'void(ptr,ptr,ptr)') +vulkan.get_deferred_operation_max_concurrency_khr = _lib.func('vkGetDeferredOperationMaxConcurrencyKHR', 'uint32(ptr,ptr)') +vulkan.get_deferred_operation_result_khr = _lib.func('vkGetDeferredOperationResultKHR', 'uint32(ptr,ptr)') +vulkan.deferred_operation_join_khr = _lib.func('vkDeferredOperationJoinKHR', 'uint32(ptr,ptr)') +vulkan.get_pipeline_indirect_memory_requirements_nv = _lib.func('vkGetPipelineIndirectMemoryRequirementsNV', 'void(ptr,ptr,ptr)') +vulkan.get_pipeline_indirect_device_address_nv = _lib.func('vkGetPipelineIndirectDeviceAddressNV', 'ptr(ptr,ptr)') +vulkan.anti_lag_update_amd = _lib.func('vkAntiLagUpdateAMD', 'void(ptr,ptr)') +vulkan.cmd_set_cull_mode = _lib.func('vkCmdSetCullMode', 'void(ptr,ptr)') +vulkan.cmd_set_front_face = _lib.func('vkCmdSetFrontFace', 'void(ptr,uint32)') +vulkan.cmd_set_primitive_topology = _lib.func('vkCmdSetPrimitiveTopology', 'void(ptr,uint32)') +vulkan.cmd_set_viewport_with_count = _lib.func('vkCmdSetViewportWithCount', 'void(ptr,uint32,ptr)') +vulkan.cmd_set_scissor_with_count = _lib.func('vkCmdSetScissorWithCount', 'void(ptr,uint32,ptr)') +vulkan.cmd_bind_index_buffer2 = _lib.func('vkCmdBindIndexBuffer2', 'void(ptr,ptr,uint64,uint64,uint32)') +vulkan.cmd_bind_vertex_buffers2 = _lib.func('vkCmdBindVertexBuffers2', 'void(ptr,uint32,uint32,ptr,ptr,ptr,ptr)') +vulkan.cmd_set_depth_test_enable = _lib.func('vkCmdSetDepthTestEnable', 'void(ptr,uint32)') +vulkan.cmd_set_depth_write_enable = _lib.func('vkCmdSetDepthWriteEnable', 'void(ptr,uint32)') +vulkan.cmd_set_depth_compare_op = _lib.func('vkCmdSetDepthCompareOp', 'void(ptr,uint32)') +vulkan.cmd_set_depth_bounds_test_enable = _lib.func('vkCmdSetDepthBoundsTestEnable', 'void(ptr,uint32)') +vulkan.cmd_set_stencil_test_enable = _lib.func('vkCmdSetStencilTestEnable', 'void(ptr,uint32)') +vulkan.cmd_set_stencil_op = _lib.func('vkCmdSetStencilOp', 'void(ptr,ptr,uint32,uint32,uint32,uint32)') +vulkan.cmd_set_patch_control_points_ext = _lib.func('vkCmdSetPatchControlPointsEXT', 'void(ptr,uint32)') +vulkan.cmd_set_rasterizer_discard_enable = _lib.func('vkCmdSetRasterizerDiscardEnable', 'void(ptr,uint32)') +vulkan.cmd_set_depth_bias_enable = _lib.func('vkCmdSetDepthBiasEnable', 'void(ptr,uint32)') +vulkan.cmd_set_logic_op_ext = _lib.func('vkCmdSetLogicOpEXT', 'void(ptr,uint32)') +vulkan.cmd_set_primitive_restart_enable = _lib.func('vkCmdSetPrimitiveRestartEnable', 'void(ptr,uint32)') +vulkan.cmd_set_tessellation_domain_origin_ext = _lib.func('vkCmdSetTessellationDomainOriginEXT', 'void(ptr,uint32)') +vulkan.cmd_set_depth_clamp_enable_ext = _lib.func('vkCmdSetDepthClampEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_polygon_mode_ext = _lib.func('vkCmdSetPolygonModeEXT', 'void(ptr,uint32)') +vulkan.cmd_set_rasterization_samples_ext = _lib.func('vkCmdSetRasterizationSamplesEXT', 'void(ptr,uint32)') +vulkan.cmd_set_sample_mask_ext = _lib.func('vkCmdSetSampleMaskEXT', 'void(ptr,uint32,ptr)') +vulkan.cmd_set_alpha_to_coverage_enable_ext = _lib.func('vkCmdSetAlphaToCoverageEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_alpha_to_one_enable_ext = _lib.func('vkCmdSetAlphaToOneEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_logic_op_enable_ext = _lib.func('vkCmdSetLogicOpEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_color_blend_enable_ext = _lib.func('vkCmdSetColorBlendEnableEXT', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_color_blend_equation_ext = _lib.func('vkCmdSetColorBlendEquationEXT', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_color_write_mask_ext = _lib.func('vkCmdSetColorWriteMaskEXT', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_rasterization_stream_ext = _lib.func('vkCmdSetRasterizationStreamEXT', 'void(ptr,uint32)') +vulkan.cmd_set_conservative_rasterization_mode_ext = _lib.func('vkCmdSetConservativeRasterizationModeEXT', 'void(ptr,uint32)') +vulkan.cmd_set_extra_primitive_overestimation_size_ext = _lib.func('vkCmdSetExtraPrimitiveOverestimationSizeEXT', 'void(ptr,float)') +vulkan.cmd_set_depth_clip_enable_ext = _lib.func('vkCmdSetDepthClipEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_sample_locations_enable_ext = _lib.func('vkCmdSetSampleLocationsEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_color_blend_advanced_ext = _lib.func('vkCmdSetColorBlendAdvancedEXT', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_provoking_vertex_mode_ext = _lib.func('vkCmdSetProvokingVertexModeEXT', 'void(ptr,uint32)') +vulkan.cmd_set_line_rasterization_mode_ext = _lib.func('vkCmdSetLineRasterizationModeEXT', 'void(ptr,uint32)') +vulkan.cmd_set_line_stipple_enable_ext = _lib.func('vkCmdSetLineStippleEnableEXT', 'void(ptr,uint32)') +vulkan.cmd_set_depth_clip_negative_one_to_one_ext = _lib.func('vkCmdSetDepthClipNegativeOneToOneEXT', 'void(ptr,uint32)') +vulkan.cmd_set_viewport_w_scaling_enable_nv = _lib.func('vkCmdSetViewportWScalingEnableNV', 'void(ptr,uint32)') +vulkan.cmd_set_viewport_swizzle_nv = _lib.func('vkCmdSetViewportSwizzleNV', 'void(ptr,uint32,uint32,ptr)') +vulkan.cmd_set_coverage_to_color_enable_nv = _lib.func('vkCmdSetCoverageToColorEnableNV', 'void(ptr,uint32)') +vulkan.cmd_set_coverage_to_color_location_nv = _lib.func('vkCmdSetCoverageToColorLocationNV', 'void(ptr,uint32)') +vulkan.cmd_set_coverage_modulation_mode_nv = _lib.func('vkCmdSetCoverageModulationModeNV', 'void(ptr,uint32)') +vulkan.cmd_set_coverage_modulation_table_enable_nv = _lib.func('vkCmdSetCoverageModulationTableEnableNV', 'void(ptr,uint32)') +vulkan.cmd_set_coverage_modulation_table_nv = _lib.func('vkCmdSetCoverageModulationTableNV', 'void(ptr,uint32,ptr)') +vulkan.cmd_set_shading_rate_image_enable_nv = _lib.func('vkCmdSetShadingRateImageEnableNV', 'void(ptr,uint32)') +vulkan.cmd_set_coverage_reduction_mode_nv = _lib.func('vkCmdSetCoverageReductionModeNV', 'void(ptr,uint32)') +vulkan.cmd_set_representative_fragment_test_enable_nv = _lib.func('vkCmdSetRepresentativeFragmentTestEnableNV', 'void(ptr,uint32)') +vulkan.create_private_data_slot = _lib.func('vkCreatePrivateDataSlot', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_private_data_slot = _lib.func('vkDestroyPrivateDataSlot', 'void(ptr,ptr,ptr)') +vulkan.set_private_data = _lib.func('vkSetPrivateData', 'uint32(ptr,uint32,uint64,ptr,uint64)') +vulkan.get_private_data = _lib.func('vkGetPrivateData', 'void(ptr,uint32,uint64,ptr,ptr)') +vulkan.cmd_copy_buffer2 = _lib.func('vkCmdCopyBuffer2', 'void(ptr,ptr)') +vulkan.cmd_copy_image2 = _lib.func('vkCmdCopyImage2', 'void(ptr,ptr)') +vulkan.cmd_blit_image2 = _lib.func('vkCmdBlitImage2', 'void(ptr,ptr)') +vulkan.cmd_copy_buffer_to_image2 = _lib.func('vkCmdCopyBufferToImage2', 'void(ptr,ptr)') +vulkan.cmd_copy_image_to_buffer2 = _lib.func('vkCmdCopyImageToBuffer2', 'void(ptr,ptr)') +vulkan.cmd_resolve_image2 = _lib.func('vkCmdResolveImage2', 'void(ptr,ptr)') +vulkan.cmd_refresh_objects_khr = _lib.func('vkCmdRefreshObjectsKHR', 'void(ptr,ptr)') +vulkan.get_physical_device_refreshable_object_types_khr = _lib.func('vkGetPhysicalDeviceRefreshableObjectTypesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_set_fragment_shading_rate_khr = _lib.func('vkCmdSetFragmentShadingRateKHR', 'void(ptr,ptr,uint32)') +vulkan.get_physical_device_fragment_shading_rates_khr = _lib.func('vkGetPhysicalDeviceFragmentShadingRatesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_set_fragment_shading_rate_enum_nv = _lib.func('vkCmdSetFragmentShadingRateEnumNV', 'void(ptr,uint32,uint32)') +vulkan.get_acceleration_structure_build_sizes_khr = _lib.func('vkGetAccelerationStructureBuildSizesKHR', 'void(ptr,uint32,ptr,ptr,ptr)') +vulkan.cmd_set_vertex_input_ext = _lib.func('vkCmdSetVertexInputEXT', 'void(ptr,uint32,ptr,uint32,ptr)') +vulkan.cmd_set_color_write_enable_ext = _lib.func('vkCmdSetColorWriteEnableEXT', 'void(ptr,uint32,ptr)') +vulkan.cmd_set_event2 = _lib.func('vkCmdSetEvent2', 'void(ptr,ptr,ptr)') +vulkan.cmd_reset_event2 = _lib.func('vkCmdResetEvent2', 'void(ptr,ptr,ptr)') +vulkan.cmd_wait_events2 = _lib.func('vkCmdWaitEvents2', 'void(ptr,uint32,ptr,ptr)') +vulkan.cmd_pipeline_barrier2 = _lib.func('vkCmdPipelineBarrier2', 'void(ptr,ptr)') +vulkan.queue_submit2 = _lib.func('vkQueueSubmit2', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.cmd_write_timestamp2 = _lib.func('vkCmdWriteTimestamp2', 'void(ptr,ptr,ptr,uint32)') +vulkan.cmd_write_buffer_marker2_amd = _lib.func('vkCmdWriteBufferMarker2AMD', 'void(ptr,ptr,ptr,uint64,uint32)') +vulkan.get_queue_checkpoint_data2_nv = _lib.func('vkGetQueueCheckpointData2NV', 'void(ptr,ptr,ptr)') +vulkan.copy_memory_to_image = _lib.func('vkCopyMemoryToImage', 'uint32(ptr,ptr)') +vulkan.copy_image_to_memory = _lib.func('vkCopyImageToMemory', 'uint32(ptr,ptr)') +vulkan.copy_image_to_image = _lib.func('vkCopyImageToImage', 'uint32(ptr,ptr)') +vulkan.transition_image_layout = _lib.func('vkTransitionImageLayout', 'uint32(ptr,uint32,ptr)') +vulkan.get_command_pool_memory_consumption = _lib.func('vkGetCommandPoolMemoryConsumption', 'void(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_video_capabilities_khr = _lib.func('vkGetPhysicalDeviceVideoCapabilitiesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_video_format_properties_khr = _lib.func('vkGetPhysicalDeviceVideoFormatPropertiesKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_physical_device_video_encode_quality_level_properties_khr = _lib.func('vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.create_video_session_khr = _lib.func('vkCreateVideoSessionKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_video_session_khr = _lib.func('vkDestroyVideoSessionKHR', 'void(ptr,ptr,ptr)') +vulkan.create_video_session_parameters_khr = _lib.func('vkCreateVideoSessionParametersKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.update_video_session_parameters_khr = _lib.func('vkUpdateVideoSessionParametersKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_encoded_video_session_parameters_khr = _lib.func('vkGetEncodedVideoSessionParametersKHR', 'uint32(ptr,ptr,ptr,ptr,ptr)') +vulkan.destroy_video_session_parameters_khr = _lib.func('vkDestroyVideoSessionParametersKHR', 'void(ptr,ptr,ptr)') +vulkan.get_video_session_memory_requirements_khr = _lib.func('vkGetVideoSessionMemoryRequirementsKHR', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.bind_video_session_memory_khr = _lib.func('vkBindVideoSessionMemoryKHR', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.cmd_decode_video_khr = _lib.func('vkCmdDecodeVideoKHR', 'void(ptr,ptr)') +vulkan.cmd_begin_video_coding_khr = _lib.func('vkCmdBeginVideoCodingKHR', 'void(ptr,ptr)') +vulkan.cmd_control_video_coding_khr = _lib.func('vkCmdControlVideoCodingKHR', 'void(ptr,ptr)') +vulkan.cmd_end_video_coding_khr = _lib.func('vkCmdEndVideoCodingKHR', 'void(ptr,ptr)') +vulkan.cmd_encode_video_khr = _lib.func('vkCmdEncodeVideoKHR', 'void(ptr,ptr)') +vulkan.cmd_decompress_memory_nv = _lib.func('vkCmdDecompressMemoryNV', 'void(ptr,uint32,ptr)') +vulkan.cmd_decompress_memory_indirect_count_nv = _lib.func('vkCmdDecompressMemoryIndirectCountNV', 'void(ptr,ptr,ptr,uint32)') +vulkan.get_partitioned_acceleration_structures_build_sizes_nv = _lib.func('vkGetPartitionedAccelerationStructuresBuildSizesNV', 'void(ptr,ptr,ptr)') +vulkan.cmd_build_partitioned_acceleration_structures_nv = _lib.func('vkCmdBuildPartitionedAccelerationStructuresNV', 'void(ptr,ptr)') +vulkan.create_cu_module_nvx = _lib.func('vkCreateCuModuleNVX', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_cu_function_nvx = _lib.func('vkCreateCuFunctionNVX', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_cu_module_nvx = _lib.func('vkDestroyCuModuleNVX', 'void(ptr,ptr,ptr)') +vulkan.destroy_cu_function_nvx = _lib.func('vkDestroyCuFunctionNVX', 'void(ptr,ptr,ptr)') +vulkan.cmd_cu_launch_kernel_nvx = _lib.func('vkCmdCuLaunchKernelNVX', 'void(ptr,ptr)') +vulkan.get_descriptor_set_layout_size_ext = _lib.func('vkGetDescriptorSetLayoutSizeEXT', 'void(ptr,ptr,ptr)') +vulkan.get_descriptor_set_layout_binding_offset_ext = _lib.func('vkGetDescriptorSetLayoutBindingOffsetEXT', 'void(ptr,ptr,uint32,ptr)') +vulkan.get_descriptor_ext = _lib.func('vkGetDescriptorEXT', 'void(ptr,ptr,uint64,ptr)') +vulkan.cmd_bind_descriptor_buffers_ext = _lib.func('vkCmdBindDescriptorBuffersEXT', 'void(ptr,uint32,ptr)') +vulkan.cmd_set_descriptor_buffer_offsets_ext = _lib.func('vkCmdSetDescriptorBufferOffsetsEXT', 'void(ptr,uint32,ptr,uint32,uint32,ptr,ptr)') +vulkan.cmd_bind_descriptor_buffer_embedded_samplers_ext = _lib.func('vkCmdBindDescriptorBufferEmbeddedSamplersEXT', 'void(ptr,uint32,ptr,uint32)') +vulkan.get_buffer_opaque_capture_descriptor_data_ext = _lib.func('vkGetBufferOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_image_opaque_capture_descriptor_data_ext = _lib.func('vkGetImageOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_image_view_opaque_capture_descriptor_data_ext = _lib.func('vkGetImageViewOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_sampler_opaque_capture_descriptor_data_ext = _lib.func('vkGetSamplerOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_acceleration_structure_opaque_capture_descriptor_data_ext = _lib.func('vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT', 'uint32(ptr,ptr,ptr)') +vulkan.set_device_memory_priority_ext = _lib.func('vkSetDeviceMemoryPriorityEXT', 'void(ptr,ptr,float)') +vulkan.acquire_drm_display_ext = _lib.func('vkAcquireDrmDisplayEXT', 'uint32(ptr,int,ptr)') +vulkan.get_drm_display_ext = _lib.func('vkGetDrmDisplayEXT', 'uint32(ptr,int,uint32,ptr)') +vulkan.wait_for_present_khr = _lib.func('vkWaitForPresentKHR', 'uint32(ptr,ptr,uint64,uint64)') +vulkan.create_buffer_collection_fuchsia = _lib.func('vkCreateBufferCollectionFUCHSIA', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.set_buffer_collection_buffer_constraints_fuchsia = _lib.func('vkSetBufferCollectionBufferConstraintsFUCHSIA', 'uint32(ptr,ptr,ptr)') +vulkan.set_buffer_collection_image_constraints_fuchsia = _lib.func('vkSetBufferCollectionImageConstraintsFUCHSIA', 'uint32(ptr,ptr,ptr)') +vulkan.destroy_buffer_collection_fuchsia = _lib.func('vkDestroyBufferCollectionFUCHSIA', 'void(ptr,ptr,ptr)') +vulkan.get_buffer_collection_properties_fuchsia = _lib.func('vkGetBufferCollectionPropertiesFUCHSIA', 'uint32(ptr,ptr,ptr)') +vulkan.create_cuda_module_nv = _lib.func('vkCreateCudaModuleNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_cuda_module_cache_nv = _lib.func('vkGetCudaModuleCacheNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_cuda_function_nv = _lib.func('vkCreateCudaFunctionNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_cuda_module_nv = _lib.func('vkDestroyCudaModuleNV', 'void(ptr,ptr,ptr)') +vulkan.destroy_cuda_function_nv = _lib.func('vkDestroyCudaFunctionNV', 'void(ptr,ptr,ptr)') +vulkan.cmd_cuda_launch_kernel_nv = _lib.func('vkCmdCudaLaunchKernelNV', 'void(ptr,ptr)') +vulkan.cmd_begin_rendering = _lib.func('vkCmdBeginRendering', 'void(ptr,ptr)') +vulkan.cmd_end_rendering = _lib.func('vkCmdEndRendering', 'void(ptr)') +vulkan.get_descriptor_set_layout_host_mapping_info_valve = _lib.func('vkGetDescriptorSetLayoutHostMappingInfoVALVE', 'void(ptr,ptr,ptr)') +vulkan.get_descriptor_set_host_mapping_valve = _lib.func('vkGetDescriptorSetHostMappingVALVE', 'void(ptr,ptr,ptr)') +vulkan.create_micromap_ext = _lib.func('vkCreateMicromapEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_build_micromaps_ext = _lib.func('vkCmdBuildMicromapsEXT', 'void(ptr,uint32,ptr)') +vulkan.build_micromaps_ext = _lib.func('vkBuildMicromapsEXT', 'uint32(ptr,ptr,uint32,ptr)') +vulkan.destroy_micromap_ext = _lib.func('vkDestroyMicromapEXT', 'void(ptr,ptr,ptr)') +vulkan.cmd_copy_micromap_ext = _lib.func('vkCmdCopyMicromapEXT', 'void(ptr,ptr)') +vulkan.copy_micromap_ext = _lib.func('vkCopyMicromapEXT', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_copy_micromap_to_memory_ext = _lib.func('vkCmdCopyMicromapToMemoryEXT', 'void(ptr,ptr)') +vulkan.copy_micromap_to_memory_ext = _lib.func('vkCopyMicromapToMemoryEXT', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_copy_memory_to_micromap_ext = _lib.func('vkCmdCopyMemoryToMicromapEXT', 'void(ptr,ptr)') +vulkan.copy_memory_to_micromap_ext = _lib.func('vkCopyMemoryToMicromapEXT', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_write_micromaps_properties_ext = _lib.func('vkCmdWriteMicromapsPropertiesEXT', 'void(ptr,uint32,ptr,uint32,ptr,uint32)') +vulkan.write_micromaps_properties_ext = _lib.func('vkWriteMicromapsPropertiesEXT', 'uint32(ptr,uint32,ptr,uint32,uint64,ptr,uint64)') +vulkan.get_device_micromap_compatibility_ext = _lib.func('vkGetDeviceMicromapCompatibilityEXT', 'void(ptr,ptr,ptr)') +vulkan.get_micromap_build_sizes_ext = _lib.func('vkGetMicromapBuildSizesEXT', 'void(ptr,uint32,ptr,ptr)') +vulkan.get_shader_module_identifier_ext = _lib.func('vkGetShaderModuleIdentifierEXT', 'void(ptr,ptr,ptr)') +vulkan.get_shader_module_create_info_identifier_ext = _lib.func('vkGetShaderModuleCreateInfoIdentifierEXT', 'void(ptr,ptr,ptr)') +vulkan.get_image_subresource_layout2 = _lib.func('vkGetImageSubresourceLayout2', 'void(ptr,ptr,ptr,ptr)') +vulkan.get_pipeline_properties_ext = _lib.func('vkGetPipelinePropertiesEXT', 'uint32(ptr,ptr,ptr)') +vulkan.export_metal_objects_ext = _lib.func('vkExportMetalObjectsEXT', 'void(ptr,ptr)') +vulkan.get_framebuffer_tile_properties_qcom = _lib.func('vkGetFramebufferTilePropertiesQCOM', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.get_dynamic_rendering_tile_properties_qcom = _lib.func('vkGetDynamicRenderingTilePropertiesQCOM', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_optical_flow_image_formats_nv = _lib.func('vkGetPhysicalDeviceOpticalFlowImageFormatsNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_optical_flow_session_nv = _lib.func('vkCreateOpticalFlowSessionNV', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.destroy_optical_flow_session_nv = _lib.func('vkDestroyOpticalFlowSessionNV', 'void(ptr,ptr,ptr)') +vulkan.bind_optical_flow_session_image_nv = _lib.func('vkBindOpticalFlowSessionImageNV', 'uint32(ptr,ptr,uint32,ptr,uint32)') +vulkan.cmd_optical_flow_execute_nv = _lib.func('vkCmdOpticalFlowExecuteNV', 'void(ptr,ptr,ptr)') +vulkan.get_device_fault_info_ext = _lib.func('vkGetDeviceFaultInfoEXT', 'uint32(ptr,ptr,ptr)') +vulkan.cmd_set_depth_bias2_ext = _lib.func('vkCmdSetDepthBias2EXT', 'void(ptr,ptr)') +vulkan.release_swapchain_images_ext = _lib.func('vkReleaseSwapchainImagesEXT', 'uint32(ptr,ptr)') +vulkan.get_device_image_subresource_layout = _lib.func('vkGetDeviceImageSubresourceLayout', 'void(ptr,ptr,ptr)') +vulkan.map_memory2 = _lib.func('vkMapMemory2', 'uint32(ptr,ptr,ptr)') +vulkan.unmap_memory2 = _lib.func('vkUnmapMemory2', 'uint32(ptr,ptr)') +vulkan.create_shaders_ext = _lib.func('vkCreateShadersEXT', 'uint32(ptr,uint32,ptr,ptr,ptr)') +vulkan.destroy_shader_ext = _lib.func('vkDestroyShaderEXT', 'void(ptr,ptr,ptr)') +vulkan.get_shader_binary_data_ext = _lib.func('vkGetShaderBinaryDataEXT', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.cmd_bind_shaders_ext = _lib.func('vkCmdBindShadersEXT', 'void(ptr,uint32,ptr,ptr)') +vulkan.get_screen_buffer_properties_qnx = _lib.func('vkGetScreenBufferPropertiesQNX', 'uint32(ptr,ptr,ptr)') +vulkan.get_physical_device_cooperative_matrix_properties_khr = _lib.func('vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR', 'uint32(ptr,ptr,ptr)') +vulkan.get_execution_graph_pipeline_scratch_size_amdx = _lib.func('vkGetExecutionGraphPipelineScratchSizeAMDX', 'uint32(ptr,ptr,ptr)') +vulkan.get_execution_graph_pipeline_node_index_amdx = _lib.func('vkGetExecutionGraphPipelineNodeIndexAMDX', 'uint32(ptr,ptr,ptr,ptr)') +vulkan.create_execution_graph_pipelines_amdx = _lib.func('vkCreateExecutionGraphPipelinesAMDX', 'uint32(ptr,ptr,uint32,ptr,ptr,ptr)') +vulkan.cmd_initialize_graph_scratch_memory_amdx = _lib.func('vkCmdInitializeGraphScratchMemoryAMDX', 'void(ptr,ptr,ptr,uint64)') +vulkan.cmd_dispatch_graph_amdx = _lib.func('vkCmdDispatchGraphAMDX', 'void(ptr,ptr,uint64,ptr)') +vulkan.cmd_dispatch_graph_indirect_amdx = _lib.func('vkCmdDispatchGraphIndirectAMDX', 'void(ptr,ptr,uint64,ptr)') +vulkan.cmd_dispatch_graph_indirect_count_amdx = _lib.func('vkCmdDispatchGraphIndirectCountAMDX', 'void(ptr,ptr,uint64,ptr)') +vulkan.cmd_bind_descriptor_sets2 = _lib.func('vkCmdBindDescriptorSets2', 'void(ptr,ptr)') +vulkan.cmd_push_constants2 = _lib.func('vkCmdPushConstants2', 'void(ptr,ptr)') +vulkan.cmd_push_descriptor_set2 = _lib.func('vkCmdPushDescriptorSet2', 'void(ptr,ptr)') +vulkan.cmd_push_descriptor_set_with_template2 = _lib.func('vkCmdPushDescriptorSetWithTemplate2', 'void(ptr,ptr)') +vulkan.cmd_set_descriptor_buffer_offsets2_ext = _lib.func('vkCmdSetDescriptorBufferOffsets2EXT', 'void(ptr,ptr)') +vulkan.cmd_bind_descriptor_buffer_embedded_samplers2_ext = _lib.func('vkCmdBindDescriptorBufferEmbeddedSamplers2EXT', 'void(ptr,ptr)') +vulkan.set_latency_sleep_mode_nv = _lib.func('vkSetLatencySleepModeNV', 'uint32(ptr,ptr,ptr)') +vulkan.latency_sleep_nv = _lib.func('vkLatencySleepNV', 'uint32(ptr,ptr,ptr)') +vulkan.set_latency_marker_nv = _lib.func('vkSetLatencyMarkerNV', 'void(ptr,ptr,ptr)') +vulkan.get_latency_timings_nv = _lib.func('vkGetLatencyTimingsNV', 'void(ptr,ptr,ptr)') +vulkan.queue_notify_out_of_band_nv = _lib.func('vkQueueNotifyOutOfBandNV', 'void(ptr,ptr)') +vulkan.cmd_set_rendering_attachment_locations = _lib.func('vkCmdSetRenderingAttachmentLocations', 'void(ptr,ptr)') +vulkan.cmd_set_rendering_input_attachment_indices = _lib.func('vkCmdSetRenderingInputAttachmentIndices', 'void(ptr,ptr)') +vulkan.cmd_set_depth_clamp_range_ext = _lib.func('vkCmdSetDepthClampRangeEXT', 'void(ptr,uint32,ptr)') +vulkan.get_physical_device_cooperative_matrix_flexible_dimensions_properties_nv = _lib.func('vkGetPhysicalDeviceCooperativeMatrixFlexibleDimensionsPropertiesNV', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_metal_handle_ext = _lib.func('vkGetMemoryMetalHandleEXT', 'uint32(ptr,ptr,ptr)') +vulkan.get_memory_metal_handle_properties_ext = _lib.func('vkGetMemoryMetalHandlePropertiesEXT', 'uint32(ptr,uint32,ptr,ptr)') +vulkan.get_physical_device_cooperative_vector_properties_nv = _lib.func('vkGetPhysicalDeviceCooperativeVectorPropertiesNV', 'uint32(ptr,ptr,ptr)') +vulkan.convert_cooperative_vector_matrix_nv = _lib.func('vkConvertCooperativeVectorMatrixNV', 'uint32(ptr,ptr)') +vulkan.cmd_convert_cooperative_vector_matrix_nv = _lib.func('vkCmdConvertCooperativeVectorMatrixNV', 'void(ptr,uint32,ptr)') -- struct sizes (allocate with memory(vulkan.size_)) vulkan.size_vk_aabb_positions_khr = 24 diff --git a/tests/ffi.cat b/tests/ffi.cat index 7fedad1..e744fa6 100644 --- a/tests/ffi.cat +++ b/tests/ffi.cat @@ -12,37 +12,37 @@ print("bad load empty:", bad == empty) print("bad load type:", type(bad)) -- symbol binding -local pow = m:func("pow", "double(double,double)") +local pow = m.func("pow", "double(double,double)") print("pow bound:", pow ~= empty) -print("missing sym empty:", m:func("no_such_symbol_xyz", "int()") == empty) +print("missing sym empty:", m.func("no_such_symbol_xyz", "int()") == empty) -- invalid signature -> empty -print("bad sig empty:", m:func("pow", "not a signature") == empty) -print("bad rettype empty:", m:func("pow", "nope(double)") == empty) +print("bad sig empty:", m.func("pow", "not a signature") == empty) +print("bad rettype empty:", m.func("pow", "nope(double)") == empty) -- return conversions print("pow 2,10:", pow(2, 10)) print("pow 3,4:", pow(3, 4)) -local floor = m:func("floor", "double(double)") +local floor = m.func("floor", "double(double)") print("floor 3.7:", floor(3.7)) -local sqrt = m:func("sqrt", "double(double)") +local sqrt = m.func("sqrt", "double(double)") print("sqrt 144:", sqrt(144)) -- int return -local abs = c:func("abs", "int(int)") +local abs = c.func("abs", "int(int)") print("abs -42:", abs(-42)) -- long + string arg -local strlen = c:func("strlen", "long(string)") +local strlen = c.func("strlen", "long(string)") print("strlen abc:", strlen("abc")) print("strlen empty:", strlen("")) -- void return -> empty -local srand = c:func("srand", "void(uint32)") +local srand = c.func("srand", "void(uint32)") print("void ret empty:", srand(1) == empty) -- pointer-ish spelling accepted -local strchr = c:func("strchr", "string(string,int)") +local strchr = c.func("strchr", "string(string,int)") print("strchr bound:", strchr ~= empty) -- library is callable like :func diff --git a/tests/functions_as_objects.cat b/tests/functions_as_objects.cat index 2448cec..4b0f126 100644 --- a/tests/functions_as_objects.cat +++ b/tests/functions_as_objects.cat @@ -22,7 +22,7 @@ end Calc.add._doc_ = "add(a, b) on Calc." print("method doc:", Calc.add._doc_) local c = Calc() -print("method call:", c:add(4, 5)) +print("method call:", c.add(4, 5)) -- help() reads a function's _doc_ help(add) diff --git a/tests/glfw.cat b/tests/glfw.cat index 25d20ee..488f16a 100644 --- a/tests/glfw.cat +++ b/tests/glfw.cat @@ -7,26 +7,26 @@ use glfw local version = memory(12) -glfw.get_version(version, version:ptr() + 4, version:ptr() + 8) -print("glfw:", version:u32(0), version:u32(4), version:u32(8)) +glfw::get_version(version, version.ptr() + 4, version.ptr() + 8) +print("glfw:", version.u32(0), version.u32(4), version.u32(8)) -local ok = glfw.init() +local ok = glfw::init() print("init:", ok) -- a hidden window with no client API (for Vulkan surfaces) -glfw.window_hint(glfw.visible, glfw.false) -glfw.window_hint(0x00022001, 0) -- CLIENT_API = NO_API -local win = glfw.create_window(320, 240, "cat", 0, 0) +glfw::window_hint(glfw.visible, glfw.false) +glfw::window_hint(0x00022001, 0) -- CLIENT_API = NO_API +local win = glfw::create_window(320, 240, "cat", 0, 0) print("window:", win > 0) if win > 0 then local fw = memory(8) local fh = memory(8) - glfw.get_framebuffer_size(win, fw, fh) - print("framebuffer:", fw:u32(0), fh:u32(0)) - print("should close:", glfw.window_should_close(win) == glfw.true) - glfw.destroy_window(win) + glfw::get_framebuffer_size(win, fw, fh) + print("framebuffer:", fw.u32(0), fh.u32(0)) + print("should close:", glfw::window_should_close(win) == glfw.true) + glfw::destroy_window(win) end -glfw.terminate() +glfw::terminate() print("done") diff --git a/tests/memory.cat b/tests/memory.cat index a684d32..288dec5 100644 --- a/tests/memory.cat +++ b/tests/memory.cat @@ -5,35 +5,35 @@ -- corrupting memory. local m = memory(16) -m:set_u32(0, 1234) -print("u32:", m:u32(0)) -m:set_u64(8, 9999999999) -print("u64:", m:u64(8)) -m:set_text(4, "hi") -print("text:", m:text(4)) -print("size:", m:size()) -m:set_f32(0, 3.5) -print("f32:", m:f32(0)) -m:set_f64(8, 2.5) -print("f64:", m:f64(8)) +m.set_u32(0, 1234) +print("u32:", m.u32(0)) +m.set_u64(8, 9999999999) +print("u64:", m.u64(8)) +m.set_text(4, "hi") +print("text:", m.text(4)) +print("size:", m.size()) +m.set_f32(0, 3.5) +print("f32:", m.f32(0)) +m.set_f64(8, 2.5) +print("f64:", m.f64(8)) -- zeroed on allocation local z = memory(4) -print("zero:", z:u32(0)) +print("zero:", z.u32(0)) -- a freed-pointer-style address is available for FFI calls -local p = m:ptr() +local p = m.ptr() print("ptr:", p > 0) -- fill and re-read local f = memory(8) -f:fill(0xAB) -print("fill:", f:u8(0)) +f.fill(0xAB) +print("fill:", f.u8(0)) -- out-of-bounds raises (caught here) try local small = memory(2) - small:u32(0) + small.u32(0) print("no raise") except e print("caught oob") diff --git a/tests/run_tests.sh b/tests/run_tests.sh index f1d8b06..b49ccc1 100644 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -174,6 +174,15 @@ check "repr-list" "list: [a, b, _repr_]" "`echo "$out" | sed - out=`printf 'x = 50\nx\nx + 5\n' | $BIN | tr '>' '\n' | grep -oE '[0-9]+'` check "repl-echo" "50" "`echo "$out" | sed -n 1p`" check "repl-state" "55" "`echo "$out" | sed -n 2p`" +# ---- selectors: a.b (with self) / a::b (no self) ---------------------- + +out=`$BIN tests/selectors.cat` +check "sel-self" "with self: 7" "`echo "$out" | sed -n 1p`" +check "sel-field" "field x: 10" "`echo "$out" | sed -n 2p`" +check "sel-static" "static: 42" "`echo "$out" | sed -n 3p`" +check "sel-method" "self=obj" "`echo "$out" | sed -n 4p`" +check "sel-noself" "static no self: 5" "`echo "$out" | sed -n 5p`" + # ---- GPU bindings (GLFW + Vulkan) ------------------------------------ if command -v xvfb-run >/dev/null 2>&1 && [ -f vendor/lib/libglfw.so.3 ]; then diff --git a/tests/selectors.cat b/tests/selectors.cat new file mode 100644 index 0000000..f706588 --- /dev/null +++ b/tests/selectors.cat @@ -0,0 +1,35 @@ +-- tests/selectors.cat -- the a.b / a::b selector syntax. +-- +-- a.b -- read the member `b` of `a` +-- a.b(args) -- call member `b` WITH `a` as self +-- a::b -- static read (no self) +-- a::b(args) -- call `b` WITHOUT self +-- +-- `a:b` is gone. + +local counter = { n = 0 } +counter.bump = function(self, by) + self.n = self.n + by + return self.n +end + +counter.bump(3) +counter.bump(4) +print("with self:", counter.n) + +-- a plain table field +local point = { x = 10, y = 20 } +print("field x:", point.x) + +-- static access: no receiver is passed +local util = { twice = function(x) return x * 2 end } +print("static:", util::twice(21)) + +-- method vs static on the same member +local obj = { val = "obj" } +obj.who = function(self) return "self=" .. self.val end +print(obj.who()) + +-- static form passes no receiver: the first arg is the real first arg +local math2 = { add = function(a, b) return a + b end } +print("static no self:", math2::add(2, 3)) diff --git a/tests/vulkan.cat b/tests/vulkan.cat index 2d7fd41..7e6cb55 100644 --- a/tests/vulkan.cat +++ b/tests/vulkan.cat @@ -8,23 +8,23 @@ use vulkan -- VkApplicationInfo local ai = memory(vulkan.size_vk_application_info) -ai:fill(0) -ai:set_u32(0, vulkan.structure_type_application_info) -ai:set_u32(24, 0x00400000) -- apiVersion 1.0.0 +ai.fill(0) +ai.set_u32(0, vulkan.structure_type_application_info) +ai.set_u32(24, 0x00400000) -- apiVersion 1.0.0 -- VkInstanceCreateInfo local ci = memory(vulkan.size_vk_instance_create_info) -ci:fill(0) -ci:set_u32(0, vulkan.structure_type_instance_create_info) -ci:set_u64(24, ai:ptr()) -- pApplicationInfo +ci.fill(0) +ci.set_u32(0, vulkan.structure_type_instance_create_info) +ci.set_u64(24, ai.ptr()) -- pApplicationInfo local inst = memory(8) -local r = vulkan.create_instance(ci, 0, inst) +local r = vulkan::create_instance(ci, 0, inst) print("create_instance:", r == vulkan.success) local n = memory(4) -vulkan.enumerate_physical_devices(inst:u64(0), n, 0) -print("devices > 0:", n:u32(0) > 0) +vulkan::enumerate_physical_devices(inst.u64(0), n, 0) +print("devices > 0:", n.u32(0) > 0) -vulkan.destroy_instance(inst:u64(0), 0) +vulkan::destroy_instance(inst.u64(0), 0) print("done") diff --git a/tools/gen_glfw.py b/tools/gen_glfw.py index cda386c..aa54175 100644 --- a/tools/gen_glfw.py +++ b/tools/gen_glfw.py @@ -102,7 +102,7 @@ def main(): ret_ffi = ctype_to_ffi(ret, is_return=True) sig = "%s(%s)" % (ret_ffi, ','.join(arglist)) py_name = snake(name) - print("glfw.%s = _lib:func(%r, %r)" % (py_name, name, sig)) + print("glfw.%s = _lib.func(%r, %r)" % (py_name, name, sig)) count += 1 print() diff --git a/tools/gen_vulkan.py b/tools/gen_vulkan.py index 0f9100b..df5b96f 100644 --- a/tools/gen_vulkan.py +++ b/tools/gen_vulkan.py @@ -263,7 +263,7 @@ def main(): for name, ret, params in commands: sig = "%s(%s)" % (ffi_type(ret, lay), ','.join(ffi_type(p, lay) for p in params)) - out.write("vulkan.%s = _lib:func(%r, %r)\n" % (snake(name), name, sig)) + out.write("vulkan.%s = _lib.func(%r, %r)\n" % (snake(name), name, sig)) out.write("\n") out.write("-- struct sizes (allocate with memory(vulkan.size_))\n") diff --git a/tools/migrate_selectors.py b/tools/migrate_selectors.py new file mode 100644 index 0000000..9c2caad --- /dev/null +++ b/tools/migrate_selectors.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python3 +"""One-shot migration for the selector-syntax change. + +Old: + X:Y(args) -> method call WITH self + X.Y(args) -> read member, then call (NO self) +New: + X.Y(args) -> method call WITH self + X::Y(args) -> call WITHOUT self + +So each old call form maps to a new one, preserving semantics. The +substitution runs in a single pass so `X:Y(` -> `X.Y(` is not then +re-matched and turned into `X::Y(`. + +Usage: migrate_selectors.py FILE... +""" +import re +import sys + +CALL = re.compile(r'([A-Za-z_][A-Za-z0-9_]*)([:.])([A-Za-z_][A-Za-z0-9_]*)(\s*\()') + + +def convert(text): + def sub(m): + recv, sep, name, paren = m.groups() + if sep == ':': + return "%s.%s%s" % (recv, name, paren) # with self + return "%s::%s%s" % (recv, name, paren) # without self + return CALL.sub(sub, text) + + +def main(): + for path in sys.argv[1:]: + with open(path) as f: + src = f.read() + out = convert(src) + if out != src: + with open(path, "w") as f: + f.write(out) + print("migrated", path) + + +if __name__ == '__main__': + main()