Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
core
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
5
#include "
impeller/core/texture_descriptor.h
"
6
7
#include <sstream>
8
9
namespace
impeller
{
10
11
std::string
TextureDescriptorToString
(
const
TextureDescriptor
& desc) {
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
impeller
Definition
texture.h:18
impeller::TextureDescriptorToString
std::string TextureDescriptorToString(const TextureDescriptor &desc)
Definition
texture_descriptor.cc:11
impeller::TextureTypeToString
constexpr const char * TextureTypeToString(TextureType type)
Definition
formats.h:270
impeller::StorageModeToString
constexpr const char * StorageModeToString(StorageMode mode)
Definition
formats.h:61
impeller::CompressionTypeToString
constexpr const char * CompressionTypeToString(CompressionType type)
Definition
texture_descriptor.h:23
impeller::PixelFormatToString
constexpr const char * PixelFormatToString(PixelFormat format)
Definition
formats.h:141
impeller::TextureDescriptor
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...
Definition
texture_descriptor.h:37
texture_descriptor.h
Generated on Fri Apr 26 2024 06:14:08 for Flutter Engine by
1.9.8