[Vulkan] Added Pipeline object to the API.
[platform/core/uifw/dali-core.git] / dali / graphics-api / graphics-api-utility.h
1
2 #ifndef DALI_GRAPHICS_API_UTILITY_H
3 #define DALI_GRAPHICS_API_UTILITY_H
4
5 /*
6  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 // EXTERNAL INCLUDES
23 #include <cstdint>
24 #include <cstdlib>
25
26 namespace Dali
27 {
28 namespace Graphics
29 {
30 namespace API
31 {
32
33 /**
34  * Structure that represents a rectangular size
35  */
36 struct RectSize {
37   size_t width = 0;
38   size_t height = 0;
39 };
40
41 struct Rect2D {
42   int32_t x = 0;
43   int32_t y = 0;
44   uint32_t width = 0;
45   uint32_t height = 0;
46 };
47
48 /**
49  * Structure represents area of viewport
50  */
51 struct Viewport
52 {
53   float x = 0.0f;
54   float y = 0.0f;
55   float width = 0.0f;
56   float height = 0.0f;
57   float minDepth = 0.0f;
58   float maxDepth = 0.0f;
59 };
60
61 } // namespace API
62 } // namespace Graphics
63 } // namespace Dali
64
65 #endif // DALI_GRAPHICS_API_UTILITY_H