MCPcopy Create free account
hub / github.com/RenderKit/ospray / commit

Method commit

modules/cpu/common/Instance.cpp:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void Instance::commit()
21{
22 group = getParamObject<Group>("group", groupAPI.ptr);
23 if (!group)
24 throw std::runtime_error(toString() + " received NULL 'group'");
25
26 motionTransform.readParams(*this);
27
28 // Initialize shared structure
29 getSh()->group = group->getSh();
30 getSh()->xfm = motionTransform.transform;
31 getSh()->rcp_xfm = rcp(getSh()->xfm);
32 getSh()->motionBlur = motionTransform.motionBlur;
33 getSh()->userID = getParam<uint32>("id", RTC_INVALID_GEOMETRY_ID);
34}
35
36box3f Instance::getBounds() const
37{

Callers

nothing calls this directly

Calls 2

getShMethod · 0.80
readParamsMethod · 0.45

Tested by

no test coverage detected