blob: 63e55a2e5719250c85e4a454d83a552864f8434e [file] [log] [blame]
David Neto77f7f5d2021-04-29 00:09:04 +00001// Copyright 2021 The Tint Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#include "src/reader/spirv/entry_point_info.h"
16
17#include <utility>
18
19namespace tint {
20namespace reader {
21namespace spirv {
22
23EntryPointInfo::EntryPointInfo(std::string the_name,
24 ast::PipelineStage the_stage,
David Neto7896d852021-04-29 20:28:15 +000025 bool the_owns_inner_implementation,
26 std::string the_inner_name,
David Neto77f7f5d2021-04-29 00:09:04 +000027 std::vector<uint32_t>&& the_inputs,
David Neto17287fc2021-06-17 22:40:43 +000028 std::vector<uint32_t>&& the_outputs,
29 GridSize the_wg_size)
David Neto77f7f5d2021-04-29 00:09:04 +000030 : name(the_name),
31 stage(the_stage),
David Neto7896d852021-04-29 20:28:15 +000032 owns_inner_implementation(the_owns_inner_implementation),
33 inner_name(std::move(the_inner_name)),
David Neto77f7f5d2021-04-29 00:09:04 +000034 inputs(std::move(the_inputs)),
David Neto17287fc2021-06-17 22:40:43 +000035 outputs(std::move(the_outputs)),
36 workgroup_size(the_wg_size) {}
David Neto77f7f5d2021-04-29 00:09:04 +000037
38EntryPointInfo::EntryPointInfo(const EntryPointInfo&) = default;
39
40EntryPointInfo::~EntryPointInfo() = default;
41
42} // namespace spirv
43} // namespace reader
44} // namespace tint