MCPcopy Create free account
hub / github.com/amwatson/CitraVR / PixelFormatAsString

Function PixelFormatAsString

src/video_core/rasterizer_cache/pixel_format.cpp:10–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace VideoCore {
9
10std::string_view PixelFormatAsString(PixelFormat format) {
11 switch (format) {
12 case PixelFormat::RGBA8:
13 return "RGBA8";
14 case PixelFormat::RGB8:
15 return "RGB8";
16 case PixelFormat::RGB5A1:
17 return "RGB5A1";
18 case PixelFormat::RGB565:
19 return "RGB565";
20 case PixelFormat::RGBA4:
21 return "RGBA4";
22 case PixelFormat::IA8:
23 return "IA8";
24 case PixelFormat::RG8:
25 return "RG8";
26 case PixelFormat::I8:
27 return "I8";
28 case PixelFormat::A8:
29 return "A8";
30 case PixelFormat::IA4:
31 return "IA4";
32 case PixelFormat::I4:
33 return "I4";
34 case PixelFormat::A4:
35 return "A4";
36 case PixelFormat::ETC1:
37 return "ETC1";
38 case PixelFormat::ETC1A4:
39 return "ETC1A4";
40 case PixelFormat::D16:
41 return "D16";
42 case PixelFormat::D24:
43 return "D24";
44 case PixelFormat::D24S8:
45 return "D24S8";
46 default:
47 return "NotReal";
48 }
49}
50
51bool CheckFormatsBlittable(PixelFormat source_format, PixelFormat dest_format) {
52 SurfaceType source_type = GetFormatType(source_format);

Callers 6

CheckFormatsBlittableFunction · 0.85
DebugNameMethod · 0.85
ReinterpretMethod · 0.85
AccelerateDisplayMethod · 0.85
ReinterpretMethod · 0.85
StorageViewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected