1 /* 2 * Copyright (c) 2025 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 #ifndef GRAPHICS_EFFECT_EXT_COMPLEX_SHADER_PARAMS_H 16 #define GRAPHICS_EFFECT_EXT_COMPLEX_SHADER_PARAMS_H 17 18 #include <vector> 19 20 #include "ge_common.h" 21 #include "parcel.h" 22 23 namespace OHOS { 24 namespace Rosen { 25 26 enum class GexComplexShaderType: uint32_t { 27 NONE = 0, 28 COLOR_GRADIENT, 29 RADIAL_GRADIENT, 30 SCREEN_FLOWLIGHT, 31 AI_BAR_HALO, 32 UV_VOICE, 33 UV_SCREEN, 34 SOUND_WAVE, 35 SDF_RAIN, 36 SDF_SNOW, 37 SDF_MID_SNOW, 38 SDF_HEAVY_SNOW, 39 LIGHT_CAVE, 40 BACKGROUND_GRADIENT, 41 BACKGROUND_GRADIENT_RIPPLE, 42 WAVY_RIPPLE_LIGHT, 43 AURORA_NOISE, 44 CONTOUR_DIAGONAL_FLOW_LIGHT, 45 MAX 46 }; 47 48 struct GE_EXPORT GEXComplexShaderParams { 49 GexComplexShaderType type_; 50 std::vector<float> params_; 51 52 bool Marshalling(Parcel& parcel); 53 54 bool Unmarshalling(Parcel& parcel); 55 }; 56 57 } // namespace Rosen 58 } // namespace OHOS 59 60 #endif // GRAPHICS_EFFECT_EXT_COMPLEX_SHADER_PARAMS_H