[Tizen] Add IsUploaded devel api in Texture
[platform/core/uifw/dali-core.git] / dali / devel-api / rendering / texture-devel.h
1 #ifndef DALI_TEXTURE_DEVEL_H
2 #define DALI_TEXTURE_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/texture.h>
23
24 namespace Dali
25 {
26 namespace DevelTexture
27 {
28 /**
29  * @brief Function to determine if a texture is backed by a native image.
30  *
31  * @return True if the texture is a native image.
32  */
33 bool DALI_CORE_API IsNative(Dali::Texture texture);
34
35 /**
36  * @brief Converts shader for native image.
37  *
38  * Applies any specific native shader prefix and sampler code to the
39  * given shader.
40  *
41  * @param[in] texture The texture the shader will apply to
42  * @param[in] shader The fragment shader code to modify
43  * @return True if the shader code was modified
44  */
45 bool DALI_CORE_API ApplyNativeFragmentShader(Dali::Texture texture, std::string& shader);
46
47 bool DALI_CORE_API IsUploaded(Dali::Texture texture);
48
49 } // namespace DevelTexture
50 } // namespace Dali
51
52 #endif // DALI_TEXTURE_DEVEL_H