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

Method AddIntersectionDevices

src/luxrays/core/context.cpp:206–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206std::vector<IntersectionDevice *> Context::AddIntersectionDevices(std::vector<DeviceDescription *> &deviceDesc) {
207 assert (!started);
208
209 std::vector<IntersectionDevice *> newDevices = CreateIntersectionDevices(deviceDesc, idevices.size());
210 for (size_t i = 0; i < newDevices.size(); ++i)
211 idevices.push_back(newDevices[i]);
212
213 return newDevices;
214}
215
216std::vector<IntersectionDevice *> Context::AddVirtualIntersectionDevice(
217 std::vector<DeviceDescription *> &deviceDescs) {

Callers 4

CreateOCLContextMethod · 0.80
CPURenderEngineMethod · 0.80
mainFunction · 0.80

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected