/*
* Copyright (c) 2026 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
enum class GESDFUnionOp : uint8_t {
UNION = 0,
SMOOTH_UNION,
MAX = SMOOTH_UNION,
};
struct [[ge::params(type=SDF_UNION_OP, name="SDFUnionOpShape",
alias="SDFSmoothUnionOpShape")]] GESDFUnionOpShapeParams {
[[ge::prop("SDFSmoothUnionOpShape_Spacing")]]
float spacing = 0.f;
[[ge::prop(name="SDFUnionOpShape_ShapeX",
alias="SDFSmoothUnionOpShape_ShapeX",
cast_from="std::shared_ptr<GEShaderShape>")]]
std::shared_ptr<GESDFShaderShape> left;
[[ge::prop(name="SDFUnionOpShape_ShapeY",
alias="SDFSmoothUnionOpShape_ShapeY",
cast_from="std::shared_ptr<GEShaderShape>")]]
std::shared_ptr<GESDFShaderShape> right;
[[ge::prop(name="SDFUnionOpShape_Type", cast_from="uint32_t", custom="SDFUnionOpTransformer")]]
GESDFUnionOp op = GESDFUnionOp::SMOOTH_UNION;
};