Flutter Engine
The Flutter Engine
texture_descriptor.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
7#include <sstream>
8
9namespace impeller {
10
12 std::stringstream stream;
13 stream << "StorageMode=" << StorageModeToString(desc.storage_mode) << ",";
14 stream << "Type=" << TextureTypeToString(desc.type) << ",";
15 stream << "Format=" << PixelFormatToString(desc.format) << ",";
16 stream << "Size=" << desc.size << ",";
17 stream << "MipCount=" << desc.mip_count << ",";
18 stream << "SampleCount=" << static_cast<size_t>(desc.sample_count) << ",";
19 stream << "Compression=" << CompressionTypeToString(desc.compression_type);
20 return stream.str();
21}
22
23} // namespace impeller
std::string TextureDescriptorToString(const TextureDescriptor &desc)
constexpr const char * TextureTypeToString(TextureType type)
Definition: formats.h:269
constexpr const char * StorageModeToString(StorageMode mode)
Definition: formats.h:60
constexpr const char * CompressionTypeToString(CompressionType type)
constexpr const char * PixelFormatToString(PixelFormat format)
Definition: formats.h:140
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...