drop discrete gpu requirement for laptop

This commit is contained in:
2024-04-26 15:19:37 -04:00
parent 3d4323b1fc
commit f3c94fbdfa

View File

@@ -61,8 +61,10 @@ pub fn wrap(
win: *const Window, win: *const Window,
pdev: vk.PhysicalDevice, pdev: vk.PhysicalDevice,
) !Self { ) !Self {
const props = inst.vki.getPhysicalDeviceProperties(pdev); // TODO: Need to rank devices and select the best one
if (props.device_type != .discrete_gpu) return error.NotDiscrete; // the new laptop doesn't have a discrete gpu.
// const props = inst.vki.getPhysicalDeviceProperties(pdev);
// if (props.device_type != .discrete_gpu) return error.NotDiscrete;
var format_count: u32 = undefined; var format_count: u32 = undefined;
_ = try inst.vki.getPhysicalDeviceSurfaceFormatsKHR(pdev, win.surface, &format_count, null); _ = try inst.vki.getPhysicalDeviceSurfaceFormatsKHR(pdev, win.surface, &format_count, null);