xcb: update to zig 0.17.0
This commit is contained in:
@@ -73,11 +73,11 @@ pub fn init(allocator: std.mem.Allocator, connection: *xcb.Connection, window: x
|
||||
const queue_families_properties = try instance.getPhysicalDeviceQueueFamilyPropertiesAlloc(physical_device, allocator);
|
||||
defer allocator.free(queue_families_properties);
|
||||
|
||||
// Look for the first family that has the `graphics_bit` set and
|
||||
// Look for the first family that has the `graphics` bit set and
|
||||
// supports presentation to a given surface.
|
||||
|
||||
for (queue_families_properties, 0..) |queue_family_properties, i| {
|
||||
const graphics_bit = queue_family_properties.queue_flags.graphics_bit;
|
||||
const graphics_bit = queue_family_properties.queue_flags.graphics;
|
||||
const supports_presentation = try instance.getPhysicalDeviceSurfaceSupportKHR(physical_device, @intCast(i), surface) != .false;
|
||||
|
||||
if (graphics_bit and supports_presentation) {
|
||||
@@ -118,7 +118,7 @@ pub fn init(allocator: std.mem.Allocator, connection: *xcb.Connection, window: x
|
||||
const queue = device.getDeviceQueue(queue_family, 0);
|
||||
|
||||
const command_pool = try device.createCommandPool(&.{
|
||||
.flags = .{ .transient_bit = true },
|
||||
.flags = .{ .transient = true },
|
||||
.queue_family_index = queue_family,
|
||||
}, null);
|
||||
errdefer device.destroyCommandPool(command_pool, null);
|
||||
|
||||
Reference in New Issue
Block a user