cleaning some corners
This commit is contained in:
@@ -30,6 +30,8 @@ pub const EXTENSIONS = [_]vk.ExtensionProperties{
|
||||
castExtension(vk.extensions.khr_get_physical_device_properties_2),
|
||||
castExtension(vk.extensions.khr_surface),
|
||||
castExtension(vk.extensions.khr_wayland_surface),
|
||||
//castExtension(vk.extensions.khr_xlib_surface),
|
||||
//castExtension(vk.extensions.khr_xcb_surface),
|
||||
};
|
||||
|
||||
pub fn create(allocator: std.mem.Allocator, infos: *const vk.InstanceCreateInfo) VkError!*Interface {
|
||||
|
||||
@@ -43,7 +43,7 @@ pub fn init(allocator: std.mem.Allocator, instance: *Instance) VkError!Self {
|
||||
.vendor_id = root.VULKAN_VENDOR_ID,
|
||||
.device_id = undefined,
|
||||
.device_type = undefined,
|
||||
.device_name = [_]u8{0} ** vk.MAX_PHYSICAL_DEVICE_NAME_SIZE,
|
||||
.device_name = @as([vk.MAX_PHYSICAL_DEVICE_NAME_SIZE]u8, @splat(0)),
|
||||
.pipeline_cache_uuid = undefined,
|
||||
.limits = std.mem.zeroInit(vk.PhysicalDeviceLimits, .{}),
|
||||
.sparse_properties = undefined,
|
||||
|
||||
@@ -1504,11 +1504,7 @@ pub export fn apeGetDeviceGroupPresentCapabilitiesKHR(
|
||||
return .success;
|
||||
}
|
||||
|
||||
pub export fn apeGetDeviceGroupSurfacePresentModesKHR(
|
||||
p_device: vk.Device,
|
||||
p_surface: vk.SurfaceKHR,
|
||||
p_modes: *vk.DeviceGroupPresentModeFlagsKHR,
|
||||
) callconv(vk.vulkan_call_conv) vk.Result {
|
||||
pub export fn apeGetDeviceGroupSurfacePresentModesKHR(p_device: vk.Device, p_surface: vk.SurfaceKHR, p_modes: *vk.DeviceGroupPresentModeFlagsKHR) callconv(vk.vulkan_call_conv) vk.Result {
|
||||
entryPointBeginLogTrace(.vkGetDeviceGroupSurfacePresentModesKHR);
|
||||
defer entryPointEndLogTrace();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user