Create descriptor set layout, pipeline, vertex buffer and index buffer

This commit is contained in:
2025-11-22 17:00:17 +01:00
parent c3efeaf452
commit d6a4b8c1fe
11 changed files with 395 additions and 62 deletions

View File

@@ -281,7 +281,15 @@ pub fn init(allocator: std.mem.Allocator, maybe_window: ?*glfw.Window) !Engine {
try enabled_extensions.appendBounded(vk.extensions.khr_swapchain.name);
}
var enabled_features_vulkan12: vk.PhysicalDeviceVulkan12Features = .{
.descriptor_binding_partially_bound = .true,
.descriptor_binding_variable_descriptor_count = .true,
.runtime_descriptor_array = .true,
.scalar_block_layout = .true,
};
break :blk try instance.createDevice(physical_device, &.{
.p_next = &enabled_features_vulkan12,
.queue_create_info_count = @intCast(queue_create_info.items.len),
.p_queue_create_infos = queue_create_info.items.ptr,
.enabled_extension_count = @intCast(enabled_extensions.items.len),