Skia
2D Graphics Library
SkTextureCompressionType.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef SkTextureCompressionType_DEFINED
9
#define SkTextureCompressionType_DEFINED
10
/*
11
* Skia | GL_COMPRESSED_* | MTLPixelFormat* | VK_FORMAT_*_BLOCK
12
* --------------------------------------------------------------------------------------
13
* kETC2_RGB8_UNORM | ETC1_RGB8 | ETC2_RGB8 (iOS-only) | ETC2_R8G8B8_UNORM
14
* | RGB8_ETC2 | |
15
* --------------------------------------------------------------------------------------
16
* kBC1_RGB8_UNORM | RGB_S3TC_DXT1_EXT | N/A | BC1_RGB_UNORM
17
* --------------------------------------------------------------------------------------
18
* kBC1_RGBA8_UNORM | RGBA_S3TC_DXT1_EXT | BC1_RGBA (macOS-only)| BC1_RGBA_UNORM
19
*/
20
enum class
SkTextureCompressionType
{
21
kNone
,
22
kETC2_RGB8_UNORM
,
23
24
kBC1_RGB8_UNORM
,
25
kBC1_RGBA8_UNORM
,
26
kLast
=
kBC1_RGBA8_UNORM
,
27
kETC1_RGB8
=
kETC2_RGB8_UNORM
,
28
};
29
30
#endif
SkTextureCompressionType
SkTextureCompressionType
Definition:
SkTextureCompressionType.h:20
SkTextureCompressionType::kBC1_RGBA8_UNORM
@ kBC1_RGBA8_UNORM
SkTextureCompressionType::kNone
@ kNone
SkTextureCompressionType::kETC2_RGB8_UNORM
@ kETC2_RGB8_UNORM
SkTextureCompressionType::kBC1_RGB8_UNORM
@ kBC1_RGB8_UNORM
SkTextureCompressionType::kETC1_RGB8
@ kETC1_RGB8
SkTextureCompressionType::kLast
@ kLast
include
core
SkTextureCompressionType.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023