11 case GL_FRAMEBUFFER_UNDEFINED:
12 return "GL_FRAMEBUFFER_UNDEFINED";
13 case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:
14 return "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT";
15 case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:
16 return "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";
17 case GL_FRAMEBUFFER_UNSUPPORTED:
18 return "GL_FRAMEBUFFER_UNSUPPORTED";
19 case GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:
20 return "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE";
22 return "Unknown error code: " + std::to_string(status);
30 switch (pixel_format) {
34 format.
type = GL_UNSIGNED_BYTE;
39 format.
type = GL_UNSIGNED_BYTE;
45 format.
type = GL_UNSIGNED_BYTE;
56 format.
type = GL_UNSIGNED_BYTE;
61 format.
type = GL_FLOAT;
66 format.
type = GL_FLOAT;
71 format.
type = GL_HALF_FLOAT;
82 format.
type = GL_UNSIGNED_INT_24_8;
std::optional< PixelFormatGLES > ToPixelFormatGLES(PixelFormat pixel_format, bool supports_bgra)
std::string DebugToFramebufferError(int status)
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...