diff options
Diffstat (limited to 'src/gpu/effect_v2.cc')
| -rw-r--r-- | src/gpu/effect_v2.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpu/effect_v2.cc b/src/gpu/effect_v2.cc new file mode 100644 index 0000000..79a14b4 --- /dev/null +++ b/src/gpu/effect_v2.cc @@ -0,0 +1,11 @@ +// EffectV2 implementation + +#include "gpu/effect_v2.h" +#include "util/fatal_error.h" + +EffectV2::EffectV2(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"); +} |
