API links for OpenGL ES 3.0 (#1007)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Alex Cristici
2023-04-14 23:48:53 +03:00
committed by GitHub
parent 4828cc7a8b
commit 8ff6704fc4
19 changed files with 2216 additions and 311 deletions

View File

@@ -286,9 +286,9 @@ platform::GLenum Enum<gfx::TextureChannelDataType>::to(const gfx::TextureChannel
template <>
gfx::RenderbufferPixelType Enum<gfx::RenderbufferPixelType>::from(const platform::GLint value) {
switch (value) {
case GL_RGBA8_OES: return gfx::RenderbufferPixelType::RGBA;
case GL_RGBA8: return gfx::RenderbufferPixelType::RGBA;
case GL_DEPTH_COMPONENT16: return gfx::RenderbufferPixelType::Depth;
case GL_DEPTH24_STENCIL8_OES: return gfx::RenderbufferPixelType::DepthStencil;
case GL_DEPTH24_STENCIL8: return gfx::RenderbufferPixelType::DepthStencil;
}
return {};
}
@@ -296,9 +296,9 @@ gfx::RenderbufferPixelType Enum<gfx::RenderbufferPixelType>::from(const platform
template <>
platform::GLenum Enum<gfx::RenderbufferPixelType>::to(const gfx::RenderbufferPixelType value) {
switch (value) {
case gfx::RenderbufferPixelType::RGBA: return GL_RGBA8_OES;
case gfx::RenderbufferPixelType::RGBA: return GL_RGBA8;
case gfx::RenderbufferPixelType::Depth: return GL_DEPTH_COMPONENT16;
case gfx::RenderbufferPixelType::DepthStencil: return GL_DEPTH24_STENCIL8_OES;
case gfx::RenderbufferPixelType::DepthStencil: return GL_DEPTH24_STENCIL8;
}
return GL_INVALID_ENUM;
}