MCPcopy Create free account
hub / github.com/RenderKit/oidn / InputProcessDesc

Function InputProcessDesc

core/input_process.cpp:7–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "engine.h"
6
7OIDN_NAMESPACE_BEGIN
8
9 InputProcess::InputProcess(Engine* engine, const InputProcessDesc& desc)
10 : InputProcessDesc(desc)
11 {
12 if (srcDims.size() != 3)
13 throw std::invalid_argument("invalid input processing source shape");
14
15 TensorDims dstDims = srcDims;
16
17 TensorDims dstPaddedDims {
18 round_up(srcDims[0], engine->getDevice()->getTensorBlockC()), // round up C
19 dstDims[1],
20 dstDims[2]
21 };
22
23 dstDesc = {dstDims, dstPaddedDims, engine->getDevice()->getTensorLayout(), engine->getDevice()->getTensorDataType()};
24
25 setTile(0, 0, 0, 0, 0, 0);
26 }
27
28 void InputProcess::setSrc(const Ref<Image>& color,
29 const Ref<Image>& albedo,

Callers

nothing calls this directly

Calls 6

sizeMethod · 0.80
getTensorBlockCMethod · 0.80
getTensorLayoutMethod · 0.80
getTensorDataTypeMethod · 0.80
round_upFunction · 0.50
getDeviceMethod · 0.45

Tested by

no test coverage detected