GPU path tracer: run on Metal on macOS (#7183) (#7185)

* claim: #7183

* GPU path tracer runs on Metal on macOS, not only Vulkan (#3217)
This commit is contained in:
Andrzej Błasik
2026-10-29 13:58:49 +00:00
committed by GitHub
parent 6fdd58dec6
commit cb05e1e0f7
7 changed files with 50 additions and 47 deletions
@@ -87,7 +87,7 @@ fn run() -> Result<(), String> {
let gpu_host_start = Instant::now();
let policy = solidcraft_gpu::select::Policy::from_env().map_err(|e| e.to_string())?;
let (adapter, report) =
solidcraft_gpu::select::pick_vulkan(policy, |_| true).ok_or("no Vulkan adapter satisfies the requested GPU policy")?;
solidcraft_gpu::select::pick_path(policy, |_| true).ok_or("no Vulkan or Metal adapter satisfies the requested GPU policy")?;
session.register_render_job_host(solidcraft_gpu::path::host_on_adapter(&adapter).map_err(|e| e.to_string())?).map_err(|e| e.to_string())?;
(Some(report), Some(gpu_host_start.elapsed().as_secs_f64()))
} else {