blob: e4d3a90370ff3b47333fe3720b927f9fe9d02cc2 (
plain)
1
2
3
4
5
6
7
8
9
10
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");
}
|