diff --git a/blade-graphics/src/metal/pipeline.rs b/blade-graphics/src/metal/pipeline.rs index 2b59f688..bb97080b 100644 --- a/blade-graphics/src/metal/pipeline.rs +++ b/blade-graphics/src/metal/pipeline.rs @@ -321,7 +321,8 @@ impl super::Context { }); let ep = &module.entry_points[ep_index]; - let name = info.entry_point_names[ep_index].as_ref().unwrap(); + // MSL compilation with PipelineOptions::entry_point specified produces info with only one entry point at index 0 + let name = info.entry_point_names[0].as_ref().unwrap(); let wg_size = metal::MTLSize { width: ep.workgroup_size[0] as _, height: ep.workgroup_size[1] as _,