1 #ifndef DALI_TEXTURE_DEVEL_H
2 #define DALI_TEXTURE_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/texture.h>
26 namespace DevelTexture
29 * @brief Function to determine if a texture is backed by a native image.
31 * @return True if the texture is a native image.
33 bool DALI_CORE_API IsNative(Dali::Texture texture);
36 * @brief Converts shader for native image.
38 * Applies any specific native shader prefix and sampler code to the
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
45 bool DALI_CORE_API ApplyNativeFragmentShader(Dali::Texture texture, std::string& shader);
47 bool DALI_CORE_API IsUploaded(Dali::Texture texture);
49 } // namespace DevelTexture
52 #endif // DALI_TEXTURE_DEVEL_H