#define DALI_TEST_GRAPHICS_COMMAND_BUFFER_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
{
}
- void BindVertexBuffers(uint32_t firstBinding,
- std::vector<const Graphics::Buffer*> buffers,
- std::vector<uint32_t> offsets) override
+ void BindVertexBuffers(uint32_t firstBinding,
+ const std::vector<const Graphics::Buffer*>& buffers,
+ const std::vector<uint32_t>& offsets) override
{
mCommands.emplace_back();
mCommands.back().type = CommandType::BIND_VERTEX_BUFFERS;
mCallStack.PushCall("BindPipeline", "");
}
- void BindTextures(std::vector<Graphics::TextureBinding>& textureBindings) override
+ void BindTextures(const std::vector<Graphics::TextureBinding>& textureBindings) override
{
mCommands.emplace_back();
mCommands.back().type = CommandType::BIND_TEXTURES;
mCallStack.PushCall("BindTextures", "");
}
- void BindSamplers(std::vector<Graphics::SamplerBinding>& samplerBindings) override
+ void BindSamplers(const std::vector<Graphics::SamplerBinding>& samplerBindings) override
{
mCommands.emplace_back();
mCommands.back().data.bindSamplers.samplerBindings = std::move(samplerBindings);
}
void BeginRenderPass(
- Graphics::RenderPass* renderPass,
- Graphics::RenderTarget* renderTarget,
- Graphics::Rect2D renderArea,
- std::vector<Graphics::ClearValue> clearValues) override
+ Graphics::RenderPass* renderPass,
+ Graphics::RenderTarget* renderTarget,
+ Graphics::Rect2D renderArea,
+ const std::vector<Graphics::ClearValue>& clearValues) override
{
mCommands.emplace_back(CommandType::BEGIN_RENDER_PASS);
auto& cmd = mCommands.back();