#include <cstddef>
Go to the source code of this file.
◆ GrBackendFormatBytesPerBlock()
Definition at line 52 of file GrBackendUtils.cpp.
52 {
53 switch (
format.backend()) {
59#ifdef SK_DIRECT3D
60 DXGI_FORMAT dxgiFormat;
63#else
64 break;
65#endif
66 }
71 }
else if (
format.isMockStencilFormat()) {
72 static constexpr int kMockStencilSize = 4;
73 return kMockStencilSize;
74 }
76 }
78 break;
79 }
80 }
81 return 0;
82}
SkAssertResult(font.textToGlyphs("Hello", 5, SkTextEncoding::kUTF8, glyphs, std::size(glyphs))==count)
static constexpr size_t GrDxgiFormatBytesPerBlock(DXGI_FORMAT format)
static constexpr size_t GrColorTypeBytesPerPixel(GrColorType ct)
static const GrBackendFormatData * GetBackendData(const GrBackendFormat &format)
uint32_t uint32_t * format
size_t CompressedRowBytes(SkTextureCompressionType type, int width)
◆ GrBackendFormatBytesPerPixel()
Definition at line 84 of file GrBackendUtils.cpp.
84 {
86 return 0;
87 }
89}
SkTextureCompressionType GrBackendFormatToCompressionType(const GrBackendFormat &format)
size_t GrBackendFormatBytesPerBlock(const GrBackendFormat &format)
◆ GrBackendFormatStencilBits()
Definition at line 91 of file GrBackendUtils.cpp.
91 {
92 switch (
format.backend()) {
98#ifdef SK_DIRECT3D
99 DXGI_FORMAT dxgiFormat;
102#else
103 break;
104#endif
105 }
107 if (
format.isMockStencilFormat()) {
108 static constexpr int kMockStencilBits = 8;
109 return kMockStencilBits;
110 }
111 break;
112 }
114 break;
115 }
116 }
117 return 0;
118}
static constexpr int GrDxgiFormatStencilBits(DXGI_FORMAT format)
◆ GrBackendFormatToCompressionType()
Definition at line 22 of file GrBackendUtils.cpp.
22 {
23 switch (
format.backend()) {
29#ifdef SK_DIRECT3D
30 DXGI_FORMAT dxgiFormat;
32 switch (dxgiFormat) {
33 case DXGI_FORMAT_BC1_UNORM:
35 default:
37 }
38#else
39 break;
40#endif
41 }
43 return format.asMockCompressionType();
44 }
46 break;
47 }
48 }
50}