drop discrete gpu requirement for laptop
This commit is contained in:
@@ -61,8 +61,10 @@ pub fn wrap(
|
||||
win: *const Window,
|
||||
pdev: vk.PhysicalDevice,
|
||||
) !Self {
|
||||
const props = inst.vki.getPhysicalDeviceProperties(pdev);
|
||||
if (props.device_type != .discrete_gpu) return error.NotDiscrete;
|
||||
// TODO: Need to rank devices and select the best one
|
||||
// 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;
|
||||
_ = try inst.vki.getPhysicalDeviceSurfaceFormatsKHR(pdev, win.surface, &format_count, null);
|
||||
|
Reference in New Issue
Block a user