Skip to content

Commit

Permalink
Add back geometry shader
Browse files Browse the repository at this point in the history
  • Loading branch information
qingy1337 authored Sep 13, 2024
1 parent ca02b6d commit ca3b3c7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ impl Renderer {
khr_swapchain: true,
..DeviceExtensions::empty()
};

// Don't request geometry shader support, as it is not supported on macOS

let features = Features {
// geometry_shader: true, // Removed as it is not supported by Metal/MoltenVK
geometry_shader: true,
..Features::empty()
};

Expand Down Expand Up @@ -136,7 +135,7 @@ impl Renderer {
physical_device.clone(),
DeviceCreateInfo {
enabled_extensions: device_extensions,
enabled_features: features, // No geometry_shader feature request
enabled_features: features,
queue_create_infos: vec![QueueCreateInfo {
queue_family_index,
..Default::default()
Expand Down

0 comments on commit ca3b3c7

Please sign in to comment.