drop discrete gpu requirement for laptop
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user