return Graphics::MemoryRequirements{};
}
-const Graphics::TextureProperties& TestGraphicsController::GetTextureProperties(const Graphics::Texture& texture)
+Graphics::TextureProperties TestGraphicsController::GetTextureProperties(const Graphics::Texture& texture)
{
static Graphics::TextureProperties textureProperties{};
mCallStack.PushCall("GetTextureProperties", "");
#define TEST_GRAPHICS_CONTROLLER_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.
*
* @return Returns the TextureProperties object
*/
- const Graphics::TextureProperties& GetTextureProperties(const Graphics::Texture& texture) override;
+ Graphics::TextureProperties GetTextureProperties(const Graphics::Texture& texture) override;
/**
* @brief Returns the reflection of the given program
#define DALI_GRAPHICS_CONTROLLER_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.
*
* @return Returns the TextureProperties object
*/
- virtual const TextureProperties& GetTextureProperties(const Texture& texture) = 0;
+ virtual TextureProperties GetTextureProperties(const Texture& texture) = 0;
/**
* @brief Returns the reflection of the given program
auto& textureImpl = GetImplementation(texture);
auto graphicsTexture = textureImpl.GetRenderObject()->GetGraphicsObject();
- const auto& properties = mGraphicsController->GetTextureProperties(*graphicsTexture);
+ auto properties = mGraphicsController->GetTextureProperties(*graphicsTexture);
mRenderCallbackTextureBindings.emplace_back(graphicsTexture);
- mRenderCallbackInput.textureBindings[i] = properties.nativeHandle;
+ mRenderCallbackInput.textureBindings[i++] = properties.nativeHandle;
}
info.textureCount = mRenderCallbackTextureBindings.size();
info.textureList = mRenderCallbackTextureBindings.data();