• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
EntryPointInfo(std::string the_name,ast::PipelineStage the_stage,bool the_owns_inner_implementation,std::string the_inner_name,std::vector<uint32_t> && the_inputs,std::vector<uint32_t> && the_outputs,GridSize the_wg_size)23 EntryPointInfo::EntryPointInfo(std::string the_name,
24                                ast::PipelineStage the_stage,
25                                bool the_owns_inner_implementation,
26                                std::string the_inner_name,
27                                std::vector<uint32_t>&& the_inputs,
28                                std::vector<uint32_t>&& the_outputs,
29                                GridSize the_wg_size)
30     : name(the_name),
31       stage(the_stage),
32       owns_inner_implementation(the_owns_inner_implementation),
33       inner_name(std::move(the_inner_name)),
34       inputs(std::move(the_inputs)),
35       outputs(std::move(the_outputs)),
36       workgroup_size(the_wg_size) {}
37 
38 EntryPointInfo::EntryPointInfo(const EntryPointInfo&) = default;
39 
40 EntryPointInfo::~EntryPointInfo() = default;
41 
42 }  // namespace spirv
43 }  // namespace reader
44 }  // namespace tint
45