#define DALI_SHADER_H
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] hints Hints to define the geometry of the rendered object
* @return A handle to a shader effect
*/
- static Shader New(const std::string& vertexShader,
- const std::string& fragmentShader,
- Hint::Value hints = Hint::NONE);
+ static Shader New(std::string_view vertexShader,
+ std::string_view fragmentShader,
+ Hint::Value hints = Hint::NONE);
/**
* @brief Default constructor, creates an empty handle.
* @SINCE_1_9.22
* @param[in] rhs A reference to the moved handle
*/
- Shader(Shader&& rhs);
+ Shader(Shader&& rhs) noexcept;
/**
* @brief Move assignment operator.
* @param[in] rhs A reference to the moved handle
* @return A reference to this
*/
- Shader& operator=(Shader&& rhs);
+ Shader& operator=(Shader&& rhs) noexcept;
/**
* @brief Get shader preprocessor of shading language version.