/*
- * Copyright (c) 2020 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 Texture(texture.Get());
}
-Texture::Texture()
-{
-}
+Texture::Texture() = default;
-Texture::~Texture()
-{
-}
+Texture::~Texture() = default;
Texture::Texture(const Texture& handle) = default;
Texture& Texture::operator=(const Texture& handle) = default;
-Texture::Texture(Texture&& rhs) = default;
+Texture::Texture(Texture&& rhs) noexcept = default;
-Texture& Texture::operator=(Texture&& rhs) = default;
+Texture& Texture::operator=(Texture&& rhs) noexcept = default;
bool Texture::Upload(PixelData pixelData)
{
return GetImplementation(*this).GetHeight();
}
+Pixel::Format Texture::GetPixelFormat() const
+{
+ return GetImplementation(*this).GetPixelFormat();
+}
+
Texture::Texture(Internal::Texture* pointer)
: BaseHandle(pointer)
{