Adding graphics sync object
[platform/core/uifw/dali-core.git] / dali / graphics-api / graphics-types.h
index f32bffb..d6b2072 100644 (file)
@@ -774,6 +774,7 @@ enum class Format
   R64G64B64A64_UINT,
   R64G64B64A64_SINT,
   R64G64B64A64_SFLOAT,
+  R11G11B10_UFLOAT_PACK32,
   B10G11R11_UFLOAT_PACK32,
   E5B9G9R9_UFLOAT_PACK32,
   D16_UNORM,
@@ -925,6 +926,7 @@ struct TextureUpdateInfo
   Extent2D srcExtent2D{};
   uint32_t srcOffset{};
   uint32_t srcSize{};
+  Format   srcFormat{}; ///< Should match dstTexture's format, otherwise conversion may occur
 };
 
 /**
@@ -1298,7 +1300,8 @@ enum class GraphicsStructureType : uint32_t
   SAMPLER_CREATE_INFO_STRUCT,
   SHADER_CREATE_INFO_STRUCT,
   TEXTURE_CREATE_INFO_STRUCT,
-  RENDER_TARGET_CREATE_INFO_STRUCT
+  RENDER_TARGET_CREATE_INFO_STRUCT,
+  SYNC_OBJECT_CREATE_INFO_STRUCT
 };
 
 /**
@@ -1307,8 +1310,8 @@ enum class GraphicsStructureType : uint32_t
  */
 enum class AttachmentLoadOp
 {
-  LOAD, ///< Load previous content
-  CLEAR, ///< Clear the attachment
+  LOAD,     ///< Load previous content
+  CLEAR,    ///< Clear the attachment
   DONT_CARE ///< Let driver decide
 };
 
@@ -1318,7 +1321,7 @@ enum class AttachmentLoadOp
  */
 enum class AttachmentStoreOp
 {
-  STORE, ///< Store content (color attachemnts)
+  STORE,    ///< Store content (color attachemnts)
   DONT_CARE ///< Let driver decide (depth/stencil attachemnt with no intention of reading)
 };
 
@@ -1343,7 +1346,7 @@ struct AttachmentDescription
    * @param value Load operation
    * @return this structure
    */
-  auto& SetLoadOp( AttachmentLoadOp value )
+  auto& SetLoadOp(AttachmentLoadOp value)
   {
     loadOp = value;
     return *this;
@@ -1355,7 +1358,7 @@ struct AttachmentDescription
    * @param value Store operation
    * @return this structure
    */
-  auto& SetStoreOp( AttachmentStoreOp value )
+  auto& SetStoreOp(AttachmentStoreOp value)
   {
     storeOp = value;
     return *this;
@@ -1367,7 +1370,7 @@ struct AttachmentDescription
    * @param value load operation
    * @return this structure
    */
-  auto& SetStencilLoadOp( AttachmentLoadOp value )
+  auto& SetStencilLoadOp(AttachmentLoadOp value)
   {
     stencilLoadOp = value;
     return *this;
@@ -1379,15 +1382,15 @@ struct AttachmentDescription
    * @param value store operation
    * @return this structure
    */
-  auto& SetStencilStoreOp( AttachmentStoreOp value )
+  auto& SetStencilStoreOp(AttachmentStoreOp value)
   {
     stencilStoreOp = value;
     return *this;
   }
 
-  AttachmentLoadOp loadOp{};
+  AttachmentLoadOp  loadOp{};
   AttachmentStoreOp storeOp{};
-  AttachmentLoadOp stencilLoadOp{};
+  AttachmentLoadOp  stencilLoadOp{};
   AttachmentStoreOp stencilStoreOp{};
 };
 
@@ -1495,12 +1498,12 @@ using Surface = void;
  */
 enum class RenderTargetTransformFlagBits
 {
-  TRANSFORM_IDENTITY_BIT = 0x00000001,
-  ROTATE_90_BIT = 0x00000002,
-  ROTATE_180_BIT = 0x00000004,
-  ROTATE_270_BIT = 0x00000008,
-  HORIZONTAL_MIRROR_BIT = 0x00000010,
-  HORIZONTAL_MIRROR_ROTATE_90_BIT = 0x00000020,
+  TRANSFORM_IDENTITY_BIT           = 0x00000001,
+  ROTATE_90_BIT                    = 0x00000002,
+  ROTATE_180_BIT                   = 0x00000004,
+  ROTATE_270_BIT                   = 0x00000008,
+  HORIZONTAL_MIRROR_BIT            = 0x00000010,
+  HORIZONTAL_MIRROR_ROTATE_90_BIT  = 0x00000020,
   HORIZONTAL_MIRROR_ROTATE_180_BIT = 0x00000040,
   HORIZONTAL_MIRROR_ROTATE_270_BIT = 0x00000080,
 };