Item(Item&&) = default;
Item(Graphics::UniquePtr<Dali::Graphics::Shader> shader,
- const std::vector<char> shaderCode,
+ const std::vector<char>& shaderCode,
Graphics::PipelineStage stage,
Graphics::ShaderSourceMode type)
: shader(std::move(shader)),
~Item() = default;
Graphics::UniquePtr<Dali::Graphics::Shader> shader{nullptr};
- const std::vector<char> shaderCode;
+ std::vector<char> shaderCode;
Graphics::PipelineStage stage;
Graphics::ShaderSourceMode type;
};
* @param[in] type The type of the shader (i.e. text or binary)
* @return the graphics shader
*/
- Dali::Graphics::Shader& GetShader(const std::vector<char> shaderCode, Graphics::PipelineStage stage, Graphics::ShaderSourceMode type);
-
- /**
- * Destroy any graphics objects owned by this scene graph object
- */
- void DestroyGraphicsObjects();
+ Dali::Graphics::Shader& GetShader(const std::vector<char>& shaderCode, Graphics::PipelineStage stage, Graphics::ShaderSourceMode type);
private:
std::vector<Item> mItems;