1 | /* |
2 | * Copyright 2015-2021 Arm Limited |
3 | * SPDX-License-Identifier: Apache-2.0 OR MIT |
4 | * |
5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
6 | * you may not use this file except in compliance with the License. |
7 | * You may obtain a copy of the License at |
8 | * |
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
10 | * |
11 | * Unless required by applicable law or agreed to in writing, software |
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 | * See the License for the specific language governing permissions and |
15 | * limitations under the License. |
16 | */ |
17 | |
18 | /* |
19 | * At your option, you may choose to accept this material under either: |
20 | * 1. The Apache License, Version 2.0, found at <http://www.apache.org/licenses/LICENSE-2.0>, or |
21 | * 2. The MIT License, found at <http://opensource.org/licenses/MIT>. |
22 | */ |
23 | |
24 | #ifndef SPIRV_CROSS_UTIL_HPP |
25 | #define SPIRV_CROSS_UTIL_HPP |
26 | |
27 | #include "spirv_cross.hpp" |
28 | |
29 | namespace spirv_cross_util |
30 | { |
31 | void rename_interface_variable(SPIRV_CROSS_NAMESPACE::Compiler &compiler, |
32 | const SPIRV_CROSS_NAMESPACE::SmallVector<SPIRV_CROSS_NAMESPACE::Resource> &resources, |
33 | uint32_t location, const std::string &name); |
34 | void inherit_combined_sampler_bindings(SPIRV_CROSS_NAMESPACE::Compiler &compiler); |
35 | } // namespace spirv_cross_util |
36 | |
37 | #endif |
38 | |