working on Wayland surfaces
This commit is contained in:
@@ -47,9 +47,9 @@ pub fn getMemoryRequirements(_: *Interface, requirements: *vk.MemoryRequirements
|
||||
}
|
||||
|
||||
pub fn getClearFormat(self: *Self) VkError!vk.Format {
|
||||
return if (base.vku.vkuFormatIsSINT(@intCast(@intFromEnum(self.interface.format))))
|
||||
return if (base.c.vkuFormatIsSINT(@intCast(@intFromEnum(self.interface.format))))
|
||||
.r32g32b32a32_sint
|
||||
else if (base.vku.vkuFormatIsUINT(@intCast(@intFromEnum(self.interface.format))))
|
||||
else if (base.c.vkuFormatIsUINT(@intCast(@intFromEnum(self.interface.format))))
|
||||
.r32g32b32a32_uint
|
||||
else
|
||||
.r32g32b32a32_sfloat;
|
||||
|
||||
@@ -2,7 +2,7 @@ const std = @import("std");
|
||||
const vk = @import("vulkan");
|
||||
const base = @import("base");
|
||||
const lib = @import("lib.zig");
|
||||
const cpuinfo = @cImport(@cInclude("cpuinfo.h"));
|
||||
const cpuinfo = lib.c;
|
||||
|
||||
const SoftDevice = @import("SoftDevice.zig");
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#include <cpuinfo.h>
|
||||
@@ -2,6 +2,8 @@ const std = @import("std");
|
||||
const vk = @import("vulkan");
|
||||
pub const base = @import("base");
|
||||
|
||||
pub const c = @import("soft_c");
|
||||
|
||||
pub const Device = @import("device/Device.zig");
|
||||
|
||||
pub const SoftInstance = @import("SoftInstance.zig");
|
||||
|
||||
Reference in New Issue
Block a user