[Tizen] Added support for Multiple Render Targets.
[platform/core/uifw/dali-core.git] / dali / devel-api / rendering / frame-buffer-devel.h
1 #ifndef DALI_FRAME_BUFFER_DEVEL_H
2 #define DALI_FRAME_BUFFER_DEVEL_H
3
4 /*
5  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali/public-api/rendering/frame-buffer.h>
23
24 namespace Dali
25 {
26
27 namespace DevelFrameBuffer
28 {
29
30 /**
31  * @brief Maximum number of color attachments supported.
32  */
33 constexpr uint8_t MAX_COLOR_ATTACHMENTS = 8;
34
35 /**
36  * @brief Gets the color texture at the given @a index used as output in the FrameBuffer.
37  *
38  * @param[in] frameBuffer A handle to the framebuffer
39  * @param[in] index The index required
40  *
41  * @return A handle to the texture used as color output, or an uninitialized handle
42  *
43  * @note A maximum of 8 color attachments are supported. Passing an invalid index will return
44  * an uninitialized handle.
45  */
46 Texture GetColorTexture( const FrameBuffer frameBuffer, uint8_t index );
47
48 } // namespace DevelFrameBuffer
49
50 } // namespace Dali
51
52 #endif // DALI_FRAME_BUFFER_DEVEL_H