1 #ifndef DALI_FRAME_BUFFER_DEVEL_H
2 #define DALI_FRAME_BUFFER_DEVEL_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <dali/public-api/rendering/frame-buffer.h>
27 namespace DevelFrameBuffer
31 * @brief Maximum number of color attachments supported.
33 constexpr uint8_t MAX_COLOR_ATTACHMENTS = 8;
36 * @brief Gets the color texture at the given @a index used as output in the FrameBuffer.
38 * @param[in] frameBuffer A handle to the framebuffer
39 * @param[in] index The index required
41 * @return A handle to the texture used as color output, or an uninitialized handle
43 * @note A maximum of 8 color attachments are supported. Passing an invalid index will return
44 * an uninitialized handle.
46 Texture GetColorTexture( const FrameBuffer frameBuffer, uint8_t index );
48 } // namespace DevelFrameBuffer
52 #endif // DALI_FRAME_BUFFER_DEVEL_H