X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fgraphics-api%2Fgraphics-types.h;h=84f0fd366afd83c954c70670619db3bdbaca86be;hb=53a534bebeb0f32519aa030f65d037f858b974e7;hp=d6b207213c13cedc1d93009ccea513fb54c67724;hpb=80e00ee2d7aab099b61ffc41ec741c95f133898a;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/graphics-api/graphics-types.h b/dali/graphics-api/graphics-types.h index d6b2072..84f0fd3 100644 --- a/dali/graphics-api/graphics-types.h +++ b/dali/graphics-api/graphics-types.h @@ -2,7 +2,7 @@ #define DALI_GRAPHICS_API_TYPES /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -165,7 +165,24 @@ enum class BlendOp REVERSE_SUBTRACT = 2, MIN = 3, MAX = 4, -}; + MULTIPLY = 5, + SCREEN = 6, + OVERLAY = 7, + DARKEN = 8, + LIGHTEN = 9, + COLOR_DODGE = 10, + COLOR_BURN = 11, + HARD_LIGHT = 12, + SOFT_LIGHT = 13, + DIFFERENCE = 14, + EXCLUSION = 15, + HUE = 16, + SATURATION = 17, + COLOR = 18, + LUMINOSITY = 19, +}; + +const BlendOp ADVANCED_BLEND_OPTIONS_START(BlendOp::MULTIPLY); /** * @brief Compare operators @@ -926,6 +943,7 @@ struct TextureUpdateInfo Extent2D srcExtent2D{}; uint32_t srcOffset{}; uint32_t srcSize{}; + uint32_t srcStride{}; Format srcFormat{}; ///< Should match dstTexture's format, otherwise conversion may occur }; @@ -1003,11 +1021,17 @@ struct ColorAttachment */ struct DepthStencilAttachment { - // TODO: - Texture* depthTexture; - Texture* stencilTexture; - uint32_t depthLevel; - uint32_t stencilLevel; + enum class Usage + { + WRITE, // If no texture, will create a RenderBuffer instead + NONE // If no attachment/RenderBuffer required + }; + Texture* depthTexture{nullptr}; + Texture* stencilTexture{nullptr}; + uint32_t depthLevel{0}; + uint32_t stencilLevel{0}; + Usage depthUsage{Usage::NONE}; + Usage stencilUsage{Usage::NONE}; }; /**