- A few Vulkan wrapper structs

- Framework for Vulkan context
 - Fixed a bug with dynarray where if `resize()` shrinks the array, destructors are not called.
 - Fixed grammar issues with the containers library and added property tables to existing data structures.
This commit is contained in:
2026-01-02 15:38:03 -05:00
parent c1be5385d3
commit 7c2f89b331
53 changed files with 825 additions and 415 deletions

View File

@@ -112,7 +112,7 @@ void wayland_server::connect() {
#endif
auto contexts = ctx_registry::get_type_list();
while (not contexts.empty()) {
while (not contexts.is_empty()) {
const auto& ctx = contexts.front();
gfx_context = unique_ptr(ctx.ctor(this));
@@ -125,7 +125,7 @@ void wayland_server::connect() {
}
}
assertf(not gfx_context.empty(), "Failed to create graphics context.");
assertf(not gfx_context.is_empty(), "Failed to create graphics context.");
}
void wayland_server::disconnect() {
@@ -191,7 +191,7 @@ void wayland_server::_wl_registry_listen_global(void* data, wl_registry* reg, ui
};
wayland_server* server = static_cast<wayland_server*>(data);
const cstring interface = cstring(name, strlen(name) + 1);
const cstring interface = cstring(name, strlen(name));
if (interface == "wl_compositor") {
server->compositor = static_cast<wl_compositor*>(wl_registry_bind(reg, id, &wl_compositor_interface, version));