提交 de442c12 编写于 作者: M Matt Pharr

GPU: warn if specified integrator isn't path or volpath

上级 6e1f4857
......@@ -177,6 +177,9 @@ GPUPathIntegrator::GPUPathIntegrator(Allocator alloc, const ParsedScene &scene)
lightSamplerName = "uniform";
lightSampler = LightSamplerHandle::Create(lightSamplerName, allLights, alloc);
if (scene.integrator.name != "path" && scene.integrator.name != "volpath")
Warning(&scene.integrator.loc, "The GPU renderer always uses a \"volpath\" integrator.");
// Integrator parameters
regularize = scene.integrator.parameters.GetOneBool("regularize", false);
maxDepth = scene.integrator.parameters.GetOneInt("maxdepth", 5);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册