1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
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 
16 #ifndef API_RENDER_SHADERS_COMMON_POST_PROCESS_LAYOUT_COMMON_H
17 #define API_RENDER_SHADERS_COMMON_POST_PROCESS_LAYOUT_COMMON_H
18 
19 #include "render/shaders/common/render_compatibility_common.h"
20 #include "render/shaders/common/render_post_process_structs_common.h"
21 
22 // defines
23 #ifdef VULKAN
24 
25 layout(set = 0, binding = 0, std140) uniform uGlobalStructData
26 {
27     GlobalPostProcessStruct uGlobalData;
28 };
29 layout(set = 0, binding = 1, std140) uniform uLocalStructData
30 {
31     LocalPostProcessStruct uLocalData;
32 };
33 
layout(push_constant,std430)34 layout(push_constant, std430) uniform uPostProcessPushConstant
35 {
36     LocalPostProcessPushConstantStruct uPc;
37 };
38 
39 layout(constant_id = 0) const uint CORE_POST_PROCESS_FLAGS = 0;
40 
41 #else
42 
43 #endif
44 
45 #endif // API_RENDER_SHADERS_COMMON_POST_PROCESS_STRUCTS_COMMON_H
46