MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / KernelCacheFillImpl

Function KernelCacheFillImpl

src/luxcore/kernelcachefill.cpp:343–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static int KernelCacheFillImpl(const Properties &config, const bool doRender, const size_t count,
344 void (*ProgressHandler)(const size_t, const size_t)) {
345 // Extract always enabled code
346 boost::unordered_set<string> enabledCode;
347 const string tags = config.Get(Property("opencl.code.alwaysenabled")("")).Get<string>();
348 boost::split(enabledCode, tags, boost::is_any_of(" \t"));
349
350 // Extract the render engines
351 const Property renderEngines = config.Get(Property("kernelcachefill.renderengine.types")("PATHOCL", "TILEPATHOCL", "RTPATHOCL"));
352
353 // Extract the samplers
354 const Property samplers = config.Get(Property("kernelcachefill.sampler.types")("RANDOM", "SOBOL", "METROPOLIS"));
355
356 // Extract the cameras
357 const Property cameras = config.Get(Property("kernelcachefill.camera.types")("orthographic", "perspective"));
358
359 // Extract the scene geometry setup
360 const Property geometrySetUpOptions = config.Get(Property("kernelcachefill.geometry.types")("empty", "test"));
361
362 // Extract the light sources
363 Property defaultLights("kernelcachefill.light.types");
364 defaultLights.Add("infinite").Add("sky").Add("sun").Add("trianglelight").
365 Add("point").Add("mappoint").Add("spot").Add("projection").
366 Add("constantinfinite").Add("sharpdistant").Add("distant").
367 Add("sky2").Add("laser");
368 const Property lights = FilterByEnabledCode(config.Get(defaultLights), enabledCode);
369 vector<vector<string> > lightTypeCombinations;
370 Combinations(lights, lightTypeCombinations);
371
372 // Extract the materials
373 Property defaultMeterials("kernelcachefill.material.types");
374 defaultMeterials.Add("matte").Add("roughmatte").Add("mirror").Add("glass").
375 Add("archglass").Add("null").Add("roughmattetranslucent").Add("glossy2").
376 Add("metal2").Add("roughglass").Add("velvet").
377 Add("cloth").Add("carpaint").Add("glossytranslucent");
378 const Property materials = FilterByEnabledCode(config.Get(defaultMeterials), enabledCode);
379 vector<vector<string> > materialTypeCombinations;
380 Combinations(materials, materialTypeCombinations);
381
382 // Extract the textures
383 /*Property defaultTextures("kernelcachefill.texture.types");
384 defaultTextures.Add("imagemap").Add("constfloat1").Add("constfloat3").
385 Add("fresnelapproxn").Add("fresnelapproxk").Add("checkerboard2d").Add("checkerboard3d").
386 //Add("densitygrid").
387 Add("fbm").Add("marble").Add("blender_blend").Add("blender_clouds").
388 Add("blender_distortednoise").Add("blender_magic").Add("blender_marble").
389 Add("blender_musgrave").
390 //Add("blender_noise").
391 Add("blender_stucci").Add("blender_wood").Add("blender_voronoi").
392 Add("dots").Add("brick").Add("windy").
393 Add("wrinkled").Add("uv").Add("band").
394 Add("hitpointcolor").Add("hitpointalpha").Add("hitpointgrey").
395 Add("cloud").Add("blackbody").
396 //Add("irregulardata").
397 Add("lampspectrum").Add("fresnelabbe").Add("fresnelcolor").
398 Add("fresnelluxpop").Add("fresnelpreset").Add("fresnelsopra").
399 Add("colordepth").Add("bilerp").Add("hsv");
400 const Property textures = FilterByEnabledCode(config.Get(defaultTextures), enabledCode);*/

Callers 1

KernelCacheFillMethod · 0.85

Calls 9

splitClass · 0.85
FilterByEnabledCodeFunction · 0.85
CombinationsFunction · 0.85
RenderTestSceneFunction · 0.85
Get<string>Method · 0.80
GetMethod · 0.80
AddMethod · 0.45
GetSizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected