David Neto | 77f7f5d | 2021-04-29 00:09:04 +0000 | [diff] [blame] | 1 | // 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 | |
| 19 | namespace tint { |
| 20 | namespace reader { |
| 21 | namespace spirv { |
| 22 | |
| 23 | EntryPointInfo::EntryPointInfo(std::string the_name, |
| 24 | ast::PipelineStage the_stage, |
David Neto | 7896d85 | 2021-04-29 20:28:15 +0000 | [diff] [blame] | 25 | bool the_owns_inner_implementation, |
| 26 | std::string the_inner_name, |
David Neto | 77f7f5d | 2021-04-29 00:09:04 +0000 | [diff] [blame] | 27 | std::vector<uint32_t>&& the_inputs, |
David Neto | 17287fc | 2021-06-17 22:40:43 +0000 | [diff] [blame] | 28 | std::vector<uint32_t>&& the_outputs, |
| 29 | GridSize the_wg_size) |
David Neto | 77f7f5d | 2021-04-29 00:09:04 +0000 | [diff] [blame] | 30 | : name(the_name), |
| 31 | stage(the_stage), |
David Neto | 7896d85 | 2021-04-29 20:28:15 +0000 | [diff] [blame] | 32 | owns_inner_implementation(the_owns_inner_implementation), |
| 33 | inner_name(std::move(the_inner_name)), |
David Neto | 77f7f5d | 2021-04-29 00:09:04 +0000 | [diff] [blame] | 34 | inputs(std::move(the_inputs)), |
David Neto | 17287fc | 2021-06-17 22:40:43 +0000 | [diff] [blame] | 35 | outputs(std::move(the_outputs)), |
| 36 | workgroup_size(the_wg_size) {} |
David Neto | 77f7f5d | 2021-04-29 00:09:04 +0000 | [diff] [blame] | 37 | |
| 38 | EntryPointInfo::EntryPointInfo(const EntryPointInfo&) = default; |
| 39 | |
| 40 | EntryPointInfo::~EntryPointInfo() = default; |
| 41 | |
| 42 | } // namespace spirv |
| 43 | } // namespace reader |
| 44 | } // namespace tint |