mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Allow more WebGL2 FBO attachment formats
Add support for most of the framebuffer attachment formats introduced in WebGL2 for textures and renderbuffers. Related format tables: - https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml - https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glRenderbufferStorage.xhtml
This commit is contained in:
parent
d42835b238
commit
859a3a4924
8 changed files with 137 additions and 97 deletions
|
@ -145,6 +145,31 @@ impl WebGLRenderbuffer {
|
|||
constants::RGBA4 | constants::DEPTH_COMPONENT16 | constants::STENCIL_INDEX8 => {
|
||||
internal_format
|
||||
},
|
||||
constants::R8 |
|
||||
constants::R8UI |
|
||||
constants::R8I |
|
||||
constants::R16UI |
|
||||
constants::R16I |
|
||||
constants::R32UI |
|
||||
constants::R32I |
|
||||
constants::RG8 |
|
||||
constants::RG8UI |
|
||||
constants::RG8I |
|
||||
constants::RG16UI |
|
||||
constants::RG16I |
|
||||
constants::RG32UI |
|
||||
constants::RG32I |
|
||||
constants::RGB8 |
|
||||
constants::RGBA8 |
|
||||
constants::SRGB8_ALPHA8 |
|
||||
constants::RGB10_A2 |
|
||||
constants::RGBA8UI |
|
||||
constants::RGBA8I |
|
||||
constants::RGB10_A2UI |
|
||||
constants::RGBA16UI |
|
||||
constants::RGBA16I |
|
||||
constants::RGBA32I |
|
||||
constants::RGBA32UI |
|
||||
constants::DEPTH_COMPONENT24 |
|
||||
constants::DEPTH_COMPONENT32F |
|
||||
constants::DEPTH24_STENCIL8 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue