aboutsummaryrefslogtreecommitdiff
path: root/bindgen
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-10-25 15:48:59 +0200
committerAndre Weissflog <floooh@gmail.com>2024-10-25 15:48:59 +0200
commite7d5229bffa902d911f7534e233154ad7a048ecd (patch)
tree3fb9da5459f161f1fdfe5995a098cbe92ebac69c /bindgen
parent3bec877e3fbe4d2d73759d1d70681e908c3fae7e (diff)
cleanup bindings generation scripts
Diffstat (limited to 'bindgen')
-rw-r--r--bindgen/gen_d.py4
-rw-r--r--bindgen/gen_rust.py7
-rw-r--r--bindgen/gen_zig.py2
3 files changed, 2 insertions, 11 deletions
diff --git a/bindgen/gen_d.py b/bindgen/gen_d.py
index 31caf095..e88205eb 100644
--- a/bindgen/gen_d.py
+++ b/bindgen/gen_d.py
@@ -57,9 +57,7 @@ overrides = {
'sgl_error': 'sgl_get_error', # 'error' is reserved in Dlang
'sgl_deg': 'sgl_as_degrees',
'sgl_rad': 'sgl_as_radians',
- 'sg_context_desc.color_format': 'int',
- 'sg_context_desc.depth_format': 'int',
- 'sg_apply_uniforms.ub_index': 'uint32_t',
+ 'sg_apply_uniforms.ub_slot': 'uint32_t',
'sg_draw.base_element': 'uint32_t',
'sg_draw.num_elements': 'uint32_t',
'sg_draw.num_instances': 'uint32_t',
diff --git a/bindgen/gen_rust.py b/bindgen/gen_rust.py
index 4195870c..d75a7745 100644
--- a/bindgen/gen_rust.py
+++ b/bindgen/gen_rust.py
@@ -83,13 +83,6 @@ overrides = {
"sapp_keycode::SAPP_KEYCODE_7": "SAPP_KEYCODE_NUM7",
"sapp_keycode::SAPP_KEYCODE_8": "SAPP_KEYCODE_NUM8",
"sapp_keycode::SAPP_KEYCODE_9": "SAPP_KEYCODE_NUM9",
-
- # "sgl_error": "sgl_get_error", # 'error' is reserved in zig
- # "sgl_deg": "sgl_as_degrees",
- # "sgl_rad": "sgl_as_radians",
- # "sg_context_desc.color_format": "int",
- # "SGL_NO_ERROR": "SGL_ERROR_NO_ERROR",
- # "sg_context_desc.depth_format": "int",
}
prim_types = {
diff --git a/bindgen/gen_zig.py b/bindgen/gen_zig.py
index 811f7a95..dbd86d95 100644
--- a/bindgen/gen_zig.py
+++ b/bindgen/gen_zig.py
@@ -56,7 +56,7 @@ overrides = {
'sgl_error': 'sgl_get_error', # 'error' is reserved in Zig
'sgl_deg': 'sgl_as_degrees',
'sgl_rad': 'sgl_as_radians',
- 'sg_apply_uniforms.ub_index': 'uint32_t',
+ 'sg_apply_uniforms.ub_slot': 'uint32_t',
'sg_draw.base_element': 'uint32_t',
'sg_draw.num_elements': 'uint32_t',
'sg_draw.num_instances': 'uint32_t',