diff options
Diffstat (limited to 'src/gpu/effect.cc')
| -rw-r--r-- | src/gpu/effect.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpu/effect.cc b/src/gpu/effect.cc new file mode 100644 index 0000000..e4d3a90 --- /dev/null +++ b/src/gpu/effect.cc @@ -0,0 +1,11 @@ +// Effect implementation + +#include "gpu/effect.h" +#include "util/fatal_error.h" + +Effect::Effect(const GpuContext& ctx, const std::vector<std::string>& inputs, + const std::vector<std::string>& outputs) + : ctx_(ctx), input_nodes_(inputs), output_nodes_(outputs) { + FATAL_CHECK(!inputs.empty(), "Effect must have at least one input\n"); + FATAL_CHECK(!outputs.empty(), "Effect must have at least one output\n"); +} |
